From: Jongman Heo <jongman.heo@samsung.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [x86 question] invalid conversion of bootloader_type and bootloader_version ??
Date: Thu, 13 Feb 2014 05:59:08 +0000 (GMT) [thread overview]
Message-ID: <16419793.126861392271147946.JavaMail.weblogic@epv6ml15> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 1033 bytes --]
Hi, all,
While looking at x86 boot code (arch/x86/kernel/setup.c), I got confused due to bootloader_type and bootloader_version conversion.
I've only checked GRUB and U-Boot bootloader code.
1. GRUB 2
type_of_loader setting = 0x72
-> bootloader_type = 0x72, bootloader_version = 0x2
2. U-Boot
type_of_loader setting = 0x8
-> bootloader_type = 0x8, bootloader_version = 0x8
3. example in Documentation/x86/boot.txt
type_of_loader = 0xE4, ext_loader_type = 0x05, ext_loader_ver = 0x23, for T = 0x15, V = 0x234
-> bootloader_type = 0x154, bootloader_version = 0x234
So, for GRUB 2 and the example bootloader, T != bootloader_type.
Is this intended?
First I thought that bootloader_type and bootloader_version should match with T and V configured in the bootloader.
This would not bring any real world issue, but I'm just curious.
Regards,
Jongman Heo.
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
reply other threads:[~2014-02-13 5:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16419793.126861392271147946.JavaMail.weblogic@epv6ml15 \
--to=jongman.heo@samsung.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®