All of lore.kernel.org
 help / color / mirror / Atom feed
* [x86 question] invalid conversion of bootloader_type and bootloader_version ??
@ 2014-02-13  5:59 Jongman Heo
  0 siblings, 0 replies; only message in thread
From: Jongman Heo @ 2014-02-13  5:59 UTC (permalink / raw)
  To: linux-kernel

[-- 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¥

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-13  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-13  5:59 [x86 question] invalid conversion of bootloader_type and bootloader_version ?? Jongman Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.