]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/boot/Documentation: Prefix hexadecimal literals with 0x
authorIngo Molnar <mingo@kernel.org>
Wed, 3 Dec 2025 17:29:59 +0000 (18:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Dec 2025 17:49:09 +0000 (18:49 +0100)
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
Documentation/arch/x86/boot.rst

index b0f648b5c05bec0e1f4b40cb8a631d7bd7ca3e78..42f50fa0ebc3098f82e4fc3270eb19f837ab3876 100644 (file)
@@ -431,31 +431,31 @@ Protocol: 2.00+
    ext_loader_type <- 0x05
    ext_loader_ver  <- 0x23
 
-  Assigned boot loader IDs (hexadecimal):
+  Assigned boot loader IDs:
 
        == =======================================
-       0  LILO
-          (0x00 reserved for pre-2.00 bootloader)
-       1  Loadlin
-       2  bootsect-loader
-          (0x20, all other values reserved)
-       3  Syslinux
-       4  Etherboot/gPXE/iPXE
-       5  ELILO
-       7  GRUB
-       8  U-Boot
-       9  Xen
-       A  Gujin
-       B  Qemu
-       C  Arcturus Networks uCbootloader
-       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
+       0x0  LILO
+            (0x00 reserved for pre-2.00 bootloader)
+       0x1  Loadlin
+       0x2  bootsect-loader
+            (0x20, all other values reserved)
+       0x3  Syslinux
+       0x4  Etherboot/gPXE/iPXE
+       0x5  ELILO
+       0x7  GRUB
+       0x8  U-Boot
+       0x9  Xen
+       0xA  Gujin
+       0xB  Qemu
+       0xC  Arcturus Networks uCbootloader
+       0xD  kexec-tools
+       0xE  Extended (see ext_loader_type)
+       0xF  Special (0xFF = undefined)
+       0x10 Reserved
+       0x11 Minimal Linux Bootloader
+            <http://sebastian-plotz.blogspot.de>
+       0x12 OVMF UEFI virtualization stack
+       0x13 barebox
        == =======================================
 
   Please contact <hpa@zytor.com> if you need a bootloader ID value assigned.