Skip to content

Commit 1c3377b

Browse files
committed
x86/boot/Documentation: Prefix hexadecimal literals with 0x
The x86 bootloader ID specification text uses hexadecimal values without a 0x prefix: D kexec-tools E Extended (see ext_loader_type) F Special (0xFF = undefined) 10 Reserved 11 Minimal Linux Bootloader <http://sebastian-plotz.blogspot.de> 12 OVMF UEFI virtualization stack 13 barebox Which beyond the ambiguity of '13' in isolation, also made me fail a grep -wi '0xd' when I was looking for the kexec bootloader ID definition and caused quite a bit of head-scratching before I found out why it didn't show up. Furthermore, the actual explanatory text uses the 0x prefix: For boot loader IDs above T = 0xD, write T = 0xE to this field and write the extended ID minus 0x10 to the ext_loader_type field. Similarly, the ext_loader_ver field can be used to provide more than four bits for the bootloader version. So make it all both unambiguous, easy to grep and consistent across the entire documentation by prefixing the IDs with 0x. Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: linux-kernel@vger.kernel.org
1 parent c7957da commit 1c3377b

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

Documentation/arch/x86/boot.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -431,31 +431,31 @@ Protocol: 2.00+
431431
ext_loader_type <- 0x05
432432
ext_loader_ver <- 0x23
433433

434-
Assigned boot loader IDs (hexadecimal):
434+
Assigned boot loader IDs:
435435

436436
== =======================================
437-
0 LILO
438-
(0x00 reserved for pre-2.00 bootloader)
439-
1 Loadlin
440-
2 bootsect-loader
441-
(0x20, all other values reserved)
442-
3 Syslinux
443-
4 Etherboot/gPXE/iPXE
444-
5 ELILO
445-
7 GRUB
446-
8 U-Boot
447-
9 Xen
448-
A Gujin
449-
B Qemu
450-
C Arcturus Networks uCbootloader
451-
D kexec-tools
452-
E Extended (see ext_loader_type)
453-
F Special (0xFF = undefined)
454-
10 Reserved
455-
11 Minimal Linux Bootloader
456-
<http://sebastian-plotz.blogspot.de>
457-
12 OVMF UEFI virtualization stack
458-
13 barebox
437+
0x0 LILO
438+
(0x00 reserved for pre-2.00 bootloader)
439+
0x1 Loadlin
440+
0x2 bootsect-loader
441+
(0x20, all other values reserved)
442+
0x3 Syslinux
443+
0x4 Etherboot/gPXE/iPXE
444+
0x5 ELILO
445+
0x7 GRUB
446+
0x8 U-Boot
447+
0x9 Xen
448+
0xA Gujin
449+
0xB Qemu
450+
0xC Arcturus Networks uCbootloader
451+
0xD kexec-tools
452+
0xE Extended (see ext_loader_type)
453+
0xF Special (0xFF = undefined)
454+
0x10 Reserved
455+
0x11 Minimal Linux Bootloader
456+
<http://sebastian-plotz.blogspot.de>
457+
0x12 OVMF UEFI virtualization stack
458+
0x13 barebox
459459
== =======================================
460460

461461
Please contact <hpa@zytor.com> if you need a bootloader ID value assigned.

0 commit comments

Comments
 (0)