sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget!/translations/zh_CN/arch/x86/bootmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/zh_TW/arch/x86/bootmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/it_IT/arch/x86/bootmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/ja_JP/arch/x86/bootmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/ko_KR/arch/x86/bootmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/sp_SP/arch/x86/bootmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh;/var/lib/git/docbuild/linux/Documentation/arch/x86/boot.rsthKubhsection)}(hhh](htitle)}(hThe Linux/x86 Boot Protocolh]hThe Linux/x86 Boot Protocol}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hXOn the x86 platform, the Linux kernel uses a rather complicated boot convention. This has evolved partially due to historical aspects, as well as the desire in the early days to have the kernel itself be a bootable image, the complicated PC memory model and due to changed expectations in the PC industry caused by the effective demise of real-mode DOS as a mainstream operating system.h]hXOn the x86 platform, the Linux kernel uses a rather complicated boot convention. This has evolved partially due to historical aspects, as well as the desire in the early days to have the kernel itself be a bootable image, the complicated PC memory model and due to changed expectations in the PC industry caused by the effective demise of real-mode DOS as a mainstream operating system.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hGCurrently, the following versions of the Linux/x86 boot protocol exist.h]hGCurrently, the following versions of the Linux/x86 boot protocol exist.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhhubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKBuh1hhhubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h Old kernelsh]h Old kernels}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hXzImage/Image support only. Some very early kernels may not even support a command line.h]hXzImage/Image support only. Some very early kernels may not even support a command line.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.00h]h Protocol 2.00}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjJubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(hhh]h)}(h(Kernel 1.3.73) Added bzImage and initrd support, as well as a formalized way to communicate between the boot loader and the kernel. setup.S made relocatable, although the traditional setup area still assumed writable.h]h(Kernel 1.3.73) Added bzImage and initrd support, as well as a formalized way to communicate between the boot loader and the kernel. setup.S made relocatable, although the traditional setup area still assumed writable.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjaubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.01h]h Protocol 2.01}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj~ubj)}(hhh]h)}(h-(Kernel 1.3.76) Added a heap overrun warning.h]h-(Kernel 1.3.76) Added a heap overrun warning.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.02h]h Protocol 2.02}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hX(Kernel 2.4.0-test3-pre3) New command line protocol. Lower the conventional memory ceiling. No overwrite of the traditional setup area, thus making booting safe for systems which use the EBDA from SMM or 32-bit BIOS entry points. zImage deprecated but still supported.h]hX(Kernel 2.4.0-test3-pre3) New command line protocol. Lower the conventional memory ceiling. No overwrite of the traditional setup area, thus making booting safe for systems which use the EBDA from SMM or 32-bit BIOS entry points. zImage deprecated but still supported.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.03h]h Protocol 2.03}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hf(Kernel 2.4.18-pre1) Explicitly makes the highest possible initrd address available to the bootloader.h]hf(Kernel 2.4.18-pre1) Explicitly makes the highest possible initrd address available to the bootloader.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.04h]h Protocol 2.04}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hj&ubah}(h]h ]h"]h$]h&]uh1jhj#ubj)}(hhh]h)}(h7(Kernel 2.6.14) Extend the syssize field to four bytes.h]h7(Kernel 2.6.14) Extend the syssize field to four bytes.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hj=ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.05h]h Protocol 2.05}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hj]ubah}(h]h ]h"]h$]h&]uh1jhjZubj)}(hhh]h)}(hq(Kernel 2.6.20) Make protected mode kernel relocatable. Introduce relocatable_kernel and kernel_alignment fields.h]hq(Kernel 2.6.20) Make protected mode kernel relocatable. Introduce relocatable_kernel and kernel_alignment fields.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjtubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.06h]h Protocol 2.06}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hN(Kernel 2.6.22) Added a field that contains the size of the boot command line.h]hN(Kernel 2.6.22) Added a field that contains the size of the boot command line.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.07h]h Protocol 2.07}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h(Kernel 2.6.24) Added paravirtualised boot protocol. Introduced hardware_subarch and hardware_subarch_data and KEEP_SEGMENTS flag in load_flags.h]h(Kernel 2.6.24) Added paravirtualised boot protocol. Introduced hardware_subarch and hardware_subarch_data and KEEP_SEGMENTS flag in load_flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.08h]h Protocol 2.08}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h(Kernel 2.6.26) Added crc32 checksum and ELF format payload. Introduced payload_offset and payload_length fields to aid in locating the payload.h]h(Kernel 2.6.26) Added crc32 checksum and ELF format payload. Introduced payload_offset and payload_length fields to aid in locating the payload.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.09h]h Protocol 2.09}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hj9ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hhh]h)}(hd(Kernel 2.6.26) Added a field of 64-bit physical pointer to single linked list of struct setup_data.h]hd(Kernel 2.6.26) Added a field of 64-bit physical pointer to single linked list of struct setup_data.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjPubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.10h]h Protocol 2.10}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjpubah}(h]h ]h"]h$]h&]uh1jhjmubj)}(hhh]h)}(h(Kernel 2.6.31) Added a protocol for relaxed alignment beyond the kernel_alignment added, new init_size and pref_address fields. Added extended boot loader IDs.h]h(Kernel 2.6.31) Added a protocol for relaxed alignment beyond the kernel_alignment added, new init_size and pref_address fields. Added extended boot loader IDs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.11h]h Protocol 2.11}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hK(Kernel 3.6) Added a field for offset of EFI handover protocol entry point.h]hK(Kernel 3.6) Added a field for offset of EFI handover protocol entry point.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.12h]h Protocol 2.12}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h(Kernel 3.8) Added the xloadflags field and extension fields to struct boot_params for loading bzImage and ramdisk above 4G in 64bit.h]h(Kernel 3.8) Added the xloadflags field and extension fields to struct boot_params for loading bzImage and ramdisk above 4G in 64bit.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.13h]h Protocol 2.13}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hu(Kernel 3.14) Support 32- and 64-bit flags being set in xloadflags to support booting a 64-bit kernel from 32-bit EFIh]hu(Kernel 3.14) Support 32- and 64-bit flags being set in xloadflags to support booting a 64-bit kernel from 32-bit EFI}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.14h]h Protocol 2.14}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjLubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(hhh]h)}(hBURNT BY INCORRECT COMMIT ae7e1238e68f2a472a125673ab506d49158c1889 ("x86/boot: Add ACPI RSDP address to setup_header") DO NOT USE!!! ASSUME SAME AS 2.13.h]hBURNT BY INCORRECT COMMIT ae7e1238e68f2a472a125673ab506d49158c1889 (“x86/boot: Add ACPI RSDP address to setup_header”) DO NOT USE!!! ASSUME SAME AS 2.13.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjcubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol 2.15h]h Protocol 2.15}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hB(Kernel 5.5) Added the kernel_info and kernel_info.setup_type_max.h]hB(Kernel 5.5) Added the kernel_info and kernel_info.setup_type_max.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhhubeh}(h]h ]h"]h$]h&]colsKuh1hhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubhnote)}(hX^The protocol version number should be changed only if the setup header is changed. There is no need to update the version number if boot_params or kernel_info are changed. Additionally, it is recommended to use xloadflags (in this case the protocol version number should not be updated either) or kernel_info to communicate supported Linux kernel features to the boot loader. Due to very limited space available in the original setup header every update to it should be considered with great care. Starting from the protocol 2.15 the primary way to communicate things to the boot loader is the kernel_info.h]h)}(hX^The protocol version number should be changed only if the setup header is changed. There is no need to update the version number if boot_params or kernel_info are changed. Additionally, it is recommended to use xloadflags (in this case the protocol version number should not be updated either) or kernel_info to communicate supported Linux kernel features to the boot loader. Due to very limited space available in the original setup header every update to it should be considered with great care. Starting from the protocol 2.15 the primary way to communicate things to the boot loader is the kernel_info.h]hX^The protocol version number should be changed only if the setup header is changed. There is no need to update the version number if boot_params or kernel_info are changed. Additionally, it is recommended to use xloadflags (in this case the protocol version number should not be updated either) or kernel_info to communicate supported Linux kernel features to the boot loader. Due to very limited space available in the original setup header every update to it should be considered with great care. Starting from the protocol 2.15 the primary way to communicate things to the boot loader is the kernel_info.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKQhjubah}(h]h ]h"]h$]h&]uh1jhhhhhhhNubh)}(hhh](h)}(h Memory Layouth]h Memory Layout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK]ubh)}(hjThe traditional memory map for the kernel loader, used for Image or zImage kernels, typically looks like::h]hiThe traditional memory map for the kernel loader, used for Image or zImage kernels, typically looks like:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK_hjhhubh literal_block)}(hXB | | 0A0000 +------------------------+ | Reserved for BIOS | Do not use. Reserved for BIOS EBDA. 09A000 +------------------------+ | Command line | | Stack/heap | For use by the kernel real-mode code. 098000 +------------------------+ | Kernel setup | The kernel real-mode code. 090200 +------------------------+ | Kernel boot sector | The kernel legacy boot sector. 090000 +------------------------+ | Protected-mode kernel | The bulk of the kernel image. 010000 +------------------------+ | Boot loader | <- Boot sector entry point 0000:7C00 001000 +------------------------+ | Reserved for MBR/BIOS | 000800 +------------------------+ | Typically used by MBR | 000600 +------------------------+ | BIOS use only | 000000 +------------------------+h]hXB | | 0A0000 +------------------------+ | Reserved for BIOS | Do not use. Reserved for BIOS EBDA. 09A000 +------------------------+ | Command line | | Stack/heap | For use by the kernel real-mode code. 098000 +------------------------+ | Kernel setup | The kernel real-mode code. 090200 +------------------------+ | Kernel boot sector | The kernel legacy boot sector. 090000 +------------------------+ | Protected-mode kernel | The bulk of the kernel image. 010000 +------------------------+ | Boot loader | <- Boot sector entry point 0000:7C00 001000 +------------------------+ | Reserved for MBR/BIOS | 000800 +------------------------+ | Typically used by MBR | 000600 +------------------------+ | BIOS use only | 000000 +------------------------+}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKbhjhhubh)}(hX|When using bzImage, the protected-mode kernel was relocated to 0x100000 ("high memory"), and the kernel real-mode block (boot sector, setup, and stack/heap) was made relocatable to any address between 0x10000 and end of low memory. Unfortunately, in protocols 2.00 and 2.01 the 0x90000+ memory range is still used internally by the kernel; the 2.02 protocol resolves that problem.h]hXWhen using bzImage, the protected-mode kernel was relocated to 0x100000 (“high memory”), and the kernel real-mode block (boot sector, setup, and stack/heap) was made relocatable to any address between 0x10000 and end of low memory. Unfortunately, in protocols 2.00 and 2.01 the 0x90000+ memory range is still used internally by the kernel; the 2.02 protocol resolves that problem.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjhhubh)}(hXuIt is desirable to keep the "memory ceiling" -- the highest point in low memory touched by the boot loader -- as low as possible, since some newer BIOSes have begun to allocate some rather large amounts of memory, called the Extended BIOS Data Area, near the top of low memory. The boot loader should use the "INT 12h" BIOS call to verify how much low memory is available.h]hX}It is desirable to keep the “memory ceiling” -- the highest point in low memory touched by the boot loader -- as low as possible, since some newer BIOSes have begun to allocate some rather large amounts of memory, called the Extended BIOS Data Area, near the top of low memory. The boot loader should use the “INT 12h” BIOS call to verify how much low memory is available.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hXUnfortunately, if INT 12h reports that the amount of memory is too low, there is usually nothing the boot loader can do but to report an error to the user. The boot loader should therefore be designed to take up as little space in low memory as it reasonably can. For zImage or old bzImage kernels, which need data written into the 0x90000 segment, the boot loader should make sure not to use memory above the 0x9A000 point; too many BIOSes will break above that point.h]hXUnfortunately, if INT 12h reports that the amount of memory is too low, there is usually nothing the boot loader can do but to report an error to the user. The boot loader should therefore be designed to take up as little space in low memory as it reasonably can. For zImage or old bzImage kernels, which need data written into the 0x90000 segment, the boot loader should make sure not to use memory above the 0x9A000 point; too many BIOSes will break above that point.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hqFor a modern bzImage kernel with boot protocol version >= 2.02, a memory layout like the following is suggested::h]hpFor a modern bzImage kernel with boot protocol version >= 2.02, a memory layout like the following is suggested:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hX ~ ~ | Protected-mode kernel | 100000 +------------------------+ | I/O memory hole | 0A0000 +------------------------+ | Reserved for BIOS | Leave as much as possible unused ~ ~ | Command line | (Can also be below the X+10000 mark) X+10000 +------------------------+ | Stack/heap | For use by the kernel real-mode code. X+08000 +------------------------+ | Kernel setup | The kernel real-mode code. | Kernel boot sector | The kernel legacy boot sector. X +------------------------+ | Boot loader | <- Boot sector entry point 0000:7C00 001000 +------------------------+ | Reserved for MBR/BIOS | 000800 +------------------------+ | Typically used by MBR | 000600 +------------------------+ | BIOS use only | 000000 +------------------------+ ... where the address X is as low as the design of the boot loader permits.h]hX ~ ~ | Protected-mode kernel | 100000 +------------------------+ | I/O memory hole | 0A0000 +------------------------+ | Reserved for BIOS | Leave as much as possible unused ~ ~ | Command line | (Can also be below the X+10000 mark) X+10000 +------------------------+ | Stack/heap | For use by the kernel real-mode code. X+08000 +------------------------+ | Kernel setup | The kernel real-mode code. | Kernel boot sector | The kernel legacy boot sector. X +------------------------+ | Boot loader | <- Boot sector entry point 0000:7C00 001000 +------------------------+ | Reserved for MBR/BIOS | 000800 +------------------------+ | Typically used by MBR | 000600 +------------------------+ | BIOS use only | 000000 +------------------------+ ... where the address X is as low as the design of the boot loader permits.}hjKsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjhhubeh}(h] memory-layoutah ]h"] memory layoutah$]h&]uh1hhhhhhhhK]ubh)}(hhh](h)}(hThe Real-Mode Kernel Headerh]hThe Real-Mode Kernel Header}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahhhhhKubh)}(hIn the following text, and anywhere in the kernel boot sequence, "a sector" refers to 512 bytes. It is independent of the actual sector size of the underlying medium.h]hIn the following text, and anywhere in the kernel boot sequence, “a sector” refers to 512 bytes. It is independent of the actual sector size of the underlying medium.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjahhubh)}(hX@The first step in loading a Linux kernel should be to load the real-mode code (boot sector and setup code) and then examine the following header at offset 0x01f1. The real-mode code can total up to 32K, although the boot loader may choose to load only the first two sectors (1K) and then examine the bootup sector size.h]hX@The first step in loading a Linux kernel should be to load the real-mode code (boot sector and setup code) and then examine the following header at offset 0x01f1. The real-mode code can total up to 32K, although the boot loader may choose to load only the first two sectors (1K) and then examine the bootup sector size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjahhubh)}(hThe header looks like:h]hThe header looks like:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjahhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK,uh1hhjubhthead)}(hhh]j )}(hhh](j)}(hhh]h)}(h Offset/Sizeh]h Offset/Size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hProtoh]hProto}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hNameh]hName}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hMeaningh]hMeaning}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h01F1/1h]h01F1/1}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj@ubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(hhh]h)}(hALL(1)h]hALL(1)}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjWubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(hhh]h)}(h setup_sectsh]h setup_sects}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjnubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(hhh]h)}(h The size of the setup in sectorsh]h The size of the setup in sectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h01F2/2h]h01F2/2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hALLh]hALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h root_flagsh]h root_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h$If set, the root is mounted readonlyh]h$If set, the root is mounted readonly}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h01F4/4h]h01F4/4}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.04+(2)h]h2.04+(2)}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj!ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hsyssizeh]hsyssize}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj8ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h,The size of the 32-bit code in 16-byte parash]h,The size of the 32-bit code in 16-byte paras}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjOubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h01F8/2h]h01F8/2}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjoubah}(h]h ]h"]h$]h&]uh1jhjlubj)}(hhh]h)}(hALLh]hALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubj)}(hhh]h)}(hram_sizeh]hram_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubj)}(hhh]h)}(h$DO NOT USE - for bootsect.S use onlyh]h$DO NOT USE - for bootsect.S use only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h01FA/2h]h01FA/2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hALLh]hALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hvid_modeh]hvid_mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hVideo mode controlh]hVideo mode control}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h01FC/2h]h01FC/2}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj9ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hhh]h)}(hALLh]hALL}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjPubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hhh]h)}(hroot_devh]hroot_dev}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjgubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hhh]h)}(hDefault root device numberh]hDefault root device number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj~ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h01FE/2h]h01FE/2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hALLh]hALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h boot_flagh]h boot_flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0xAA55 magic numberh]h0xAA55 magic number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0200/2h]h0200/2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hjumph]hjump}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj1 ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hJump instructionh]hJump instruction}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjH ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0202/4h]h0202/4}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjh ubah}(h]h ]h"]h$]h&]uh1jhje ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhje ubj)}(hhh]h)}(hheaderh]hheader}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhje ubj)}(hhh]h)}(hMagic signature "HdrS"h]hMagic signature “HdrS”}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhje ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0206/2h]h0206/2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hversionh]hversion}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hBoot protocol version supportedh]hBoot protocol version supported}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0208/4h]h0208/4}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj2 ubah}(h]h ]h"]h$]h&]uh1jhj/ ubj)}(hhh]h)}(h2.00+h]h2.00+}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjI ubah}(h]h ]h"]h$]h&]uh1jhj/ ubj)}(hhh]h)}(hrealmode_swtchh]hrealmode_swtch}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj` ubah}(h]h ]h"]h$]h&]uh1jhj/ ubj)}(hhh]h)}(hBoot loader hook (see below)h]hBoot loader hook (see below)}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjw ubah}(h]h ]h"]h$]h&]uh1jhj/ ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h020C/2h]h020C/2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h start_sys_segh]h start_sys_seg}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h(The load-low segment (0x1000) (obsolete)h]h(The load-low segment (0x1000) (obsolete)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h020E/2h]h020E/2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hkernel_versionh]hkernel_version}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj* ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h Pointer to kernel version stringh]h Pointer to kernel version string}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjA ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0210/1h]h0210/1}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhja ubah}(h]h ]h"]h$]h&]uh1jhj^ ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjx ubah}(h]h ]h"]h$]h&]uh1jhj^ ubj)}(hhh]h)}(htype_of_loaderh]htype_of_loader}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj^ ubj)}(hhh]h)}(hBoot loader identifierh]hBoot loader identifier}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj^ ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0211/1h]h0211/1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h loadflagsh]h loadflags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hBoot protocol option flagsh]hBoot protocol option flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0212/2h]h0212/2}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj+ ubah}(h]h ]h"]h$]h&]uh1jhj( ubj)}(hhh]h)}(h2.00+h]h2.00+}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjB ubah}(h]h ]h"]h$]h&]uh1jhj( ubj)}(hhh]h)}(hsetup_move_sizeh]hsetup_move_size}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjY ubah}(h]h ]h"]h$]h&]uh1jhj( ubj)}(hhh]h)}(h*Move to high memory size (used with hooks)h]h*Move to high memory size (used with hooks)}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjp ubah}(h]h ]h"]h$]h&]uh1jhj( ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0214/4h]h0214/4}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h code32_starth]h code32_start}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hBoot loader hook (see below)h]hBoot loader hook (see below)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0218/4h]h0218/4}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h ramdisk_imageh]h ramdisk_image}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj# ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h(initrd load address (set by boot loader)h]h(initrd load address (set by boot loader)}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj: ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h021C/4h]h021C/4}(hj] hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjZ ubah}(h]h ]h"]h$]h&]uh1jhjW ubj)}(hhh]h)}(h2.00+h]h2.00+}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjq ubah}(h]h ]h"]h$]h&]uh1jhjW ubj)}(hhh]h)}(h ramdisk_sizeh]h ramdisk_size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjW ubj)}(hhh]h)}(h initrd size (set by boot loader)h]h initrd size (set by boot loader)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjW ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0220/4h]h0220/4}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hbootsect_kludgeh]hbootsect_kludge}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h$DO NOT USE - for bootsect.S use onlyh]h$DO NOT USE - for bootsect.S use only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0224/2h]h0224/2}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj$ubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(hhh]h)}(h2.01+h]h2.01+}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj;ubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(hhh]h)}(h heap_end_ptrh]h heap_end_ptr}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjRubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(hhh]h)}(hFree memory after setup endh]hFree memory after setup end}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjiubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0226/1h]h0226/1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.02+(3)h]h2.02+(3)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hext_loader_verh]hext_loader_ver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hExtended boot loader versionh]hExtended boot loader version}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0227/1h]h0227/1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.02+(3)h]h2.02+(3)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hext_loader_typeh]hext_loader_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hExtended boot loader IDh]hExtended boot loader ID}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0228/4h]h0228/4}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjSubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(hhh]h)}(h2.02+h]h2.02+}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjjubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(hhh]h)}(h cmd_line_ptrh]h cmd_line_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(hhh]h)}(h)32-bit pointer to the kernel command lineh]h)32-bit pointer to the kernel command line}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h022C/4h]h022C/4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.03+h]h2.03+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hinitrd_addr_maxh]hinitrd_addr_max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hHighest legal initrd addressh]hHighest legal initrd address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0230/4h]h0230/4}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.05+h]h2.05+}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj4ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hkernel_alignmenth]hkernel_alignment}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjKubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h+Physical addr alignment required for kernelh]h+Physical addr alignment required for kernel}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjbubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0234/1h]h0234/1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.05+h]h2.05+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hrelocatable_kernelh]hrelocatable_kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h$Whether kernel is relocatable or noth]h$Whether kernel is relocatable or not}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0235/1h]h0235/1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.10+h]h2.10+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h min_alignmenth]h min_alignment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h$Minimum alignment, as a power of twoh]h$Minimum alignment, as a power of two}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0236/2h]h0236/2}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjLubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(hhh]h)}(h2.12+h]h2.12+}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjcubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(hhh]h)}(h xloadflagsh]h xloadflags}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjzubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(hhh]h)}(hBoot protocol option flagsh]hBoot protocol option flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0238/4h]h0238/4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.06+h]h2.06+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h cmdline_sizeh]h cmdline_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h'Maximum size of the kernel command lineh]h'Maximum size of the kernel command line}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h023C/4h]h023C/4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.07+h]h2.07+}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj-ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhardware_subarchh]hhardware_subarch}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjDubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hHardware subarchitectureh]hHardware subarchitecture}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj[ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0240/8h]h0240/8}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj{ubah}(h]h ]h"]h$]h&]uh1jhjxubj)}(hhh]h)}(h2.07+h]h2.07+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjxubj)}(hhh]h)}(hhardware_subarch_datah]hhardware_subarch_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjxubj)}(hhh]h)}(hSubarchitecture-specific datah]hSubarchitecture-specific data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0248/4h]h0248/4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.08+h]h2.08+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hpayload_offseth]hpayload_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hOffset of kernel payloadh]hOffset of kernel payload}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj%ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h024C/4h]h024C/4}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEubah}(h]h ]h"]h$]h&]uh1jhjBubj)}(hhh]h)}(h2.08+h]h2.08+}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj\ubah}(h]h ]h"]h$]h&]uh1jhjBubj)}(hhh]h)}(hpayload_lengthh]hpayload_length}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjsubah}(h]h ]h"]h$]h&]uh1jhjBubj)}(hhh]h)}(hLength of kernel payloadh]hLength of kernel payload}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0250/8h]h0250/8}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.09+h]h2.09+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h setup_datah]h setup_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h;64-bit physical pointer to linked list of struct setup_datah]h;64-bit physical pointer to linked list of struct setup_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0258/8h]h0258/8}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.10+h]h2.10+}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h pref_addressh]h pref_address}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj=ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hPreferred loading addressh]hPreferred loading address}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjTubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0260/4h]h0260/4}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjtubah}(h]h ]h"]h$]h&]uh1jhjqubj)}(hhh]h)}(h2.10+h]h2.10+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjqubj)}(hhh]h)}(h init_sizeh]h init_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjqubj)}(hhh]h)}(h,Linear memory required during initializationh]h,Linear memory required during initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0264/4h]h0264/4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.11+h]h2.11+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hhandover_offseth]hhandover_offset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hOffset of handover entry pointh]hOffset of handover entry point}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h0268/4h]h0268/4}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj>ubah}(h]h ]h"]h$]h&]uh1jhj;ubj)}(hhh]h)}(h2.15+h]h2.15+}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjUubah}(h]h ]h"]h$]h&]uh1jhj;ubj)}(hhh]h)}(hkernel_info_offseth]hkernel_info_offset}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjlubah}(h]h ]h"]h$]h&]uh1jhj;ubj)}(hhh]h)}(hOffset of the kernel_infoh]hOffset of the kernel_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1j hj:ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjahhhhhNubj)}(hX?(1) For backwards compatibility, if the setup_sects field contains 0, the real value is 4. (2) For boot protocol prior to 2.04, the upper two bytes of the syssize field are unusable, which means the size of a bzImage kernel cannot be determined. (3) Ignored, but safe to set, for boot protocols 2.02-2.09.h]henumerated_list)}(hhh](h list_item)}(hWFor backwards compatibility, if the setup_sects field contains 0, the real value is 4. h]h)}(hVFor backwards compatibility, if the setup_sects field contains 0, the real value is 4.h]hVFor backwards compatibility, if the setup_sects field contains 0, the real value is 4.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hFor boot protocol prior to 2.04, the upper two bytes of the syssize field are unusable, which means the size of a bzImage kernel cannot be determined. h]h)}(hFor boot protocol prior to 2.04, the upper two bytes of the syssize field are unusable, which means the size of a bzImage kernel cannot be determined.h]hFor boot protocol prior to 2.04, the upper two bytes of the syssize field are unusable, which means the size of a bzImage kernel cannot be determined.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h7Ignored, but safe to set, for boot protocols 2.02-2.09.h]h)}(hjh]h7Ignored, but safe to set, for boot protocols 2.02-2.09.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]enumtypearabicprefix(suffix)uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjahhhNhNubh)}(hIf the "HdrS" (0x53726448) magic number is not found at offset 0x202, the boot protocol version is "old". Loading an old kernel, the following parameters should be assumed::h]hIf the “HdrS” (0x53726448) magic number is not found at offset 0x202, the boot protocol version is “old”. Loading an old kernel, the following parameters should be assumed:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjahhubj)}(hUImage type = zImage initrd not supported Real-mode kernel must be located at 0x90000.h]hUImage type = zImage initrd not supported Real-mode kernel must be located at 0x90000.}hj%sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjahhubh)}(hOtherwise, the "version" field contains the protocol version, e.g. protocol version 2.01 will contain 0x0201 in this field. When setting fields in the header, you must make sure only to set fields supported by the protocol version in use.h]hOtherwise, the “version” field contains the protocol version, e.g. protocol version 2.01 will contain 0x0201 in this field. When setting fields in the header, you must make sure only to set fields supported by the protocol version in use.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjahhubeh}(h]the-real-mode-kernel-headerah ]h"]the real-mode kernel headerah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hDetails of Header Fieldsh]hDetails of Header Fields}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhMubh)}(hFor each field, some are information from the kernel to the bootloader ("read"), some are expected to be filled out by the bootloader ("write"), and some are expected to be read and modified by the bootloader ("modify").h]hFor each field, some are information from the kernel to the bootloader (“read”), some are expected to be filled out by the bootloader (“write”), and some are expected to be read and modified by the bootloader (“modify”).}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjIhhubh)}(hAll general purpose boot loaders should write the fields marked (obligatory). Boot loaders who want to load the kernel at a nonstandard address should fill in the fields marked (reloc); other boot loaders can ignore those fields.h]hAll general purpose boot loaders should write the fields marked (obligatory). Boot loaders who want to load the kernel at a nonstandard address should fill in the fields marked (reloc); other boot loaders can ignore those fields.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjIhhubh)}(hGThe byte order of all fields is little endian (this is x86, after all.)h]hGThe byte order of all fields is little endian (this is x86, after all.)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h setup_sectsh]h setup_sects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hreadh]hread}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0x1f1/1h]h0x1f1/1}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjIubah}(h]h ]h"]h$]h&]uh1jhjFubj)}(hhh]h)}(hALLh]hALL}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hɕhhhMhj`ubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubh block_quote)}(hThe size of the setup code in 512-byte sectors. If this field is 0, the real value is 4. The real-mode code consists of the boot sector (always one 512-byte sector) plus the setup code. h]h)}(hThe size of the setup code in 512-byte sectors. If this field is 0, the real value is 4. The real-mode code consists of the boot sector (always one 512-byte sector) plus the setup code.h]hThe size of the setup code in 512-byte sectors. If this field is 0, the real value is 4. The real-mode code consists of the boot sector (always one 512-byte sector) plus the setup code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h root_flagsh]h root_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hmodify (optional)h]hmodify (optional)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj8ubah}(h]h ]h"]h$]h&]uh1jhj5ubj)}(hhh]h)}(h0x1f2/2h]h0x1f2/2}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjOubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjoubah}(h]h ]h"]h$]h&]uh1jhjlubj)}(hhh]h)}(hALLh]hALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hIf this field is nonzero, the root defaults to readonly. The use of this field is deprecated; use the "ro" or "rw" options on the command line instead. h]h)}(hIf this field is nonzero, the root defaults to readonly. The use of this field is deprecated; use the "ro" or "rw" options on the command line instead.h]hIf this field is nonzero, the root defaults to readonly. The use of this field is deprecated; use the “ro” or “rw” options on the command line instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjubah}(h]h ]h"]h$]h&]uh1jhhhM hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK/uh1hhjubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hsyssizeh]hsyssize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hj%ubah}(h]h ]h"]h$]h&]uh1jhj"ubj)}(hhh]h)}(hreadh]hread}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hj<ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM'hj\ubah}(h]h ]h"]h$]h&]uh1jhjYubj)}(hhh]h)}(h/0x1f4/4 (protocol 2.04+) 0x1f4/2 (protocol ALL)h]h/0x1f4/4 (protocol 2.04+) 0x1f4/2 (protocol ALL)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM'hjsubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2.04+h]h2.04+}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hThe size of the protected-mode code in units of 16-byte paragraphs. For protocol versions older than 2.04 this field is only two bytes wide, and therefore cannot be trusted for the size of a kernel if the LOAD_HIGH flag is set. h]h)}(hThe size of the protected-mode code in units of 16-byte paragraphs. For protocol versions older than 2.04 this field is only two bytes wide, and therefore cannot be trusted for the size of a kernel if the LOAD_HIGH flag is set.h]hThe size of the protected-mode code in units of 16-byte paragraphs. For protocol versions older than 2.04 this field is only two bytes wide, and therefore cannot be trusted for the size of a kernel if the LOAD_HIGH flag is set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM+hjubah}(h]h ]h"]h$]h&]uh1jhhhM+hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hram_sizeh]hram_size}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM1hj)ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM2hjIubah}(h]h ]h"]h$]h&]uh1jhjFubj)}(hhh]h)}(hkernel internalh]hkernel internal}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM2hj`ubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM3hjubah}(h]h ]h"]h$]h&]uh1jhj}ubj)}(hhh]h)}(h0x1f8/2h]h0x1f8/2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM3hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hALLh]hALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hThis field is obsolete. h]h)}(hThis field is obsolete.h]hThis field is obsolete.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hjubah}(h]h ]h"]h$]h&]uh1jhhhM7hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM:hj6ubah}(h]h ]h"]h$]h&]uh1jhj3ubj)}(hhh]h)}(hvid_modeh]hvid_mode}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM:hjMubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hjmubah}(h]h ]h"]h$]h&]uh1jhjjubj)}(hhh]h)}(hmodify (obligatory)h]hmodify (obligatory)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0x1fa/2h]h0x1fa/2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(h8Please see the section on SPECIAL COMMAND LINE OPTIONS. h]h)}(h7Please see the section on SPECIAL COMMAND LINE OPTIONS.h]h7Please see the section on SPECIAL COMMAND LINE OPTIONS.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM?hjubah}(h]h ]h"]h$]h&]uh1jhhhM?hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMBhj#ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hroot_devh]hroot_dev}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMBhj:ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMChjZubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(hhh]h)}(hmodify (optional)h]hmodify (optional)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMChjqubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0x1fc/2h]h0x1fc/2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMEhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hALLh]hALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hThe default root device device number. The use of this field is deprecated, use the "root=" option on the command line instead. h]h)}(hThe default root device device number. The use of this field is deprecated, use the "root=" option on the command line instead.h]hThe default root device device number. The use of this field is deprecated, use the “root=” option on the command line instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhjubah}(h]h ]h"]h$]h&]uh1jhhhMHhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj*ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj*ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMLhjGubah}(h]h ]h"]h$]h&]uh1jhjDubj)}(hhh]h)}(h boot_flagh]h boot_flag}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMLhj^ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1j hjAubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhj~ubah}(h]h ]h"]h$]h&]uh1jhj{ubj)}(hhh]h)}(hreadh]hread}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1j hjAubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0x1fe/2h]h0x1fe/2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjAubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hALLh]hALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjAubeh}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]colsKuh1hhj'ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hVContains 0xAA55. This is the closest thing old Linux kernels have to a magic number. h]h)}(hUContains 0xAA55. This is the closest thing old Linux kernels have to a magic number.h]hUContains 0xAA55. This is the closest thing old Linux kernels have to a magic number.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhj3ubah}(h]h ]h"]h$]h&]uh1jhhhMRhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjNubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjNubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhjkubah}(h]h ]h"]h$]h&]uh1jhjhubj)}(hhh]h)}(hjumph]hjump}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMVhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hreadh]hread}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0x200/2h]h0x200/2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjeubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhjubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hjeubeh}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]colsKuh1hhjKubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hContains an x86 jump instruction, 0xEB followed by a signed offset relative to byte 0x202. This can be used to determine the size of the header. h]h)}(hContains an x86 jump instruction, 0xEB followed by a signed offset relative to byte 0x202. This can be used to determine the size of the header.h]hContains an x86 jump instruction, 0xEB followed by a signed offset relative to byte 0x202. This can be used to determine the size of the header.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjWubah}(h]h ]h"]h$]h&]uh1jhhhM\hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjrubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjrubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMahjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hheaderh]hheader}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(hreadh]hread}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h0x202/4h]h0x202/4}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1j hjubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMdhj4 ubah}(h]h ]h"]h$]h&]uh1jhj1 ubj)}(hhh]h)}(h2.00+h]h2.00+}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMdhjK ubah}(h]h ]h"]h$]h&]uh1jhj1 ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]colsKuh1hhjoubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(h/Contains the magic number "HdrS" (0x53726448). h]h)}(h.Contains the magic number "HdrS" (0x53726448).h]h2Contains the magic number “HdrS” (0x53726448).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMghj{ ubah}(h]h ]h"]h$]h&]uh1jhhhMghjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMjhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hversionh]hversion}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMjhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]h)}(hreadh]hread}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhj!ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj$!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhj!!ubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(hhh]h)}(h0x206/2h]h0x206/2}(hj;!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhj8!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj[!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhjX!ubah}(h]h ]h"]h$]h&]uh1jhjU!ubj)}(hhh]h)}(h2.00+h]h2.00+}(hjr!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhjo!ubah}(h]h ]h"]h$]h&]uh1jhjU!ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]colsKuh1hhj ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hContains the boot protocol version, in (major << 8) + minor format, e.g. 0x0204 for version 2.04, and 0x0a11 for a hypothetical version 10.17. h]h)}(hContains the boot protocol version, in (major << 8) + minor format, e.g. 0x0204 for version 2.04, and 0x0a11 for a hypothetical version 10.17.h]hContains the boot protocol version, in (major << 8) + minor format, e.g. 0x0204 for version 2.04, and 0x0a11 for a hypothetical version 10.17.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphj!ubah}(h]h ]h"]h$]h&]uh1jhhhMphjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj!ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj!ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(hhh]h)}(hrealmode_swtchh]hrealmode_swtch}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1j hj!ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMvhj"ubah}(h]h ]h"]h$]h&]uh1jhj "ubj)}(hhh]h)}(hmodify (optional)h]hmodify (optional)}(hj("hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMvhj%"ubah}(h]h ]h"]h$]h&]uh1jhj "ubeh}(h]h ]h"]h$]h&]uh1j hj!ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjH"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjE"ubah}(h]h ]h"]h$]h&]uh1jhjB"ubj)}(hhh]h)}(h0x208/4h]h0x208/4}(hj_"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhj\"ubah}(h]h ]h"]h$]h&]uh1jhjB"ubeh}(h]h ]h"]h$]h&]uh1j hj!ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhj|"ubah}(h]h ]h"]h$]h&]uh1jhjy"ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhj"ubah}(h]h ]h"]h$]h&]uh1jhjy"ubeh}(h]h ]h"]h$]h&]uh1j hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]colsKuh1hhj!ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(h9Boot loader hook (see ADVANCED BOOT LOADER HOOKS below.) h]h)}(h8Boot loader hook (see ADVANCED BOOT LOADER HOOKS below.)h]h8Boot loader hook (see ADVANCED BOOT LOADER HOOKS below.)}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM{hj"ubah}(h]h ]h"]h$]h&]uh1jhhhM{hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj"ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj"ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubj)}(hhh]h)}(h start_sys_segh]h start_sys_seg}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1j hj"ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj5#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2#ubah}(h]h ]h"]h$]h&]uh1jhj/#ubj)}(hhh]h)}(hreadh]hread}(hjL#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjI#ubah}(h]h ]h"]h$]h&]uh1jhj/#ubeh}(h]h ]h"]h$]h&]uh1j hj"ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjl#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhji#ubah}(h]h ]h"]h$]h&]uh1jhjf#ubj)}(hhh]h)}(h0x20c/2h]h0x20c/2}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj#ubah}(h]h ]h"]h$]h&]uh1jhjf#ubeh}(h]h ]h"]h$]h&]uh1j hj"ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1j hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]colsKuh1hhj"ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(h*The load low segment (0x1000). Obsolete. h]h)}(h)The load low segment (0x1000). Obsolete.h]h)The load low segment (0x1000). Obsolete.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj#ubah}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj$ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj$ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj"$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubj)}(hhh]h)}(hkernel_versionh]hkernel_version}(hj9$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj6$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1j hj$ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjY$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjV$ubah}(h]h ]h"]h$]h&]uh1jhjS$ubj)}(hhh]h)}(hreadh]hread}(hjp$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjm$ubah}(h]h ]h"]h$]h&]uh1jhjS$ubeh}(h]h ]h"]h$]h&]uh1j hj$ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubj)}(hhh]h)}(h0x20e/2h]h0x20e/2}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1j hj$ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1j hj$ubeh}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]colsKuh1hhj#ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXYIf set to a nonzero value, contains a pointer to a NUL-terminated human-readable kernel version number string, less 0x200. This can be used to display the kernel version to the user. This value should be less than (0x200 * setup_sects). For example, if this value is set to 0x1c00, the kernel version number string can be found at offset 0x1e00 in the kernel file. This is a valid value if and only if the "setup_sects" field contains the value 15 or higher, as:: 0x1c00 < 15 * 0x200 (= 0x1e00) but 0x1c00 >= 14 * 0x200 (= 0x1c00) 0x1c00 >> 9 = 14, So the minimum value for setup_secs is 15. h](h)}(hIf set to a nonzero value, contains a pointer to a NUL-terminated human-readable kernel version number string, less 0x200. This can be used to display the kernel version to the user. This value should be less than (0x200 * setup_sects).h]hIf set to a nonzero value, contains a pointer to a NUL-terminated human-readable kernel version number string, less 0x200. This can be used to display the kernel version to the user. This value should be less than (0x200 * setup_sects).}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj %ubh)}(hFor example, if this value is set to 0x1c00, the kernel version number string can be found at offset 0x1e00 in the kernel file. This is a valid value if and only if the "setup_sects" field contains the value 15 or higher, as::h]hFor example, if this value is set to 0x1c00, the kernel version number string can be found at offset 0x1e00 in the kernel file. This is a valid value if and only if the “setup_sects” field contains the value 15 or higher, as:}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj %ubj)}(h0x1c00 < 15 * 0x200 (= 0x1e00) but 0x1c00 >= 14 * 0x200 (= 0x1c00) 0x1c00 >> 9 = 14, So the minimum value for setup_secs is 15.h]h0x1c00 < 15 * 0x200 (= 0x1e00) but 0x1c00 >= 14 * 0x200 (= 0x1c00) 0x1c00 >> 9 = 14, So the minimum value for setup_secs is 15.}hj+%sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj %ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjB%ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjB%ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjb%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj_%ubah}(h]h ]h"]h$]h&]uh1jhj\%ubj)}(hhh]h)}(htype_of_loaderh]htype_of_loader}(hjy%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjv%ubah}(h]h ]h"]h$]h&]uh1jhj\%ubeh}(h]h ]h"]h$]h&]uh1j hjY%ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(hwrite (obligatory)h]hwrite (obligatory)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1j hjY%ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]h)}(h0x210/1h]h0x210/1}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1j hjY%ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1j hjY%ubeh}(h]h ]h"]h$]h&]uh1jhjB%ubeh}(h]h ]h"]h$]h&]colsKuh1hhj?%ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hX/If your boot loader has an assigned id (see table below), enter 0xTV here, where T is an identifier for the boot loader and V is a version number. Otherwise, enter 0xFF here. 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. For example, for T = 0x15, V = 0x234, write:: type_of_loader <- 0xE4 ext_loader_type <- 0x05 ext_loader_ver <- 0x23 Assigned boot loader ids (hexadecimal): == ======================================= 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 12 OVMF UEFI virtualization stack 13 barebox == ======================================= Please contact if you need a bootloader ID value assigned. h](h)}(hIf your boot loader has an assigned id (see table below), enter 0xTV here, where T is an identifier for the boot loader and V is a version number. Otherwise, enter 0xFF here.h]hIf your boot loader has an assigned id (see table below), enter 0xTV here, where T is an identifier for the boot loader and V is a version number. Otherwise, enter 0xFF here.}(hjO&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjK&ubh)}(hFor 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.h]hFor 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.}(hj]&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjK&ubh)}(h-For example, for T = 0x15, V = 0x234, write::h]h,For example, for T = 0x15, V = 0x234, write:}(hjk&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjK&ubj)}(hGtype_of_loader <- 0xE4 ext_loader_type <- 0x05 ext_loader_ver <- 0x23h]hGtype_of_loader <- 0xE4 ext_loader_type <- 0x05 ext_loader_ver <- 0x23}hjy&sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjK&ubh)}(h'Assigned boot loader ids (hexadecimal):h]h'Assigned boot loader ids (hexadecimal):}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjK&ubj)}(hX== ======================================= 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 12 OVMF UEFI virtualization stack 13 barebox == ======================================= h]h)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj&ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK'uh1hhj&ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h0h]h0}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubj)}(hhh]h)}(h,LILO (0x00 reserved for pre-2.00 bootloader)h]h,LILO (0x00 reserved for pre-2.00 bootloader)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h1h]h1}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubj)}(hhh]h)}(hLoadlinh]hLoadlin}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h2h]h2}(hj*'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj''ubah}(h]h ]h"]h$]h&]uh1jhj$'ubj)}(hhh]h)}(h1bootsect-loader (0x20, all other values reserved)h]h1bootsect-loader (0x20, all other values reserved)}(hjA'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>'ubah}(h]h ]h"]h$]h&]uh1jhj$'ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h3h]h3}(hja'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj^'ubah}(h]h ]h"]h$]h&]uh1jhj['ubj)}(hhh]h)}(hSyslinuxh]hSyslinux}(hjx'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhju'ubah}(h]h ]h"]h$]h&]uh1jhj['ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h4h]h4}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hhh]h)}(hEtherboot/gPXE/iPXEh]hEtherboot/gPXE/iPXE}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h5h]h5}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hhh]h)}(hELILOh]hELILO}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h7h]h7}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(hhh]h)}(hGRUBh]hGRUB}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h8h]h8}(hj=(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:(ubah}(h]h ]h"]h$]h&]uh1jhj7(ubj)}(hhh]h)}(hU-Booth]hU-Boot}(hjT(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjQ(ubah}(h]h ]h"]h$]h&]uh1jhj7(ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h9h]h9}(hjt(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjq(ubah}(h]h ]h"]h$]h&]uh1jhjn(ubj)}(hhh]h)}(hXenh]hXen}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhjn(ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(hAh]hA}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(hhh]h)}(hGujinh]hGujin}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(hBh]hB}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(hhh]h)}(hQemuh]hQemu}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(hCh]hC}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]h)}(hArcturus Networks uCbootloaderh]hArcturus Networks uCbootloader}(hj0)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(hDh]hD}(hjP)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjM)ubah}(h]h ]h"]h$]h&]uh1jhjJ)ubj)}(hhh]h)}(h kexec-toolsh]h kexec-tools}(hjg)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjd)ubah}(h]h ]h"]h$]h&]uh1jhjJ)ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(hEh]hE}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]h)}(hExtended (see ext_loader_type)h]hExtended (see ext_loader_type)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(hFh]hF}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]h)}(hSpecial (0xFF = undefined)h]hSpecial (0xFF = undefined)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h10h]h10}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]h)}(hReservedh]hReserved}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj *ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h11h]h11}(hj,*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)*ubah}(h]h ]h"]h$]h&]uh1jhj&*ubj)}(hhh]h)}(h=Minimal Linux Bootloader h](hMinimal Linux Bootloader <}(hjC*hhhNhNubh reference)}(h"http://sebastian-plotz.blogspot.deh]h"http://sebastian-plotz.blogspot.de}(hjM*hhhNhNubah}(h]h ]h"]h$]h&]refurijO*uh1jK*hjC*ubh>}(hjC*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj@*ubah}(h]h ]h"]h$]h&]uh1jhj&*ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h12h]h12}(hjx*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhju*ubah}(h]h ]h"]h$]h&]uh1jhjr*ubj)}(hhh]h)}(hOVMF UEFI virtualization stackh]hOVMF UEFI virtualization stack}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj*ubah}(h]h ]h"]h$]h&]uh1jhjr*ubeh}(h]h ]h"]h$]h&]uh1j hj&ubj )}(hhh](j)}(hhh]h)}(h13h]h13}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubj)}(hhh]h)}(hbareboxh]hbarebox}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]colsKuh1hhj&ubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jhhhMhjK&ubh)}(hJPlease contact if you need a bootloader ID value assigned.h](hPlease contact <}(hj*hhhNhNubjL*)}(h hpa@zytor.comh]h hpa@zytor.com}(hj+hhhNhNubah}(h]h ]h"]h$]h&]refurimailto:hpa@zytor.comuh1jK*hj*ubh-> if you need a bootloader ID value assigned.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjK&ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj$+ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj$+ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjD+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjA+ubah}(h]h ]h"]h$]h&]uh1jhj>+ubj)}(hhh]h)}(h loadflagsh]h loadflags}(hj[+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjX+ubah}(h]h ]h"]h$]h&]uh1jhj>+ubeh}(h]h ]h"]h$]h&]uh1j hj;+ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj{+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjx+ubah}(h]h ]h"]h$]h&]uh1jhju+ubj)}(hhh]h)}(hmodify (obligatory)h]hmodify (obligatory)}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhju+ubeh}(h]h ]h"]h$]h&]uh1j hj;+ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubj)}(hhh]h)}(h0x211/1h]h0x211/1}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1j hj;+ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1j hj;+ubeh}(h]h ]h"]h$]h&]uh1jhj$+ubeh}(h]h ]h"]h$]h&]colsKuh1hhj!+ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXThis field is a bitmask. Bit 0 (read): LOADED_HIGH - If 0, the protected-mode code is loaded at 0x10000. - If 1, the protected-mode code is loaded at 0x100000. Bit 1 (kernel internal): KASLR_FLAG - Used internally by the compressed kernel to communicate KASLR status to kernel proper. - If 1, KASLR enabled. - If 0, KASLR disabled. Bit 5 (write): QUIET_FLAG - If 0, print early messages. - If 1, suppress early messages. This requests to the kernel (decompressor and early kernel) to not write early messages that require accessing the display hardware directly. Bit 6 (obsolete): KEEP_SEGMENTS Protocol: 2.07+ - This flag is obsolete. Bit 7 (write): CAN_USE_HEAP Set this bit to 1 to indicate that the value entered in the heap_end_ptr is valid. If this field is clear, some setup code functionality will be disabled. h](h)}(hThis field is a bitmask.h]hThis field is a bitmask.}(hj1,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-,ubh)}(hBit 0 (read): LOADED_HIGHh]hBit 0 (read): LOADED_HIGH}(hj?,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-,ubj)}(hm- If 0, the protected-mode code is loaded at 0x10000. - If 1, the protected-mode code is loaded at 0x100000. h]h bullet_list)}(hhh](j)}(h3If 0, the protected-mode code is loaded at 0x10000.h]h)}(hjX,h]h3If 0, the protected-mode code is loaded at 0x10000.}(hjZ,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjV,ubah}(h]h ]h"]h$]h&]uh1jhjS,ubj)}(h5If 1, the protected-mode code is loaded at 0x100000. h]h)}(h4If 1, the protected-mode code is loaded at 0x100000.h]h4If 1, the protected-mode code is loaded at 0x100000.}(hjq,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjm,ubah}(h]h ]h"]h$]h&]uh1jhjS,ubeh}(h]h ]h"]h$]h&]bullet-uh1jQ,hhhMhjM,ubah}(h]h ]h"]h$]h&]uh1jhhhMhj-,ubh)}(h#Bit 1 (kernel internal): KASLR_FLAGh]h#Bit 1 (kernel internal): KASLR_FLAG}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-,ubj)}(h- Used internally by the compressed kernel to communicate KASLR status to kernel proper. - If 1, KASLR enabled. - If 0, KASLR disabled. h]jR,)}(hhh]j)}(hUsed internally by the compressed kernel to communicate KASLR status to kernel proper. - If 1, KASLR enabled. - If 0, KASLR disabled. h](h)}(hVUsed internally by the compressed kernel to communicate KASLR status to kernel proper.h]hVUsed internally by the compressed kernel to communicate KASLR status to kernel proper.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj,ubj)}(h/- If 1, KASLR enabled. - If 0, KASLR disabled. h]jR,)}(hhh](j)}(hIf 1, KASLR enabled.h]h)}(hj,h]hIf 1, KASLR enabled.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(hIf 0, KASLR disabled. h]h)}(hIf 0, KASLR disabled.h]hIf 0, KASLR disabled.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhhhMhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhhhMhj-,ubh)}(hBit 5 (write): QUIET_FLAGh]hBit 5 (write): QUIET_FLAG}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-,ubj)}(h- If 0, print early messages. - If 1, suppress early messages. This requests to the kernel (decompressor and early kernel) to not write early messages that require accessing the display hardware directly. h]jR,)}(hhh](j)}(hIf 0, print early messages.h]h)}(hj%-h]hIf 0, print early messages.}(hj'-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj#-ubah}(h]h ]h"]h$]h&]uh1jhj -ubj)}(hIf 1, suppress early messages. This requests to the kernel (decompressor and early kernel) to not write early messages that require accessing the display hardware directly. h](h)}(hIf 1, suppress early messages.h]hIf 1, suppress early messages.}(hj>-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:-ubj)}(hThis requests to the kernel (decompressor and early kernel) to not write early messages that require accessing the display hardware directly. h]h)}(hThis requests to the kernel (decompressor and early kernel) to not write early messages that require accessing the display hardware directly.h]hThis requests to the kernel (decompressor and early kernel) to not write early messages that require accessing the display hardware directly.}(hjP-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjL-ubah}(h]h ]h"]h$]h&]uh1jhhhMhj:-ubeh}(h]h ]h"]h$]h&]uh1jhj -ubeh}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhhhMhj-,ubh)}(hBit 6 (obsolete): KEEP_SEGMENTSh]hBit 6 (obsolete): KEEP_SEGMENTS}(hjv-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-,ubj)}(h*Protocol: 2.07+ - This flag is obsolete. h](h)}(hProtocol: 2.07+h]hProtocol: 2.07+}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-ubjR,)}(hhh]j)}(hThis flag is obsolete. h]h)}(hThis flag is obsolete.h]hThis flag is obsolete.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhMhj-ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj-,ubh)}(hBit 7 (write): CAN_USE_HEAPh]hBit 7 (write): CAN_USE_HEAP}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-,ubj)}(hSet this bit to 1 to indicate that the value entered in the heap_end_ptr is valid. If this field is clear, some setup code functionality will be disabled. h]h)}(hSet this bit to 1 to indicate that the value entered in the heap_end_ptr is valid. If this field is clear, some setup code functionality will be disabled.h]hSet this bit to 1 to indicate that the value entered in the heap_end_ptr is valid. If this field is clear, some setup code functionality will be disabled.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhhhMhj-,ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj-ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj-ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj .ubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(hhh]h)}(hsetup_move_sizeh]hsetup_move_size}(hj#.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj .ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjC.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@.ubah}(h]h ]h"]h$]h&]uh1jhj=.ubj)}(hhh]h)}(hmodify (obligatory)h]hmodify (obligatory)}(hjZ.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjW.ubah}(h]h ]h"]h$]h&]uh1jhj=.ubeh}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjw.ubah}(h]h ]h"]h$]h&]uh1jhjt.ubj)}(hhh]h)}(h0x212/2h]h0x212/2}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhjt.ubeh}(h]h ]h"]h$]h&]uh1j hj.ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(hhh]h)}(h 2.00-2.01h]h 2.00-2.01}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1j hj.ubeh}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]colsKuh1hhj-ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXWhen using protocol 2.00 or 2.01, if the real mode kernel is not loaded at 0x90000, it gets moved there later in the loading sequence. Fill in this field if you want additional data (such as the kernel command line) moved in addition to the real-mode kernel itself. The unit is bytes starting with the beginning of the boot sector. This field is can be ignored when the protocol is 2.02 or higher, or if the real-mode code is loaded at 0x90000. h](h)}(hX When using protocol 2.00 or 2.01, if the real mode kernel is not loaded at 0x90000, it gets moved there later in the loading sequence. Fill in this field if you want additional data (such as the kernel command line) moved in addition to the real-mode kernel itself.h]hX When using protocol 2.00 or 2.01, if the real mode kernel is not loaded at 0x90000, it gets moved there later in the loading sequence. Fill in this field if you want additional data (such as the kernel command line) moved in addition to the real-mode kernel itself.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubh)}(hAThe unit is bytes starting with the beginning of the boot sector.h]hAThe unit is bytes starting with the beginning of the boot sector.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj.ubh)}(hpThis field is can be ignored when the protocol is 2.02 or higher, or if the real-mode code is loaded at 0x90000.h]hpThis field is can be ignored when the protocol is 2.02 or higher, or if the real-mode code is loaded at 0x90000.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj.ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj,/ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj,/ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjL/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjI/ubah}(h]h ]h"]h$]h&]uh1jhjF/ubj)}(hhh]h)}(h code32_starth]h code32_start}(hjc/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj`/ubah}(h]h ]h"]h$]h&]uh1jhjF/ubeh}(h]h ]h"]h$]h&]uh1j hjC/ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj}/ubj)}(hhh]h)}(hmodify (optional, reloc)h]hmodify (optional, reloc)}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj}/ubeh}(h]h ]h"]h$]h&]uh1j hjC/ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hhh]h)}(h0x214/4h]h0x214/4}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1j hjC/ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj0ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1j hjC/ubeh}(h]h ]h"]h$]h&]uh1jhj,/ubeh}(h]h ]h"]h$]h&]colsKuh1hhj)/ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXThe address to jump to in protected mode. This defaults to the load address of the kernel, and can be used by the boot loader to determine the proper load address. This field can be modified for two purposes: 1. as a boot loader hook (see Advanced Boot Loader Hooks below.) 2. if a bootloader which does not install a hook loads a relocatable kernel at a nonstandard address it will have to modify this field to point to the load address. h](h)}(hThe address to jump to in protected mode. This defaults to the load address of the kernel, and can be used by the boot loader to determine the proper load address.h]hThe address to jump to in protected mode. This defaults to the load address of the kernel, and can be used by the boot loader to determine the proper load address.}(hj90hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj50ubh)}(h,This field can be modified for two purposes:h]h,This field can be modified for two purposes:}(hjG0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj50ubj)}(h1. as a boot loader hook (see Advanced Boot Loader Hooks below.) 2. if a bootloader which does not install a hook loads a relocatable kernel at a nonstandard address it will have to modify this field to point to the load address. h]j)}(hhh](j)}(h>as a boot loader hook (see Advanced Boot Loader Hooks below.) h]h)}(h=as a boot loader hook (see Advanced Boot Loader Hooks below.)h]h=as a boot loader hook (see Advanced Boot Loader Hooks below.)}(hj`0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj\0ubah}(h]h ]h"]h$]h&]uh1jhjY0ubj)}(hif a bootloader which does not install a hook loads a relocatable kernel at a nonstandard address it will have to modify this field to point to the load address. h]h)}(hif a bootloader which does not install a hook loads a relocatable kernel at a nonstandard address it will have to modify this field to point to the load address.h]hif a bootloader which does not install a hook loads a relocatable kernel at a nonstandard address it will have to modify this field to point to the load address.}(hjx0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjt0ubah}(h]h ]h"]h$]h&]uh1jhjY0ubeh}(h]h ]h"]h$]h&]j j j hj.uh1jhjU0ubah}(h]h ]h"]h$]h&]uh1jhhhMhj50ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj0ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj0ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubj)}(hhh]h)}(h ramdisk_imageh]h ramdisk_image}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM"hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubj)}(hhh]h)}(hwrite (obligatory)h]hwrite (obligatory)}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM"hj 1ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj01hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hj-1ubah}(h]h ]h"]h$]h&]uh1jhj*1ubj)}(hhh]h)}(h0x218/4h]h0x218/4}(hjG1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hjD1ubah}(h]h ]h"]h$]h&]uh1jhj*1ubeh}(h]h ]h"]h$]h&]uh1j hj0ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjg1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hjd1ubah}(h]h ]h"]h$]h&]uh1jhja1ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj~1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hj{1ubah}(h]h ]h"]h$]h&]uh1jhja1ubeh}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]colsKuh1hhj0ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hpThe 32-bit linear address of the initial ramdisk or ramfs. Leave at zero if there is no initial ramdisk/ramfs. h]h)}(hoThe 32-bit linear address of the initial ramdisk or ramfs. Leave at zero if there is no initial ramdisk/ramfs.h]hoThe 32-bit linear address of the initial ramdisk or ramfs. Leave at zero if there is no initial ramdisk/ramfs.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM'hj1ubah}(h]h ]h"]h$]h&]uh1jhhhM'hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj1ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj1ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM+hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(hhh]h)}(h ramdisk_sizeh]h ramdisk_size}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM+hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1j hj1ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubj)}(hhh]h)}(hwrite (obligatory)h]hwrite (obligatory)}(hj42hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hj12ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1j hj1ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjT2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM-hjQ2ubah}(h]h ]h"]h$]h&]uh1jhjN2ubj)}(hhh]h)}(h0x21c/4h]h0x21c/4}(hjk2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM-hjh2ubah}(h]h ]h"]h$]h&]uh1jhjN2ubeh}(h]h ]h"]h$]h&]uh1j hj1ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1j hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]colsKuh1hhj1ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(h[Size of the initial ramdisk or ramfs. Leave at zero if there is no initial ramdisk/ramfs. h]h)}(hZSize of the initial ramdisk or ramfs. Leave at zero if there is no initial ramdisk/ramfs.h]hZSize of the initial ramdisk or ramfs. Leave at zero if there is no initial ramdisk/ramfs.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM1hj2ubah}(h]h ]h"]h$]h&]uh1jhhhM1hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj2ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj2ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM5hj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubj)}(hhh]h)}(hbootsect_kludgeh]hbootsect_kludge}(hj!3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM5hj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1j hj3ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjA3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM6hj>3ubah}(h]h ]h"]h$]h&]uh1jhj;3ubj)}(hhh]h)}(hkernel internalh]hkernel internal}(hjX3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM6hjU3ubah}(h]h ]h"]h$]h&]uh1jhj;3ubeh}(h]h ]h"]h$]h&]uh1j hj3ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjx3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hju3ubah}(h]h ]h"]h$]h&]uh1jhjr3ubj)}(hhh]h)}(h0x220/4h]h0x220/4}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hj3ubah}(h]h ]h"]h$]h&]uh1jhjr3ubeh}(h]h ]h"]h$]h&]uh1j hj3ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM8hj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubj)}(hhh]h)}(h2.00+h]h2.00+}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM8hj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1j hj3ubeh}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]colsKuh1hhj2ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hThis field is obsolete. h]h)}(hThis field is obsolete.h]hThis field is obsolete.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hj3ubah}(h]h ]h"]h$]h&]uh1jhhhM;hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj4ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj4ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj.4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM>hj+4ubah}(h]h ]h"]h$]h&]uh1jhj(4ubj)}(hhh]h)}(h heap_end_ptrh]h heap_end_ptr}(hjE4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM>hjB4ubah}(h]h ]h"]h$]h&]uh1jhj(4ubeh}(h]h ]h"]h$]h&]uh1j hj%4ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hje4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM?hjb4ubah}(h]h ]h"]h$]h&]uh1jhj_4ubj)}(hhh]h)}(hwrite (obligatory)h]hwrite (obligatory)}(hj|4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM?hjy4ubah}(h]h ]h"]h$]h&]uh1jhj_4ubeh}(h]h ]h"]h$]h&]uh1j hj%4ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubj)}(hhh]h)}(h0x224/2h]h0x224/2}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1j hj%4ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubj)}(hhh]h)}(h2.01+h]h2.01+}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1j hj%4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]colsKuh1hhj 4ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hzSet this field to the offset (from the beginning of the real-mode code) of the end of the setup stack/heap, minus 0x0200. h]h)}(hySet this field to the offset (from the beginning of the real-mode code) of the end of the setup stack/heap, minus 0x0200.h]hySet this field to the offset (from the beginning of the real-mode code) of the end of the setup stack/heap, minus 0x0200.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhj5ubah}(h]h ]h"]h$]h&]uh1jhhhMDhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj25ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj25ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjR5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhjO5ubah}(h]h ]h"]h$]h&]uh1jhjL5ubj)}(hhh]h)}(hext_loader_verh]hext_loader_ver}(hji5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhjf5ubah}(h]h ]h"]h$]h&]uh1jhjL5ubeh}(h]h ]h"]h$]h&]uh1j hjI5ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubj)}(hhh]h)}(hwrite (optional)h]hwrite (optional)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1j hjI5ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMJhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubj)}(hhh]h)}(h0x226/1h]h0x226/1}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMJhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1j hjI5ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMKhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubj)}(hhh]h)}(h2.02+h]h2.02+}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMKhj 6ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1j hjI5ubeh}(h]h ]h"]h$]h&]uh1jhj25ubeh}(h]h ]h"]h$]h&]colsKuh1hhj/5ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXvThis field is used as an extension of the version number in the type_of_loader field. The total version number is considered to be (type_of_loader & 0x0f) + (ext_loader_ver << 4). The use of this field is boot loader specific. If not written, it is zero. Kernels prior to 2.6.31 did not recognize this field, but it is safe to write for protocol version 2.02 or higher. h](h)}(hThis field is used as an extension of the version number in the type_of_loader field. The total version number is considered to be (type_of_loader & 0x0f) + (ext_loader_ver << 4).h]hThis field is used as an extension of the version number in the type_of_loader field. The total version number is considered to be (type_of_loader & 0x0f) + (ext_loader_ver << 4).}(hj?6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMNhj;6ubh)}(hKThe use of this field is boot loader specific. If not written, it is zero.h]hKThe use of this field is boot loader specific. If not written, it is zero.}(hjM6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhj;6ubh)}(hrKernels prior to 2.6.31 did not recognize this field, but it is safe to write for protocol version 2.02 or higher.h]hrKernels prior to 2.6.31 did not recognize this field, but it is safe to write for protocol version 2.02 or higher.}(hj[6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhj;6ubeh}(h]h ]h"]h$]h&]uh1jhhhMNhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjr6ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK5uh1hhjr6ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hhh]h)}(hext_loader_typeh]hext_loader_type}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1j hj6ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hhh]h)}(h5write (obligatory if (type_of_loader & 0xf0) == 0xe0)h]h5write (obligatory if (type_of_loader & 0xf0) == 0xe0)}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1j hj6ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM[hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hhh]h)}(h0x227/1h]h0x227/1}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM[hj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1j hj6ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj77hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hj47ubah}(h]h ]h"]h$]h&]uh1jhj17ubj)}(hhh]h)}(h2.02+h]h2.02+}(hjN7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjK7ubah}(h]h ]h"]h$]h&]uh1jhj17ubeh}(h]h ]h"]h$]h&]uh1j hj6ubeh}(h]h ]h"]h$]h&]uh1jhjr6ubeh}(h]h ]h"]h$]h&]colsKuh1hhjo6ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hX]This field is used as an extension of the type number in type_of_loader field. If the type in type_of_loader is 0xE, then the actual type is (ext_loader_type + 0x10). This field is ignored if the type in type_of_loader is not 0xE. Kernels prior to 2.6.31 did not recognize this field, but it is safe to write for protocol version 2.02 or higher. h](h)}(hThis field is used as an extension of the type number in type_of_loader field. If the type in type_of_loader is 0xE, then the actual type is (ext_loader_type + 0x10).h]hThis field is used as an extension of the type number in type_of_loader field. If the type in type_of_loader is 0xE, then the actual type is (ext_loader_type + 0x10).}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM_hj{7ubh)}(h?This field is ignored if the type in type_of_loader is not 0xE.h]h?This field is ignored if the type in type_of_loader is not 0xE.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMchj{7ubh)}(hrKernels prior to 2.6.31 did not recognize this field, but it is safe to write for protocol version 2.02 or higher.h]hrKernels prior to 2.6.31 did not recognize this field, but it is safe to write for protocol version 2.02 or higher.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMehj{7ubeh}(h]h ]h"]h$]h&]uh1jhhhM_hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj7ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj7ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubj)}(hhh]h)}(h cmd_line_ptrh]h cmd_line_ptr}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMjhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(hhh]h)}(hwrite (obligatory)h]hwrite (obligatory)}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMjhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj@8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhj=8ubah}(h]h ]h"]h$]h&]uh1jhj:8ubj)}(hhh]h)}(h0x228/4h]h0x228/4}(hjW8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhjT8ubah}(h]h ]h"]h$]h&]uh1jhj:8ubeh}(h]h ]h"]h$]h&]uh1j hj7ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjw8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhjt8ubah}(h]h ]h"]h$]h&]uh1jhjq8ubj)}(hhh]h)}(h2.02+h]h2.02+}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhj8ubah}(h]h ]h"]h$]h&]uh1jhjq8ubeh}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]colsKuh1hhj7ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXSet this field to the linear address of the kernel command line. The kernel command line can be located anywhere between the end of the setup heap and 0xA0000; it does not have to be located in the same 64K segment as the real-mode code itself. Fill in this field even if your boot loader does not support a command line, in which case you can point this to an empty string (or better yet, to the string "auto".) If this field is left at zero, the kernel will assume that your boot loader does not support the 2.02+ protocol. h](h)}(hSet this field to the linear address of the kernel command line. The kernel command line can be located anywhere between the end of the setup heap and 0xA0000; it does not have to be located in the same 64K segment as the real-mode code itself.h]hSet this field to the linear address of the kernel command line. The kernel command line can be located anywhere between the end of the setup heap and 0xA0000; it does not have to be located in the same 64K segment as the real-mode code itself.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMohj8ubh)}(hXFill in this field even if your boot loader does not support a command line, in which case you can point this to an empty string (or better yet, to the string "auto".) If this field is left at zero, the kernel will assume that your boot loader does not support the 2.02+ protocol.h]hXFill in this field even if your boot loader does not support a command line, in which case you can point this to an empty string (or better yet, to the string “auto”.) If this field is left at zero, the kernel will assume that your boot loader does not support the 2.02+ protocol.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMthj8ubeh}(h]h ]h"]h$]h&]uh1jhhhMohjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj8ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj8ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM{hj9ubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(hhh]h)}(hinitrd_addr_maxh]hinitrd_addr_max}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM{hj9ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1j hj8ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj;9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM|hj89ubah}(h]h ]h"]h$]h&]uh1jhj59ubj)}(hhh]h)}(hreadh]hread}(hjR9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM|hjO9ubah}(h]h ]h"]h$]h&]uh1jhj59ubeh}(h]h ]h"]h$]h&]uh1j hj8ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjr9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM}hjo9ubah}(h]h ]h"]h$]h&]uh1jhjl9ubj)}(hhh]h)}(h0x22c/4h]h0x22c/4}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM}hj9ubah}(h]h ]h"]h$]h&]uh1jhjl9ubeh}(h]h ]h"]h$]h&]uh1j hj8ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubj)}(hhh]h)}(h2.03+h]h2.03+}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1j hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]colsKuh1hhj8ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXsThe maximum address that may be occupied by the initial ramdisk/ramfs contents. For boot protocols 2.02 or earlier, this field is not present, and the maximum address is 0x37FFFFFF. (This address is defined as the address of the highest safe byte, so if your ramdisk is exactly 131072 bytes long and this field is 0x37FFFFFF, you can start your ramdisk at 0x37FE0000.) h]h)}(hXrThe maximum address that may be occupied by the initial ramdisk/ramfs contents. For boot protocols 2.02 or earlier, this field is not present, and the maximum address is 0x37FFFFFF. (This address is defined as the address of the highest safe byte, so if your ramdisk is exactly 131072 bytes long and this field is 0x37FFFFFF, you can start your ramdisk at 0x37FE0000.)h]hXrThe maximum address that may be occupied by the initial ramdisk/ramfs contents. For boot protocols 2.02 or earlier, this field is not present, and the maximum address is 0x37FFFFFF. (This address is defined as the address of the highest safe byte, so if your ramdisk is exactly 131072 bytes long and this field is 0x37FFFFFF, you can start your ramdisk at 0x37FE0000.)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj9ubah}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj:ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj:ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj(:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj%:ubah}(h]h ]h"]h$]h&]uh1jhj":ubj)}(hhh]h)}(hkernel_alignmenth]hkernel_alignment}(hj?:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<:ubah}(h]h ]h"]h$]h&]uh1jhj":ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj_:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj\:ubah}(h]h ]h"]h$]h&]uh1jhjY:ubj)}(hhh]h)}(hread/modify (reloc)h]hread/modify (reloc)}(hjv:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjs:ubah}(h]h ]h"]h$]h&]uh1jhjY:ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubj)}(hhh]h)}(h0x230/4h]h0x230/4}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1j hj:ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubj)}(hhh]h)}(h2.05+ (read), 2.10+ (modify)h]h2.05+ (read), 2.10+ (modify)}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1j hj:ubeh}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]colsKuh1hhj:ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXAlignment unit required by the kernel (if relocatable_kernel is true.) A relocatable kernel that is loaded at an alignment incompatible with the value in this field will be realigned during kernel initialization. Starting with protocol version 2.10, this reflects the kernel alignment preferred for optimal performance; it is possible for the loader to modify this field to permit a lesser alignment. See the min_alignment and pref_address field below. h](h)}(hAlignment unit required by the kernel (if relocatable_kernel is true.) A relocatable kernel that is loaded at an alignment incompatible with the value in this field will be realigned during kernel initialization.h]hAlignment unit required by the kernel (if relocatable_kernel is true.) A relocatable kernel that is loaded at an alignment incompatible with the value in this field will be realigned during kernel initialization.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubh)}(hStarting with protocol version 2.10, this reflects the kernel alignment preferred for optimal performance; it is possible for the loader to modify this field to permit a lesser alignment. See the min_alignment and pref_address field below.h]hStarting with protocol version 2.10, this reflects the kernel alignment preferred for optimal performance; it is possible for the loader to modify this field to permit a lesser alignment. See the min_alignment and pref_address field below.}(hj#;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj:;ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj:;ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjZ;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjW;ubah}(h]h ]h"]h$]h&]uh1jhjT;ubj)}(hhh]h)}(hrelocatable_kernelh]hrelocatable_kernel}(hjq;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjn;ubah}(h]h ]h"]h$]h&]uh1jhjT;ubeh}(h]h ]h"]h$]h&]uh1j hjQ;ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubj)}(hhh]h)}(h read (reloc)h]h read (reloc)}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1j hjQ;ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubj)}(hhh]h)}(h0x234/1h]h0x234/1}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1j hjQ;ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubj)}(hhh]h)}(h2.05+h]h2.05+}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1j hjQ;ubeh}(h]h ]h"]h$]h&]uh1jhj:;ubeh}(h]h ]h"]h$]h&]colsKuh1hhj7;ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hIf this field is nonzero, the protected-mode part of the kernel can be loaded at any address that satisfies the kernel_alignment field. After loading, the boot loader must set the code32_start field to point to the loaded code, or to a boot loader hook. h]h)}(hIf this field is nonzero, the protected-mode part of the kernel can be loaded at any address that satisfies the kernel_alignment field. After loading, the boot loader must set the code32_start field to point to the loaded code, or to a boot loader hook.h]hIf this field is nonzero, the protected-mode part of the kernel can be loaded at any address that satisfies the kernel_alignment field. After loading, the boot loader must set the code32_start field to point to the loaded code, or to a boot loader hook.}(hjG<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjC<ubah}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj^<ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj^<ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj~<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj{<ubah}(h]h ]h"]h$]h&]uh1jhjx<ubj)}(hhh]h)}(h min_alignmenth]h min_alignment}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1jhjx<ubeh}(h]h ]h"]h$]h&]uh1j hju<ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubj)}(hhh]h)}(h read (reloc)h]h read (reloc)}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1j hju<ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubj)}(hhh]h)}(h0x235/1h]h0x235/1}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj=ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1j hju<ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj#=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj =ubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(hhh]h)}(h2.10+h]h2.10+}(hj:=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1j hju<ubeh}(h]h ]h"]h$]h&]uh1jhj^<ubeh}(h]h ]h"]h$]h&]colsKuh1hhj[<ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXThis field, if nonzero, indicates as a power of two the minimum alignment required, as opposed to preferred, by the kernel to boot. If a boot loader makes use of this field, it should update the kernel_alignment field with the alignment unit desired; typically:: kernel_alignment = 1 << min_alignment; There may be a considerable performance cost with an excessively misaligned kernel. Therefore, a loader should typically try each power-of-two alignment from kernel_alignment down to this alignment. h](h)}(hXThis field, if nonzero, indicates as a power of two the minimum alignment required, as opposed to preferred, by the kernel to boot. If a boot loader makes use of this field, it should update the kernel_alignment field with the alignment unit desired; typically::h]hXThis field, if nonzero, indicates as a power of two the minimum alignment required, as opposed to preferred, by the kernel to boot. If a boot loader makes use of this field, it should update the kernel_alignment field with the alignment unit desired; typically:}(hjk=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjg=ubj)}(h&kernel_alignment = 1 << min_alignment;h]h&kernel_alignment = 1 << min_alignment;}hjy=sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjg=ubh)}(hThere may be a considerable performance cost with an excessively misaligned kernel. Therefore, a loader should typically try each power-of-two alignment from kernel_alignment down to this alignment.h]hThere may be a considerable performance cost with an excessively misaligned kernel. Therefore, a loader should typically try each power-of-two alignment from kernel_alignment down to this alignment.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjg=ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj=ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj=ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(hhh]h)}(h xloadflagsh]h xloadflags}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1j hj=ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(hhh]h)}(hreadh]hread}(hj >hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj >ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1j hj=ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj,>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj)>ubah}(h]h ]h"]h$]h&]uh1jhj&>ubj)}(hhh]h)}(h0x236/2h]h0x236/2}(hjC>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@>ubah}(h]h ]h"]h$]h&]uh1jhj&>ubeh}(h]h ]h"]h$]h&]uh1j hj=ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjc>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj`>ubah}(h]h ]h"]h$]h&]uh1jhj]>ubj)}(hhh]h)}(h2.12+h]h2.12+}(hjz>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjw>ubah}(h]h ]h"]h$]h&]uh1jhj]>ubeh}(h]h ]h"]h$]h&]uh1j hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]colsKuh1hhj=ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXrThis field is a bitmask. Bit 0 (read): XLF_KERNEL_64 - If 1, this kernel has the legacy 64-bit entry point at 0x200. Bit 1 (read): XLF_CAN_BE_LOADED_ABOVE_4G - If 1, kernel/boot_params/cmdline/ramdisk can be above 4G. Bit 2 (read): XLF_EFI_HANDOVER_32 - If 1, the kernel supports the 32-bit EFI handoff entry point given at handover_offset. Bit 3 (read): XLF_EFI_HANDOVER_64 - If 1, the kernel supports the 64-bit EFI handoff entry point given at handover_offset + 0x200. Bit 4 (read): XLF_EFI_KEXEC - If 1, the kernel supports kexec EFI boot with EFI runtime support. h](h)}(hThis field is a bitmask.h]hThis field is a bitmask.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubh)}(hBit 0 (read): XLF_KERNEL_64h]hBit 0 (read): XLF_KERNEL_64}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubj)}(h@- If 1, this kernel has the legacy 64-bit entry point at 0x200. h]jR,)}(hhh]j)}(h>If 1, this kernel has the legacy 64-bit entry point at 0x200. h]h)}(h=If 1, this kernel has the legacy 64-bit entry point at 0x200.h]h=If 1, this kernel has the legacy 64-bit entry point at 0x200.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhMhj>ubah}(h]h ]h"]h$]h&]uh1jhhhMhj>ubh)}(h(Bit 1 (read): XLF_CAN_BE_LOADED_ABOVE_4Gh]h(Bit 1 (read): XLF_CAN_BE_LOADED_ABOVE_4G}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubj)}(h<- If 1, kernel/boot_params/cmdline/ramdisk can be above 4G. h]jR,)}(hhh]j)}(h:If 1, kernel/boot_params/cmdline/ramdisk can be above 4G. h]h)}(h9If 1, kernel/boot_params/cmdline/ramdisk can be above 4G.h]h9If 1, kernel/boot_params/cmdline/ramdisk can be above 4G.}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhMhj?ubah}(h]h ]h"]h$]h&]uh1jhhhMhj>ubh)}(h!Bit 2 (read): XLF_EFI_HANDOVER_32h]h!Bit 2 (read): XLF_EFI_HANDOVER_32}(hj+?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubj)}(h[- If 1, the kernel supports the 32-bit EFI handoff entry point given at handover_offset. h]jR,)}(hhh]j)}(hWIf 1, the kernel supports the 32-bit EFI handoff entry point given at handover_offset. h]h)}(hVIf 1, the kernel supports the 32-bit EFI handoff entry point given at handover_offset.h]hVIf 1, the kernel supports the 32-bit EFI handoff entry point given at handover_offset.}(hjD?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@?ubah}(h]h ]h"]h$]h&]uh1jhj=?ubah}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhMhj9?ubah}(h]h ]h"]h$]h&]uh1jhhhMhj>ubh)}(h!Bit 3 (read): XLF_EFI_HANDOVER_64h]h!Bit 3 (read): XLF_EFI_HANDOVER_64}(hjd?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubj)}(hc- If 1, the kernel supports the 64-bit EFI handoff entry point given at handover_offset + 0x200. h]jR,)}(hhh]j)}(h_If 1, the kernel supports the 64-bit EFI handoff entry point given at handover_offset + 0x200. h]h)}(h^If 1, the kernel supports the 64-bit EFI handoff entry point given at handover_offset + 0x200.h]h^If 1, the kernel supports the 64-bit EFI handoff entry point given at handover_offset + 0x200.}(hj}?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjy?ubah}(h]h ]h"]h$]h&]uh1jhjv?ubah}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhMhjr?ubah}(h]h ]h"]h$]h&]uh1jhhhMhj>ubh)}(hBit 4 (read): XLF_EFI_KEXECh]hBit 4 (read): XLF_EFI_KEXEC}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>ubj)}(hF- If 1, the kernel supports kexec EFI boot with EFI runtime support. h]jR,)}(hhh]j)}(hDIf 1, the kernel supports kexec EFI boot with EFI runtime support. h]h)}(hBIf 1, the kernel supports kexec EFI boot with EFI runtime support.h]hBIf 1, the kernel supports kexec EFI boot with EFI runtime support.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhMhj?ubah}(h]h ]h"]h$]h&]uh1jhhhMhj>ubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj?ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj?ubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubj)}(hhh]h)}(h cmdline_sizeh]h cmdline_size}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1j hj?ubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj6@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj3@ubah}(h]h ]h"]h$]h&]uh1jhj0@ubj)}(hhh]h)}(hreadh]hread}(hjM@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjJ@ubah}(h]h ]h"]h$]h&]uh1jhj0@ubeh}(h]h ]h"]h$]h&]uh1j hj?ubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjm@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjj@ubah}(h]h ]h"]h$]h&]uh1jhjg@ubj)}(hhh]h)}(h0x238/4h]h0x238/4}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@ubah}(h]h ]h"]h$]h&]uh1jhjg@ubeh}(h]h ]h"]h$]h&]uh1j hj?ubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubj)}(hhh]h)}(h2.06+h]h2.06+}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1j hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]colsKuh1hhj?ubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hThe maximum size of the command line without the terminating zero. This means that the command line can contain at most cmdline_size characters. With protocol version 2.05 and earlier, the maximum size was 255. h]h)}(hThe maximum size of the command line without the terminating zero. This means that the command line can contain at most cmdline_size characters. With protocol version 2.05 and earlier, the maximum size was 255.h]hThe maximum size of the command line without the terminating zero. This means that the command line can contain at most cmdline_size characters. With protocol version 2.05 and earlier, the maximum size was 255.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj@ubah}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjAubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK$uh1hhjAubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj#AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj Aubah}(h]h ]h"]h$]h&]uh1jhjAubj)}(hhh]h)}(hhardware_subarchh]hhardware_subarch}(hj:AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7Aubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1j hjAubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjZAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjWAubah}(h]h ]h"]h$]h&]uh1jhjTAubj)}(hhh]h)}(h$write (optional, defaults to x86/PC)h]h$write (optional, defaults to x86/PC)}(hjqAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjnAubah}(h]h ]h"]h$]h&]uh1jhjTAubeh}(h]h ]h"]h$]h&]uh1j hjAubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubj)}(hhh]h)}(h0x23c/4h]h0x23c/4}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1j hjAubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubj)}(hhh]h)}(h2.07+h]h2.07+}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1j hjAubeh}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]colsKuh1hhjAubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hX>In a paravirtualized environment the hardware low level architectural pieces such as interrupt handling, page table handling, and accessing process control registers needs to be done differently. This field allows the bootloader to inform the kernel we are in one one of those environments. ========== ============================== 0x00000000 The default x86/PC environment 0x00000001 lguest 0x00000002 Xen 0x00000003 Intel MID (Moorestown, CloverTrail, Merrifield, Moorefield) 0x00000004 CE4100 TV Platform ========== ============================== h](h)}(hIn a paravirtualized environment the hardware low level architectural pieces such as interrupt handling, page table handling, and accessing process control registers needs to be done differently.h]hIn a paravirtualized environment the hardware low level architectural pieces such as interrupt handling, page table handling, and accessing process control registers needs to be done differently.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj Bubh)}(h^This field allows the bootloader to inform the kernel we are in one one of those environments.h]h^This field allows the bootloader to inform the kernel we are in one one of those environments.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj Bubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj/Bubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK;uh1hhj/Bubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h 0x00000000h]h 0x00000000}(hjOBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjLBubah}(h]h ]h"]h$]h&]uh1jhjIBubj)}(hhh]h)}(hThe default x86/PC environmenth]hThe default x86/PC environment}(hjfBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjcBubah}(h]h ]h"]h$]h&]uh1jhjIBubeh}(h]h ]h"]h$]h&]uh1j hjFBubj )}(hhh](j)}(hhh]h)}(h 0x00000001h]h 0x00000001}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubj)}(hhh]h)}(hlguesth]hlguest}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1j hjFBubj )}(hhh](j)}(hhh]h)}(h 0x00000002h]h 0x00000002}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubj)}(hhh]h)}(hXenh]hXen}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1j hjFBubj )}(hhh](j)}(hhh]h)}(h 0x00000003h]h 0x00000003}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjBubah}(h]h ]h"]h$]h&]uh1jhjBubj)}(hhh]h)}(h;Intel MID (Moorestown, CloverTrail, Merrifield, Moorefield)h]h;Intel MID (Moorestown, CloverTrail, Merrifield, Moorefield)}(hj ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1j hjFBubj )}(hhh](j)}(hhh]h)}(h 0x00000004h]h 0x00000004}(hj+ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj(Cubah}(h]h ]h"]h$]h&]uh1jhj%Cubj)}(hhh]h)}(hCE4100 TV Platformh]hCE4100 TV Platform}(hjBChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj?Cubah}(h]h ]h"]h$]h&]uh1jhj%Cubeh}(h]h ]h"]h$]h&]uh1j hjFBubeh}(h]h ]h"]h$]h&]uh1jhj/Bubeh}(h]h ]h"]h$]h&]colsKuh1hhj,Bubah}(h]h ]h"]h$]h&]uh1hhj Bubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjxCubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjxCubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubj)}(hhh]h)}(hhardware_subarch_datah]hhardware_subarch_data}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1j hjCubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubj)}(hhh]h)}(hwrite (subarch-dependent)h]hwrite (subarch-dependent)}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1j hjCubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubj)}(hhh]h)}(h0x240/8h]h0x240/8}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1j hjCubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hj=DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:Dubah}(h]h ]h"]h$]h&]uh1jhj7Dubj)}(hhh]h)}(h2.07+h]h2.07+}(hjTDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjQDubah}(h]h ]h"]h$]h&]uh1jhj7Dubeh}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ]h"]h$]h&]uh1jhjxCubeh}(h]h ]h"]h$]h&]colsKuh1hhjuCubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hA pointer to data that is specific to hardware subarch This field is currently unused for the default x86/PC environment, do not modify. h]h)}(hA pointer to data that is specific to hardware subarch This field is currently unused for the default x86/PC environment, do not modify.h]hA pointer to data that is specific to hardware subarch This field is currently unused for the default x86/PC environment, do not modify.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjDubah}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjDubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjDubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubj)}(hhh]h)}(hpayload_offseth]hpayload_offset}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1j hjDubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubj)}(hhh]h)}(hreadh]hread}(hj EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1j hjDubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj*EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Eubah}(h]h ]h"]h$]h&]uh1jhj$Eubj)}(hhh]h)}(h0x248/4h]h0x248/4}(hjAEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>Eubah}(h]h ]h"]h$]h&]uh1jhj$Eubeh}(h]h ]h"]h$]h&]uh1j hjDubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjaEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj^Eubah}(h]h ]h"]h$]h&]uh1jhj[Eubj)}(hhh]h)}(h2.08+h]h2.08+}(hjxEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjuEubah}(h]h ]h"]h$]h&]uh1jhj[Eubeh}(h]h ]h"]h$]h&]uh1j hjDubeh}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]colsKuh1hhjDubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hX(If non-zero then this field contains the offset from the beginning of the protected-mode code to the payload. The payload may be compressed. The format of both the compressed and uncompressed data should be determined using the standard magic numbers. The currently supported compression formats are gzip (magic numbers 1F 8B or 1F 9E), bzip2 (magic number 42 5A), LZMA (magic number 5D 00), XZ (magic number FD 37), LZ4 (magic number 02 21) and ZSTD (magic number 28 B5). The uncompressed payload is currently always ELF (magic number 7F 45 4C 46). h](h)}(hmIf non-zero then this field contains the offset from the beginning of the protected-mode code to the payload.h]hmIf non-zero then this field contains the offset from the beginning of the protected-mode code to the payload.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjEubh)}(hXThe payload may be compressed. The format of both the compressed and uncompressed data should be determined using the standard magic numbers. The currently supported compression formats are gzip (magic numbers 1F 8B or 1F 9E), bzip2 (magic number 42 5A), LZMA (magic number 5D 00), XZ (magic number FD 37), LZ4 (magic number 02 21) and ZSTD (magic number 28 B5). The uncompressed payload is currently always ELF (magic number 7F 45 4C 46).h]hXThe payload may be compressed. The format of both the compressed and uncompressed data should be determined using the standard magic numbers. The currently supported compression formats are gzip (magic numbers 1F 8B or 1F 9E), bzip2 (magic number 42 5A), LZMA (magic number 5D 00), XZ (magic number FD 37), LZ4 (magic number 02 21) and ZSTD (magic number 28 B5). The uncompressed payload is currently always ELF (magic number 7F 45 4C 46).}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEubeh}(h]h ]h"]h$]h&]uh1jhhhM hjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjEubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjEubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubj)}(hhh]h)}(hpayload_lengthh]hpayload_length}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjFubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1j hjEubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj%FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj"Fubah}(h]h ]h"]h$]h&]uh1jhjFubj)}(hhh]h)}(hreadh]hread}(hj */ .type = SETUP_INDIRECT, .len = sizeof(setup_indirect), .data[sizeof(setup_indirect)] = (struct setup_indirect) { .type = SETUP_INDIRECT | SETUP_E820_EXT, .reserved = 0, .len = , .addr = , }, } h](h)}(hThe 64-bit physical pointer to NULL terminated single linked list of struct setup_data. This is used to define a more extensible boot parameters passing mechanism. The definition of struct setup_data is as follow::h]hThe 64-bit physical pointer to NULL terminated single linked list of struct setup_data. This is used to define a more extensible boot parameters passing mechanism. The definition of struct setup_data is as follow:}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hjGubj)}(hYstruct setup_data { __u64 next; __u32 type; __u32 len; __u8 data[]; }h]hYstruct setup_data { __u64 next; __u32 type; __u32 len; __u8 data[]; }}hj Hsbah}(h]h ]h"]h$]h&]hhuh1jhhhM+hjGubh)}(hWhere, the next is a 64-bit physical pointer to the next node of linked list, the next field of the last node is 0; the type is used to identify the contents of data; the len is the length of data field; the data holds the real payload.h]hWhere, the next is a 64-bit physical pointer to the next node of linked list, the next field of the last node is 0; the type is used to identify the contents of data; the len is the length of data field; the data holds the real payload.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM2hjGubh)}(hThis list may be modified at a number of points during the bootup process. Therefore, when modifying this list one should always make sure to consider the case where the linked list already contains entries.h]hThis list may be modified at a number of points during the bootup process. Therefore, when modifying this list one should always make sure to consider the case where the linked list already contains entries.}(hj)HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM7hjGubh)}(hXLThe setup_data is a bit awkward to use for extremely large data objects, both because the setup_data header has to be adjacent to the data object and because it has a 32-bit length field. However, it is important that intermediate stages of the boot process have a way to identify which chunks of memory are occupied by kernel data.h]hXLThe setup_data is a bit awkward to use for extremely large data objects, both because the setup_data header has to be adjacent to the data object and because it has a 32-bit length field. However, it is important that intermediate stages of the boot process have a way to identify which chunks of memory are occupied by kernel data.}(hj7HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM<hjGubh)}(hUThus setup_indirect struct and SETUP_INDIRECT type were introduced in protocol 2.15::h]hTThus setup_indirect struct and SETUP_INDIRECT type were introduced in protocol 2.15:}(hjEHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMBhjGubj)}(hstruct setup_indirect { __u32 type; __u32 reserved; /* Reserved, must be set to zero. */ __u64 len; __u64 addr; };h]hstruct setup_indirect { __u32 type; __u32 reserved; /* Reserved, must be set to zero. */ __u64 len; __u64 addr; };}hjSHsbah}(h]h ]h"]h$]h&]hhuh1jhhhMEhjGubh)}(hXThe type member is a SETUP_INDIRECT | SETUP_* type. However, it cannot be SETUP_INDIRECT itself since making the setup_indirect a tree structure could require a lot of stack space in something that needs to parse it and stack space can be limited in boot contexts.h]hXThe type member is a SETUP_INDIRECT | SETUP_* type. However, it cannot be SETUP_INDIRECT itself since making the setup_indirect a tree structure could require a lot of stack space in something that needs to parse it and stack space can be limited in boot contexts.}(hjaHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMLhjGubh)}(hLet's give an example how to point to SETUP_E820_EXT data using setup_indirect. In this case setup_data and setup_indirect will look like this::h]hLet’s give an example how to point to SETUP_E820_EXT data using setup_indirect. In this case setup_data and setup_indirect will look like this:}(hjoHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMQhjGubj)}(hXstruct setup_data { .next = 0, /* or */ .type = SETUP_INDIRECT, .len = sizeof(setup_indirect), .data[sizeof(setup_indirect)] = (struct setup_indirect) { .type = SETUP_INDIRECT | SETUP_E820_EXT, .reserved = 0, .len = , .addr = , }, }h]hXstruct setup_data { .next = 0, /* or */ .type = SETUP_INDIRECT, .len = sizeof(setup_indirect), .data[sizeof(setup_indirect)] = (struct setup_indirect) { .type = SETUP_INDIRECT | SETUP_E820_EXT, .reserved = 0, .len = , .addr = , }, }}hj}Hsbah}(h]h ]h"]h$]h&]hhuh1jhhhMThjGubeh}(h]h ]h"]h$]h&]uh1jhhhM&hjIhhubj)}(hSETUP_INDIRECT | SETUP_NONE objects cannot be properly distinguished from SETUP_INDIRECT itself. So, this kind of objects cannot be provided by the bootloaders.h]h)}(hSETUP_INDIRECT | SETUP_NONE objects cannot be properly distinguished from SETUP_INDIRECT itself. So, this kind of objects cannot be provided by the bootloaders.h]hSETUP_INDIRECT | SETUP_NONE objects cannot be properly distinguished from SETUP_INDIRECT itself. So, this kind of objects cannot be provided by the bootloaders.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMahjHubah}(h]h ]h"]h$]h&]uh1jhjIhhhhhNubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjHubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjHubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMfhjHubah}(h]h ]h"]h$]h&]uh1jhjHubj)}(hhh]h)}(h pref_addressh]h pref_address}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMfhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1j hjHubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMghjIubah}(h]h ]h"]h$]h&]uh1jhjHubj)}(hhh]h)}(h read (reloc)h]h read (reloc)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMghjIubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1j hjHubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj:IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhhj7Iubah}(h]h ]h"]h$]h&]uh1jhj4Iubj)}(hhh]h)}(h0x258/8h]h0x258/8}(hjQIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhhjNIubah}(h]h ]h"]h$]h&]uh1jhj4Iubeh}(h]h ]h"]h$]h&]uh1j hjHubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjqIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihjnIubah}(h]h ]h"]h$]h&]uh1jhjkIubj)}(hhh]h)}(h2.10+h]h2.10+}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihjIubah}(h]h ]h"]h$]h&]uh1jhjkIubeh}(h]h ]h"]h$]h&]uh1j hjHubeh}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]colsKuh1hhjHubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXGThis field, if nonzero, represents a preferred load address for the kernel. A relocating bootloader should attempt to load at this address if possible. A non-relocatable kernel will unconditionally move itself and to run at this address. A relocatable kernel will move itself to this address if it loaded below this address. h](h)}(hThis field, if nonzero, represents a preferred load address for the kernel. A relocating bootloader should attempt to load at this address if possible.h]hThis field, if nonzero, represents a preferred load address for the kernel. A relocating bootloader should attempt to load at this address if possible.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhjIubh)}(hA non-relocatable kernel will unconditionally move itself and to run at this address. A relocatable kernel will move itself to this address if it loaded below this address.h]hA non-relocatable kernel will unconditionally move itself and to run at this address. A relocatable kernel will move itself to this address if it loaded below this address.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphjIubeh}(h]h ]h"]h$]h&]uh1jhhhMlhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjIubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjIubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhjIubah}(h]h ]h"]h$]h&]uh1jhjIubj)}(hhh]h)}(h init_sizeh]h init_size}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1j hjIubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hj5JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMvhj2Jubah}(h]h ]h"]h$]h&]uh1jhj/Jubj)}(hhh]h)}(hreadh]hread}(hjLJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMvhjIJubah}(h]h ]h"]h$]h&]uh1jhj/Jubeh}(h]h ]h"]h$]h&]uh1j hjIubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjlJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjiJubah}(h]h ]h"]h$]h&]uh1jhjfJubj)}(hhh]h)}(h0x260/4h]h0x260/4}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhjJubah}(h]h ]h"]h$]h&]uh1jhjfJubeh}(h]h ]h"]h$]h&]uh1j hjIubeh}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]colsKuh1hhjIubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hXThis field indicates the amount of linear contiguous memory starting at the kernel runtime start address that the kernel needs before it is capable of examining its memory map. This is not the same thing as the total amount of memory the kernel needs to boot, but it can be used by a relocating boot loader to help select a safe load address for the kernel. The kernel runtime start address is determined by the following algorithm:: if (relocatable_kernel) { if (load_address < pref_address) load_address = pref_address; runtime_start = align_up(load_address, kernel_alignment); } else { runtime_start = pref_address; } h](h)}(hXfThis field indicates the amount of linear contiguous memory starting at the kernel runtime start address that the kernel needs before it is capable of examining its memory map. This is not the same thing as the total amount of memory the kernel needs to boot, but it can be used by a relocating boot loader to help select a safe load address for the kernel.h]hXfThis field indicates the amount of linear contiguous memory starting at the kernel runtime start address that the kernel needs before it is capable of examining its memory map. This is not the same thing as the total amount of memory the kernel needs to boot, but it can be used by a relocating boot loader to help select a safe load address for the kernel.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMzhjJubh)}(hKThe kernel runtime start address is determined by the following algorithm::h]hJThe kernel runtime start address is determined by the following algorithm:}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjJubj)}(hif (relocatable_kernel) { if (load_address < pref_address) load_address = pref_address; runtime_start = align_up(load_address, kernel_alignment); } else { runtime_start = pref_address; }h]hif (relocatable_kernel) { if (load_address < pref_address) load_address = pref_address; runtime_start = align_up(load_address, kernel_alignment); } else { runtime_start = pref_address; }}hjJsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjJubeh}(h]h ]h"]h$]h&]uh1jhhhMzhjIhhubh)}(hZHence the necessary memory window location and size can be estimated by a boot loader as::h]hYHence the necessary memory window location and size can be estimated by a boot loader as:}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjIhhubj)}(hDmemory_window_start = runtime_start; memory_window_size = init_size;h]hDmemory_window_start = runtime_start; memory_window_size = init_size;}hjJsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjKubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjKubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj#KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj Kubah}(h]h ]h"]h$]h&]uh1jhjKubj)}(hhh]h)}(hhandover_offseth]hhandover_offset}(hj:KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj7Kubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1j hjKubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjZKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjWKubah}(h]h ]h"]h$]h&]uh1jhjTKubj)}(hhh]h)}(hreadh]hread}(hjqKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjnKubah}(h]h ]h"]h$]h&]uh1jhjTKubeh}(h]h ]h"]h$]h&]uh1j hjKubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubj)}(hhh]h)}(h0x264/4h]h0x264/4}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1j hjKubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]colsKuh1hhjKubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hThis field is the offset from the beginning of the kernel image to the EFI handover protocol entry point. Boot loaders using the EFI handover protocol to boot the kernel should jump to this offset. See EFI HANDOVER PROTOCOL below for more details. h](h)}(hThis field is the offset from the beginning of the kernel image to the EFI handover protocol entry point. Boot loaders using the EFI handover protocol to boot the kernel should jump to this offset.h]hThis field is the offset from the beginning of the kernel image to the EFI handover protocol entry point. Boot loaders using the EFI handover protocol to boot the kernel should jump to this offset.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjKubh)}(h1See EFI HANDOVER PROTOCOL below for more details.h]h1See EFI HANDOVER PROTOCOL below for more details.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjKubeh}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjKubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjKubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(hhh]h)}(hkernel_info_offseth]hkernel_info_offset}(hj5LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2Lubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1j hjLubj )}(hhh](j)}(hhh]h)}(hType:h]hType:}(hjULhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjRLubah}(h]h ]h"]h$]h&]uh1jhjOLubj)}(hhh]h)}(hreadh]hread}(hjlLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjiLubah}(h]h ]h"]h$]h&]uh1jhjOLubeh}(h]h ]h"]h$]h&]uh1j hjLubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(hhh]h)}(h0x268/4h]h0x268/4}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1j hjLubj )}(hhh](j)}(hhh]h)}(h Protocol:h]h Protocol:}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(hhh]h)}(h2.15+h]h2.15+}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1j hjLubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]colsKuh1hhjKubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhNubj)}(hThis field is the offset from the beginning of the kernel image to the kernel_info. The kernel_info structure is embedded in the Linux image in the uncompressed protected mode region. h]h)}(hThis field is the offset from the beginning of the kernel image to the kernel_info. The kernel_info structure is embedded in the Linux image in the uncompressed protected mode region.h]hThis field is the offset from the beginning of the kernel image to the kernel_info. The kernel_info structure is embedded in the Linux image in the uncompressed protected mode region.}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjMubah}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubeh}(h]details-of-header-fieldsah ]h"]details of header fieldsah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hThe kernel_infoh]hThe kernel_info}(hj*MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'MhhhhhMubh)}(hRThe relationships between the headers are analogous to the various data sections::h]hQThe relationships between the headers are analogous to the various data sections:}(hj8MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Mhhubj)}(h2setup_header = .data boot_params/setup_data = .bssh]h2setup_header = .data boot_params/setup_data = .bss}hjFMsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj'Mhhubh)}(h3What is missing from the above list? That's right::h]h4What is missing from the above list? That’s right:}(hjTMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Mhhubj)}(hkernel_info = .rodatah]hkernel_info = .rodata}hjbMsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj'Mhhubh)}(hXWe have been (ab)using .data for things that could go into .rodata or .bss for a long time, for lack of alternatives and -- especially early on -- inertia. Also, the BIOS stub is responsible for creating boot_params, so it isn't available to a BIOS-based loader (setup_data is, though).h]hX We have been (ab)using .data for things that could go into .rodata or .bss for a long time, for lack of alternatives and -- especially early on -- inertia. Also, the BIOS stub is responsible for creating boot_params, so it isn’t available to a BIOS-based loader (setup_data is, though).}(hjpMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Mhhubh)}(hXsetup_header is permanently limited to 144 bytes due to the reach of the 2-byte jump field, which doubles as a length field for the structure, combined with the size of the "hole" in struct boot_params that a protected-mode loader or the BIOS stub has to copy it into. It is currently 119 bytes long, which leaves us with 25 very precious bytes. This isn't something that can be fixed without revising the boot protocol entirely, breaking backwards compatibility.h]hXsetup_header is permanently limited to 144 bytes due to the reach of the 2-byte jump field, which doubles as a length field for the structure, combined with the size of the “hole” in struct boot_params that a protected-mode loader or the BIOS stub has to copy it into. It is currently 119 bytes long, which leaves us with 25 very precious bytes. This isn’t something that can be fixed without revising the boot protocol entirely, breaking backwards compatibility.}(hj~MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Mhhubh)}(hboot_params proper is limited to 4096 bytes, but can be arbitrarily extended by adding setup_data entries. It cannot be used to communicate properties of the kernel image, because it is .bss and has no image-provided content.h]hboot_params proper is limited to 4096 bytes, but can be arbitrarily extended by adding setup_data entries. It cannot be used to communicate properties of the kernel image, because it is .bss and has no image-provided content.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Mhhubh)}(hXTkernel_info solves this by providing an extensible place for information about the kernel image. It is readonly, because the kernel cannot rely on a bootloader copying its contents anywhere, but that is OK; if it becomes necessary it can still contain data items that an enabled bootloader would be expected to copy into a setup_data chunk.h]hXTkernel_info solves this by providing an extensible place for information about the kernel image. It is readonly, because the kernel cannot rely on a bootloader copying its contents anywhere, but that is OK; if it becomes necessary it can still contain data items that an enabled bootloader would be expected to copy into a setup_data chunk.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Mhhubh)}(hXAll kernel_info data should be part of this structure. Fixed size data have to be put before kernel_info_var_len_data label. Variable size data have to be put after kernel_info_var_len_data label. Each chunk of variable size data has to be prefixed with header/magic and its size, e.g.::h]hXAll kernel_info data should be part of this structure. Fixed size data have to be put before kernel_info_var_len_data label. Variable size data have to be put after kernel_info_var_len_data label. Each chunk of variable size data has to be prefixed with header/magic and its size, e.g.:}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Mhhubj)}(hX kernel_info: .ascii "LToP" /* Header, Linux top (structure). */ .long kernel_info_var_len_data - kernel_info .long kernel_info_end - kernel_info .long 0x01234567 /* Some fixed size data for the bootloaders. */ kernel_info_var_len_data: example_struct: /* Some variable size data for the bootloaders. */ .ascii "0123" /* Header/Magic. */ .long example_struct_end - example_struct .ascii "Struct" .long 0x89012345 example_struct_end: example_strings: /* Some variable size data for the bootloaders. */ .ascii "ABCD" /* Header/Magic. */ .long example_strings_end - example_strings .asciz "String_0" .asciz "String_1" example_strings_end: kernel_info_end:h]hX kernel_info: .ascii "LToP" /* Header, Linux top (structure). */ .long kernel_info_var_len_data - kernel_info .long kernel_info_end - kernel_info .long 0x01234567 /* Some fixed size data for the bootloaders. */ kernel_info_var_len_data: example_struct: /* Some variable size data for the bootloaders. */ .ascii "0123" /* Header/Magic. */ .long example_struct_end - example_struct .ascii "Struct" .long 0x89012345 example_struct_end: example_strings: /* Some variable size data for the bootloaders. */ .ascii "ABCD" /* Header/Magic. */ .long example_strings_end - example_strings .asciz "String_0" .asciz "String_1" example_strings_end: kernel_info_end:}hjMsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj'Mhhubh)}(h0This way the kernel_info is self-contained blob.h]h0This way the kernel_info is self-contained blob.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Mhhubj)}(hEach variable size data header/magic can be any 4-character string, without \0 at the end of the string, which does not collide with existing variable length data headers/magics.h]h)}(hEach variable size data header/magic can be any 4-character string, without \0 at the end of the string, which does not collide with existing variable length data headers/magics.h]hEach variable size data header/magic can be any 4-character string, without 0 at the end of the string, which does not collide with existing variable length data headers/magics.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjMubah}(h]h ]h"]h$]h&]uh1jhj'MhhhhhNubeh}(h]the-kernel-infoah ]h"]the kernel_infoah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h!Details of the kernel_info Fieldsh]h!Details of the kernel_info Fields}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhhhhhMubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjNubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjNubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hj&NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj#Nubah}(h]h ]h"]h$]h&]uh1jhj Nubj)}(hhh]h)}(hheaderh]hheader}(hj=NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:Nubah}(h]h ]h"]h$]h&]uh1jhj Nubeh}(h]h ]h"]h$]h&]uh1j hjNubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hj]NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjZNubah}(h]h ]h"]h$]h&]uh1jhjWNubj)}(hhh]h)}(h0x0000/4h]h0x0000/4}(hjtNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjqNubah}(h]h ]h"]h$]h&]uh1jhjWNubeh}(h]h ]h"]h$]h&]uh1j hjNubeh}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]colsKuh1hhjNubah}(h]h ]h"]h$]h&]uh1hhjMhhhhhNubj)}(h/Contains the magic number "LToP" (0x506f544c). h]h)}(h.Contains the magic number "LToP" (0x506f544c).h]h2Contains the magic number “LToP” (0x506f544c).}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjNubah}(h]h ]h"]h$]h&]uh1jhhhMhjMhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjNubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjNubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubj)}(hhh]h)}(hsizeh]hsize}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1j hjNubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjOubah}(h]h ]h"]h$]h&]uh1jhj Oubj)}(hhh]h)}(h0x0004/4h]h0x0004/4}(hj*OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj'Oubah}(h]h ]h"]h$]h&]uh1jhj Oubeh}(h]h ]h"]h$]h&]uh1j hjNubeh}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]colsKuh1hhjNubah}(h]h ]h"]h$]h&]uh1hhjMhhhhhNubj)}(hX(This field contains the size of the kernel_info including kernel_info.header. It does not count kernel_info.kernel_info_var_len_data size. This field should be used by the bootloaders to detect supported fixed size fields in the kernel_info and beginning of kernel_info.kernel_info_var_len_data. h]h)}(hX'This field contains the size of the kernel_info including kernel_info.header. It does not count kernel_info.kernel_info_var_len_data size. This field should be used by the bootloaders to detect supported fixed size fields in the kernel_info and beginning of kernel_info.kernel_info_var_len_data.h]hX'This field contains the size of the kernel_info including kernel_info.header. It does not count kernel_info.kernel_info_var_len_data size. This field should be used by the bootloaders to detect supported fixed size fields in the kernel_info and beginning of kernel_info.kernel_info_var_len_data.}(hj[OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjWOubah}(h]h ]h"]h$]h&]uh1jhhhMhjMhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjrOubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjrOubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubj)}(hhh]h)}(h size_totalh]h size_total}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1j hjOubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubj)}(hhh]h)}(h0x0008/4h]h0x0008/4}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1j hjOubeh}(h]h ]h"]h$]h&]uh1jhjrOubeh}(h]h ]h"]h$]h&]colsKuh1hhjoOubah}(h]h ]h"]h$]h&]uh1hhjMhhhhhNubj)}(hwThis field contains the size of the kernel_info including kernel_info.header and kernel_info.kernel_info_var_len_data. h]h)}(hvThis field contains the size of the kernel_info including kernel_info.header and kernel_info.kernel_info_var_len_data.h]hvThis field contains the size of the kernel_info including kernel_info.header and kernel_info.kernel_info_var_len_data.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj Pubah}(h]h ]h"]h$]h&]uh1jhhhMhjMhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj(Pubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj(Pubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h Field name:h]h Field name:}(hjHPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjEPubah}(h]h ]h"]h$]h&]uh1jhjBPubj)}(hhh]h)}(hsetup_type_maxh]hsetup_type_max}(hj_PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj\Pubah}(h]h ]h"]h$]h&]uh1jhjBPubeh}(h]h ]h"]h$]h&]uh1j hj?Pubj )}(hhh](j)}(hhh]h)}(h Offset/size:h]h Offset/size:}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj|Pubah}(h]h ]h"]h$]h&]uh1jhjyPubj)}(hhh]h)}(h0x000c/4h]h0x000c/4}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjPubah}(h]h ]h"]h$]h&]uh1jhjyPubeh}(h]h ]h"]h$]h&]uh1j hj?Pubeh}(h]h ]h"]h$]h&]uh1jhj(Pubeh}(h]h ]h"]h$]h&]colsKuh1hhj%Pubah}(h]h ]h"]h$]h&]uh1hhjMhhhhhNubj)}(hUThis field contains maximal allowed type for setup_data and setup_indirect structs. h]h)}(hSThis field contains maximal allowed type for setup_data and setup_indirect structs.h]hSThis field contains maximal allowed type for setup_data and setup_indirect structs.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjPubah}(h]h ]h"]h$]h&]uh1jhhhMhjMhhubeh}(h]!details-of-the-kernel-info-fieldsah ]h"]!details of the kernel_info fieldsah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hThe Kernel Command Lineh]hThe Kernel Command Line}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhhhhhMubh)}(hThe kernel command line has become an important way for the boot loader to communicate with the kernel. Some of its options are also relevant to the boot loader itself, see "special command line options" below.h]hThe kernel command line has become an important way for the boot loader to communicate with the kernel. Some of its options are also relevant to the boot loader itself, see “special command line options” below.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjPhhubh)}(hThe kernel command line is a null-terminated string. The maximum length can be retrieved from the field cmdline_size. Before protocol version 2.06, the maximum was 255 characters. A string that is too long will be automatically truncated by the kernel.h]hThe kernel command line is a null-terminated string. The maximum length can be retrieved from the field cmdline_size. Before protocol version 2.06, the maximum was 255 characters. A string that is too long will be automatically truncated by the kernel.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjPhhubh)}(hIf the boot protocol version is 2.02 or later, the address of the kernel command line is given by the header field cmd_line_ptr (see above.) This address can be anywhere between the end of the setup heap and 0xA0000.h]hIf the boot protocol version is 2.02 or later, the address of the kernel command line is given by the header field cmd_line_ptr (see above.) This address can be anywhere between the end of the setup heap and 0xA0000.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjPhhubh)}(hqIf the protocol version is *not* 2.02 or higher, the kernel command line is entered using the following protocol:h](hIf the protocol version is }(hjQhhhNhNubhemphasis)}(h*not*h]hnot}(hj(QhhhNhNubah}(h]h ]h"]h$]h&]uh1j&QhjQubhQ 2.02 or higher, the kernel command line is entered using the following protocol:}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM#hjPhhubj)}(hXc- At offset 0x0020 (word), "cmd_line_magic", enter the magic number 0xA33F. - At offset 0x0022 (word), "cmd_line_offset", enter the offset of the kernel command line (relative to the start of the real-mode kernel). - The kernel command line *must* be within the memory region covered by setup_move_size, so you may need to adjust this field. h]jR,)}(hhh](j)}(hJAt offset 0x0020 (word), "cmd_line_magic", enter the magic number 0xA33F. h]h)}(hIAt offset 0x0020 (word), "cmd_line_magic", enter the magic number 0xA33F.h]hMAt offset 0x0020 (word), “cmd_line_magic”, enter the magic number 0xA33F.}(hjKQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hjGQubah}(h]h ]h"]h$]h&]uh1jhjDQubj)}(hAt offset 0x0022 (word), "cmd_line_offset", enter the offset of the kernel command line (relative to the start of the real-mode kernel). h]h)}(hAt offset 0x0022 (word), "cmd_line_offset", enter the offset of the kernel command line (relative to the start of the real-mode kernel).h]hAt offset 0x0022 (word), “cmd_line_offset”, enter the offset of the kernel command line (relative to the start of the real-mode kernel).}(hjcQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM)hj_Qubah}(h]h ]h"]h$]h&]uh1jhjDQubj)}(h~The kernel command line *must* be within the memory region covered by setup_move_size, so you may need to adjust this field. h]h)}(h|The kernel command line *must* be within the memory region covered by setup_move_size, so you may need to adjust this field.h](hThe kernel command line }(hj{QhhhNhNubj'Q)}(h*must*h]hmust}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j&Qhj{Qubh^ be within the memory region covered by setup_move_size, so you may need to adjust this field.}(hj{QhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM-hjwQubah}(h]h ]h"]h$]h&]uh1jhjDQubeh}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhM&hj@Qubah}(h]h ]h"]h$]h&]uh1jhhhM&hjPhhubeh}(h]the-kernel-command-lineah ]h"]the kernel command lineah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h#Memory Layout of The Real-Mode Codeh]h#Memory Layout of The Real-Mode Code}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhhhhhM3ubh)}(hThe real-mode code requires a stack/heap to be set up, as well as memory allocated for the kernel command line. This needs to be done in the real-mode accessible memory in bottom megabyte.h]hThe real-mode code requires a stack/heap to be set up, as well as memory allocated for the kernel command line. This needs to be done in the real-mode accessible memory in bottom megabyte.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM5hjQhhubh)}(hIt should be noted that modern machines often have a sizable Extended BIOS Data Area (EBDA). As a result, it is advisable to use as little of the low megabyte as possible.h]hIt should be noted that modern machines often have a sizable Extended BIOS Data Area (EBDA). As a result, it is advisable to use as little of the low megabyte as possible.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM9hjQhhubh)}(h[Unfortunately, under the following circumstances the 0x90000 memory segment has to be used:h]h[Unfortunately, under the following circumstances the 0x90000 memory segment has to be used:}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM=hjQhhubj)}(hq- When loading a zImage kernel ((loadflags & 0x01) == 0). - When loading a 2.01 or earlier boot protocol kernel. h]jR,)}(hhh](j)}(h7When loading a zImage kernel ((loadflags & 0x01) == 0).h]h)}(hjQh]h7When loading a zImage kernel ((loadflags & 0x01) == 0).}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM@hjQubah}(h]h ]h"]h$]h&]uh1jhjQubj)}(h5When loading a 2.01 or earlier boot protocol kernel. h]h)}(h4When loading a 2.01 or earlier boot protocol kernel.h]h4When loading a 2.01 or earlier boot protocol kernel.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhjRubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]j,j,uh1jQ,hhhM@hjQubah}(h]h ]h"]h$]h&]uh1jhhhM@hjQhhubj)}(hFor the 2.00 and 2.01 boot protocols, the real-mode code can be loaded at another address, but it is internally relocated to 0x90000. For the "old" protocol, the real-mode code must be loaded at 0x90000.h]h)}(hFor the 2.00 and 2.01 boot protocols, the real-mode code can be loaded at another address, but it is internally relocated to 0x90000. For the "old" protocol, the real-mode code must be loaded at 0x90000.h]hFor the 2.00 and 2.01 boot protocols, the real-mode code can be loaded at another address, but it is internally relocated to 0x90000. For the “old” protocol, the real-mode code must be loaded at 0x90000.}(hj6RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhj2Rubah}(h]h ]h"]h$]h&]uh1jhjQhhhhhNubh)}(h:When loading at 0x90000, avoid using memory above 0x9a000.h]h:When loading at 0x90000, avoid using memory above 0x9a000.}(hjJRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhjQhhubh)}(hFor boot protocol 2.02 or higher, the command line does not have to be located in the same 64K segment as the real-mode setup code; it is thus permitted to give the stack/heap the full 64K segment and locate the command line above it.h]hFor boot protocol 2.02 or higher, the command line does not have to be located in the same 64K segment as the real-mode setup code; it is thus permitted to give the stack/heap the full 64K segment and locate the command line above it.}(hjXRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMKhjQhhubh)}(hpThe kernel command line should not be located below the real-mode code, nor should it be located in high memory.h]hpThe kernel command line should not be located below the real-mode code, nor should it be located in high memory.}(hjfRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMPhjQhhubeh}(h]#memory-layout-of-the-real-mode-codeah ]h"]#memory layout of the real-mode codeah$]h&]uh1hhhhhhhhM3ubh)}(hhh](h)}(hSample Boot Configurationh]hSample Boot Configuration}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|RhhhhhMUubh)}(hPAs a sample configuration, assume the following layout of the real mode segment.h]hPAs a sample configuration, assume the following layout of the real mode segment.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMWhj|Rhhubj)}(hXWhen loading below 0x90000, use the entire segment: ============= =================== 0x0000-0x7fff Real mode kernel 0x8000-0xdfff Stack and heap 0xe000-0xffff Kernel command line ============= =================== When loading at 0x90000 OR the protocol version is 2.01 or earlier: ============= =================== 0x0000-0x7fff Real mode kernel 0x8000-0x97ff Stack and heap 0x9800-0x9fff Kernel command line ============= =================== h](h)}(h3When loading below 0x90000, use the entire segment:h]h3When loading below 0x90000, use the entire segment:}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhjRubj)}(h============= =================== 0x0000-0x7fff Real mode kernel 0x8000-0xdfff Stack and heap 0xe000-0xffff Kernel command line ============= =================== h]h)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjRubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjRubj)}(hhh](j )}(hhh](j)}(hhh]h)}(h 0x0000-0x7fffh]h 0x0000-0x7fff}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM]hjRubah}(h]h ]h"]h$]h&]uh1jhjRubj)}(hhh]h)}(hReal mode kernelh]hReal mode kernel}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM]hjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1j hjRubj )}(hhh](j)}(hhh]h)}(h 0x8000-0xdfffh]h 0x8000-0xdfff}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM^hjSubah}(h]h ]h"]h$]h&]uh1jhjSubj)}(hhh]h)}(hStack and heaph]hStack and heap}(hj"ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM^hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1j hjRubj )}(hhh](j)}(hhh]h)}(h 0xe000-0xffffh]h 0xe000-0xffff}(hjBShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM_hj?Subah}(h]h ]h"]h$]h&]uh1jhj= 0x0200) { type_of_loader = ; if (loading_initrd) { ramdisk_image = ; ramdisk_size = ; } if (protocol >= 0x0202 && loadflags & 0x01) heap_end = 0xe000; else heap_end = 0x9800; if (protocol >= 0x0201) { heap_end_ptr = heap_end - 0x200; loadflags |= 0x80; /* CAN_USE_HEAP */ } if (protocol >= 0x0202) { cmd_line_ptr = base_ptr + heap_end; strcpy(cmd_line_ptr, cmdline); } else { cmd_line_magic = 0xA33F; cmd_line_offset = heap_end; setup_move_size = heap_end + strlen(cmdline) + 1; strcpy(base_ptr + cmd_line_offset, cmdline); } } else { /* Very old kernel */ heap_end = 0x9800; cmd_line_magic = 0xA33F; cmd_line_offset = heap_end; /* A very old kernel MUST have its real-mode code loaded at 0x90000 */ if (base_ptr != 0x90000) { /* Copy the real-mode kernel */ memcpy(0x90000, base_ptr, (setup_sects + 1) * 512); base_ptr = 0x90000; /* Relocated */ } strcpy(0x90000 + cmd_line_offset, cmdline); /* It is recommended to clear memory up to the 32K mark */ memset(0x90000 + (setup_sects + 1) * 512, 0, (64 - (setup_sects + 1)) * 512); }h]hX#unsigned long base_ptr; /* base address for real-mode segment */ if (setup_sects == 0) setup_sects = 4; if (protocol >= 0x0200) { type_of_loader = ; if (loading_initrd) { ramdisk_image = ; ramdisk_size = ; } if (protocol >= 0x0202 && loadflags & 0x01) heap_end = 0xe000; else heap_end = 0x9800; if (protocol >= 0x0201) { heap_end_ptr = heap_end - 0x200; loadflags |= 0x80; /* CAN_USE_HEAP */ } if (protocol >= 0x0202) { cmd_line_ptr = base_ptr + heap_end; strcpy(cmd_line_ptr, cmdline); } else { cmd_line_magic = 0xA33F; cmd_line_offset = heap_end; setup_move_size = heap_end + strlen(cmdline) + 1; strcpy(base_ptr + cmd_line_offset, cmdline); } } else { /* Very old kernel */ heap_end = 0x9800; cmd_line_magic = 0xA33F; cmd_line_offset = heap_end; /* A very old kernel MUST have its real-mode code loaded at 0x90000 */ if (base_ptr != 0x90000) { /* Copy the real-mode kernel */ memcpy(0x90000, base_ptr, (setup_sects + 1) * 512); base_ptr = 0x90000; /* Relocated */ } strcpy(0x90000 + cmd_line_offset, cmdline); /* It is recommended to clear memory up to the 32K mark */ memset(0x90000 + (setup_sects + 1) * 512, 0, (64 - (setup_sects + 1)) * 512); }}hjTsbah}(h]h ]h"]h$]h&]hhuh1jhhhMlhj|Rhhubeh}(h]sample-boot-configurationah ]h"]sample boot configurationah$]h&]uh1hhhhhhhhMUubh)}(hhh](h)}(hLoading The Rest of The Kernelh]hLoading The Rest of The Kernel}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThhhhhMubh)}(hThe 32-bit (non-real-mode) kernel starts at offset (setup_sects + 1) * 512 in the kernel file (again, if setup_sects == 0 the real value is 4.) It should be loaded at address 0x10000 for Image/zImage kernels and 0x100000 for bzImage kernels.h]hThe 32-bit (non-real-mode) kernel starts at offset (setup_sects + 1) * 512 in the kernel file (again, if setup_sects == 0 the real value is 4.) It should be loaded at address 0x10000 for Image/zImage kernels and 0x100000 for bzImage kernels.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjThhubh)}(hsThe kernel is a bzImage kernel if the protocol >= 2.00 and the 0x01 bit (LOAD_HIGH) in the loadflags field is set::h]hrThe kernel is a bzImage kernel if the protocol >= 2.00 and the 0x01 bit (LOAD_HIGH) in the loadflags field is set:}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjThhubj)}(hhis_bzImage = (protocol >= 0x0200) && (loadflags & 0x01); load_address = is_bzImage ? 0x100000 : 0x10000;h]hhis_bzImage = (protocol >= 0x0200) && (loadflags & 0x01); load_address = is_bzImage ? 0x100000 : 0x10000;}hjTsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjThhubj)}(hImage/zImage kernels can be up to 512K in size, and thus use the entire 0x10000-0x90000 range of memory. This means it is pretty much a requirement for these kernels to load the real-mode part at 0x90000. bzImage kernels allow much more flexibility.h]h)}(hImage/zImage kernels can be up to 512K in size, and thus use the entire 0x10000-0x90000 range of memory. This means it is pretty much a requirement for these kernels to load the real-mode part at 0x90000. bzImage kernels allow much more flexibility.h]hImage/zImage kernels can be up to 512K in size, and thus use the entire 0x10000-0x90000 range of memory. This means it is pretty much a requirement for these kernels to load the real-mode part at 0x90000. bzImage kernels allow much more flexibility.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjTubah}(h]h ]h"]h$]h&]uh1jhjThhhhhNubeh}(h]loading-the-rest-of-the-kernelah ]h"]loading the rest of the kernelah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hSpecial Command Line Optionsh]hSpecial Command Line Options}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThhhhhMubh)}(hXIf the command line provided by the boot loader is entered by the user, the user may expect the following command line options to work. They should normally not be deleted from the kernel command line even though not all of them are actually meaningful to the kernel. Boot loader authors who need additional command line options for the boot loader itself should get them registered in Documentation/admin-guide/kernel-parameters.rst to make sure they will not conflict with actual kernel options now or in the future.h]hXIf the command line provided by the boot loader is entered by the user, the user may expect the following command line options to work. They should normally not be deleted from the kernel command line even though not all of them are actually meaningful to the kernel. Boot loader authors who need additional command line options for the boot loader itself should get them registered in Documentation/admin-guide/kernel-parameters.rst to make sure they will not conflict with actual kernel options now or in the future.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjThhubj)}(hXvga= here is either an integer (in C notation, either decimal, octal, or hexadecimal) or one of the strings "normal" (meaning 0xFFFF), "ext" (meaning 0xFFFE) or "ask" (meaning 0xFFFD). This value should be entered into the vid_mode field, as it is used by the kernel before the command line is parsed. mem= is an integer in C notation optionally followed by (case insensitive) K, M, G, T, P or E (meaning << 10, << 20, << 30, << 40, << 50 or << 60). This specifies the end of memory to the kernel. This affects the possible placement of an initrd, since an initrd should be placed near end of memory. Note that this is an option to *both* the kernel and the bootloader! initrd= An initrd should be loaded. The meaning of is obviously bootloader-dependent, and some boot loaders (e.g. LILO) do not have such a command. h]hdefinition_list)}(hhh](hdefinition_list_item)}(hX<vga= here is either an integer (in C notation, either decimal, octal, or hexadecimal) or one of the strings "normal" (meaning 0xFFFF), "ext" (meaning 0xFFFE) or "ask" (meaning 0xFFFD). This value should be entered into the vid_mode field, as it is used by the kernel before the command line is parsed. h](hterm)}(h vga=h]h vga=}(hj.UhhhNhNubah}(h]h ]h"]h$]h&]uh1j,UhhhMhj(Uubh definition)}(hhh]h)}(hX0 here is either an integer (in C notation, either decimal, octal, or hexadecimal) or one of the strings "normal" (meaning 0xFFFF), "ext" (meaning 0xFFFE) or "ask" (meaning 0xFFFD). This value should be entered into the vid_mode field, as it is used by the kernel before the command line is parsed.h]hX< here is either an integer (in C notation, either decimal, octal, or hexadecimal) or one of the strings “normal” (meaning 0xFFFF), “ext” (meaning 0xFFFE) or “ask” (meaning 0xFFFD). This value should be entered into the vid_mode field, as it is used by the kernel before the command line is parsed.}(hjAUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj>Uubah}(h]h ]h"]h$]h&]uh1j is an integer in C notation optionally followed by (case insensitive) K, M, G, T, P or E (meaning << 10, << 20, << 30, << 40, << 50 or << 60). This specifies the end of memory to the kernel. This affects the possible placement of an initrd, since an initrd should be placed near end of memory. Note that this is an option to *both* the kernel and the bootloader! h](j-U)}(h mem=h]h mem=}(hj_UhhhNhNubah}(h]h ]h"]h$]h&]uh1j,UhhhMhj[Uubj=U)}(hhh]h)}(hXs is an integer in C notation optionally followed by (case insensitive) K, M, G, T, P or E (meaning << 10, << 20, << 30, << 40, << 50 or << 60). This specifies the end of memory to the kernel. This affects the possible placement of an initrd, since an initrd should be placed near end of memory. Note that this is an option to *both* the kernel and the bootloader!h](hXN is an integer in C notation optionally followed by (case insensitive) K, M, G, T, P or E (meaning << 10, << 20, << 30, << 40, << 50 or << 60). This specifies the end of memory to the kernel. This affects the possible placement of an initrd, since an initrd should be placed near end of memory. Note that this is an option to }(hjpUhhhNhNubj'Q)}(h*both*h]hboth}(hjxUhhhNhNubah}(h]h ]h"]h$]h&]uh1j&QhjpUubh the kernel and the bootloader!}(hjpUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjmUubah}(h]h ]h"]h$]h&]uh1j An initrd should be loaded. The meaning of is obviously bootloader-dependent, and some boot loaders (e.g. LILO) do not have such a command. h](j-U)}(h initrd=h]h initrd=}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j,UhhhMhjUubj=U)}(hhh]h)}(hAn initrd should be loaded. The meaning of is obviously bootloader-dependent, and some boot loaders (e.g. LILO) do not have such a command.h]hAn initrd should be loaded. The meaning of is obviously bootloader-dependent, and some boot loaders (e.g. LILO) do not have such a command.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjUubah}(h]h ]h"]h$]h&]uh1j The boot image which was loaded. Again, the meaning of is obviously bootloader-dependent. auto The kernel was booted without explicit user intervention. h]j"U)}(hhh](j'U)}(htBOOT_IMAGE= The boot image which was loaded. Again, the meaning of is obviously bootloader-dependent. h](j-U)}(hBOOT_IMAGE=h]hBOOT_IMAGE=}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j,UhhhMhjUubj=U)}(hhh]h)}(haThe boot image which was loaded. Again, the meaning of is obviously bootloader-dependent.h]haThe boot image which was loaded. Again, the meaning of is obviously bootloader-dependent.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjUubah}(h]h ]h"]h$]h&]uh1j> 4; cli(); /* Enter with interrupts disabled! */ /* Set up the real-mode kernel stack */ _SS = seg; _SP = heap_end; _DS = _ES = _FS = _GS = seg; jmp_far(seg + 0x20, 0); /* Run the kernel */h]hXt/* * Note: in the case of the "old" kernel protocol, base_ptr must * be == 0x90000 at this point; see the previous sample code. */ seg = base_ptr >> 4; cli(); /* Enter with interrupts disabled! */ /* Set up the real-mode kernel stack */ _SS = seg; _SP = heap_end; _DS = _ES = _FS = _GS = seg; jmp_far(seg + 0x20, 0); /* Run the kernel */}hjVsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj~Vhhubh)}(hX"If your boot sector accesses a floppy drive, it is recommended to switch off the floppy motor before running the kernel, since the kernel boot leaves interrupts off and thus the motor will not be switched off, especially if the loaded kernel has the floppy driver as a demand-loaded module!h]hX"If your boot sector accesses a floppy drive, it is recommended to switch off the floppy motor before running the kernel, since the kernel boot leaves interrupts off and thus the motor will not be switched off, especially if the loaded kernel has the floppy driver as a demand-loaded module!}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj~Vhhubeh}(h]running-the-kernelah ]h"]running the kernelah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hAdvanced Boot Loader Hooksh]hAdvanced Boot Loader Hooks}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhhhhhMubh)}(hXqIf the boot loader runs in a particularly hostile environment (such as LOADLIN, which runs under DOS) it may be impossible to follow the standard memory location requirements. Such a boot loader may use the following hooks that, if set, are invoked by the kernel at the appropriate time. The use of these hooks should probably be considered an absolutely last resort!h]hXqIf the boot loader runs in a particularly hostile environment (such as LOADLIN, which runs under DOS) it may be impossible to follow the standard memory location requirements. Such a boot loader may use the following hooks that, if set, are invoked by the kernel at the appropriate time. The use of these hooks should probably be considered an absolutely last resort!}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjVhhubh)}(h^IMPORTANT: All the hooks are required to preserve %esp, %ebp, %esi and %edi across invocation.h]h^IMPORTANT: All the hooks are required to preserve %esp, %ebp, %esi and %edi across invocation.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjVhhubj)}(hXrealmode_swtch: A 16-bit real mode far subroutine invoked immediately before entering protected mode. The default routine disables NMI, so your routine should probably do so, too. code32_start: A 32-bit flat-mode routine *jumped* to immediately after the transition to protected mode, but before the kernel is uncompressed. No segments, except CS, are guaranteed to be set up (current kernels do, but older ones do not); you should set them up to BOOT_DS (0x18) yourself. After completing your hook, you should jump to the address that was in this field before your boot loader overwrote it (relocated, if appropriate.) h]j"U)}(hhh](j'U)}(hrealmode_swtch: A 16-bit real mode far subroutine invoked immediately before entering protected mode. The default routine disables NMI, so your routine should probably do so, too. h](j-U)}(hrealmode_swtch:h]hrealmode_swtch:}(hj'WhhhNhNubah}(h]h ]h"]h$]h&]uh1j,UhhhMhj#Wubj=U)}(hhh]h)}(hA 16-bit real mode far subroutine invoked immediately before entering protected mode. The default routine disables NMI, so your routine should probably do so, too.h]hA 16-bit real mode far subroutine invoked immediately before entering protected mode. The default routine disables NMI, so your routine should probably do so, too.}(hj8WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj5Wubah}(h]h ]h"]h$]h&]uh1jhjWhhubh)}(hAfter setting up the struct boot_params, the boot loader can load the 32/64-bit kernel in the same way as that of 16-bit boot protocol.h]hAfter setting up the struct boot_params, the boot loader can load the 32/64-bit kernel in the same way as that of 16-bit boot protocol.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMChjWhhubh)}(hIn 32-bit boot protocol, the kernel is started by jumping to the 32-bit kernel entry point, which is the start address of loaded 32/64-bit kernel.h]hIn 32-bit boot protocol, the kernel is started by jumping to the 32-bit kernel entry point, which is the start address of loaded 32/64-bit kernel.}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMFhjWhhubh)}(hXAt entry, the CPU must be in 32-bit protected mode with paging disabled; a GDT must be loaded with the descriptors for selectors __BOOT_CS(0x10) and __BOOT_DS(0x18); both descriptors must be 4G flat segment; __BOOT_CS must have execute/read permission, and __BOOT_DS must have read/write permission; CS must be __BOOT_CS and DS, ES, SS must be __BOOT_DS; interrupt must be disabled; %esi must hold the base address of the struct boot_params; %ebp, %edi and %ebx must be zero.h]hXAt entry, the CPU must be in 32-bit protected mode with paging disabled; a GDT must be loaded with the descriptors for selectors __BOOT_CS(0x10) and __BOOT_DS(0x18); both descriptors must be 4G flat segment; __BOOT_CS must have execute/read permission, and __BOOT_DS must have read/write permission; CS must be __BOOT_CS and DS, ES, SS must be __BOOT_DS; interrupt must be disabled; %esi must hold the base address of the struct boot_params; %ebp, %edi and %ebx must be zero.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMJhjWhhubeh}(h]bit-boot-protocolah ]h"]32-bit boot protocolah$]h&]uh1hhhhhhhhM-ubh)}(hhh](h)}(h64-bit Boot Protocolh]h64-bit Boot Protocol}(hj3XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0XhhhhhMSubh)}(hoFor machine with 64bit cpus and 64bit kernel, we could use 64bit bootloader and we need a 64-bit boot protocol.h]hoFor machine with 64bit cpus and 64bit kernel, we could use 64bit bootloader and we need a 64-bit boot protocol.}(hjAXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhj0Xhhubh)}(hXIn 64-bit boot protocol, the first step in loading a Linux kernel should be to setup the boot parameters (struct boot_params, traditionally known as "zero page"). The memory for struct boot_params could be allocated anywhere (even above 4G) and initialized to all zero. Then, the setup header at offset 0x01f1 of kernel image on should be loaded into struct boot_params and examined. The end of setup header can be calculated as follows::h]hXIn 64-bit boot protocol, the first step in loading a Linux kernel should be to setup the boot parameters (struct boot_params, traditionally known as “zero page”). The memory for struct boot_params could be allocated anywhere (even above 4G) and initialized to all zero. Then, the setup header at offset 0x01f1 of kernel image on should be loaded into struct boot_params and examined. The end of setup header can be calculated as follows:}(hjOXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhj0Xhhubj)}(h$0x0202 + byte value at offset 0x0201h]h$0x0202 + byte value at offset 0x0201}hj]Xsbah}(h]h ]h"]h$]h&]hhuh1jhhhM`hj0Xhhubh)}(hIn addition to read/modify/write the setup header of the struct boot_params as that of 16-bit boot protocol, the boot loader should also fill the additional fields of the struct boot_params as described in chapter Documentation/arch/x86/zero-page.rst.h]hIn addition to read/modify/write the setup header of the struct boot_params as that of 16-bit boot protocol, the boot loader should also fill the additional fields of the struct boot_params as described in chapter Documentation/arch/x86/zero-page.rst.}(hjkXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhj0Xhhubh)}(hAfter setting up the struct boot_params, the boot loader can load 64-bit kernel in the same way as that of 16-bit boot protocol, but kernel could be loaded above 4G.h]hAfter setting up the struct boot_params, the boot loader can load 64-bit kernel in the same way as that of 16-bit boot protocol, but kernel could be loaded above 4G.}(hjyXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMghj0Xhhubh)}(hIn 64-bit boot protocol, the kernel is started by jumping to the 64-bit kernel entry point, which is the start address of loaded 64-bit kernel plus 0x200.h]hIn 64-bit boot protocol, the kernel is started by jumping to the 64-bit kernel entry point, which is the start address of loaded 64-bit kernel plus 0x200.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhj0Xhhubh)}(hX1At entry, the CPU must be in 64-bit mode with paging enabled. The range with setup_header.init_size from start address of loaded kernel and zero page and command line buffer get ident mapping; a GDT must be loaded with the descriptors for selectors __BOOT_CS(0x10) and __BOOT_DS(0x18); both descriptors must be 4G flat segment; __BOOT_CS must have execute/read permission, and __BOOT_DS must have read/write permission; CS must be __BOOT_CS and DS, ES, SS must be __BOOT_DS; interrupt must be disabled; %rsi must hold the base address of the struct boot_params.h]hX1At entry, the CPU must be in 64-bit mode with paging enabled. The range with setup_header.init_size from start address of loaded kernel and zero page and command line buffer get ident mapping; a GDT must be loaded with the descriptors for selectors __BOOT_CS(0x10) and __BOOT_DS(0x18); both descriptors must be 4G flat segment; __BOOT_CS must have execute/read permission, and __BOOT_DS must have read/write permission; CS must be __BOOT_CS and DS, ES, SS must be __BOOT_DS; interrupt must be disabled; %rsi must hold the base address of the struct boot_params.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMohj0Xhhubeh}(h]id1ah ]h"]64-bit boot protocolah$]h&]uh1hhhhhhhhMSubh)}(hhh](h)}(h"EFI Handover Protocol (deprecated)h]h"EFI Handover Protocol (deprecated)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhhhhhMzubh)}(hXThis protocol allows boot loaders to defer initialisation to the EFI boot stub. The boot loader is required to load the kernel/initrd(s) from the boot media and jump to the EFI handover protocol entry point which is hdr->handover_offset bytes from the beginning of startup_{32,64}.h]hXThis protocol allows boot loaders to defer initialisation to the EFI boot stub. The boot loader is required to load the kernel/initrd(s) from the boot media and jump to the EFI handover protocol entry point which is hdr->handover_offset bytes from the beginning of startup_{32,64}.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM|hjXhhubh)}(hXTThe boot loader MUST respect the kernel's PE/COFF metadata when it comes to section alignment, the memory footprint of the executable image beyond the size of the file itself, and any other aspect of the PE/COFF header that may affect correct operation of the image as a PE/COFF binary in the execution context provided by the EFI firmware.h]hXVThe boot loader MUST respect the kernel’s PE/COFF metadata when it comes to section alignment, the memory footprint of the executable image beyond the size of the file itself, and any other aspect of the PE/COFF header that may affect correct operation of the image as a PE/COFF binary in the execution context provided by the EFI firmware.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjXhhubh)}(hEThe function prototype for the handover entry point looks like this::h]hDThe function prototype for the handover entry point looks like this:}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjXhhubj)}(hUvoid efi_stub_entry(void *handle, efi_system_table_t *table, struct boot_params *bp);h]hUvoid efi_stub_entry(void *handle, efi_system_table_t *table, struct boot_params *bp);}hjXsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjXhhubh)}(hX'handle' is the EFI image handle passed to the boot loader by the EFI firmware, 'table' is the EFI system table - these are the first two arguments of the "handoff state" as described in section 2.3 of the UEFI specification. 'bp' is the boot loader-allocated boot params.h]hX ‘handle’ is the EFI image handle passed to the boot loader by the EFI firmware, ‘table’ is the EFI system table - these are the first two arguments of the “handoff state” as described in section 2.3 of the UEFI specification. ‘bp’ is the boot loader-allocated boot params.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjXhhubh)}(hYubah}(h]h ]h"]h$]h&]uh1jhjXhhhhhNubh)}(hT[0] https://github.com/u-boot/u-boot/commit/ec80b4735a593961fe701cc3a5d717d4739b0fd0h](h[0] }(hjVYhhhNhNubjL*)}(hPhttps://github.com/u-boot/u-boot/commit/ec80b4735a593961fe701cc3a5d717d4739b0fd0h]hPhttps://github.com/u-boot/u-boot/commit/ec80b4735a593961fe701cc3a5d717d4739b0fd0}(hj^YhhhNhNubah}(h]h ]h"]h$]h&]refurij`Yuh1jK*hjVYubeh}(h]h ]h"]h$]h&]uh1hhhhMhjXhhubeh}(h] efi-handover-protocol-deprecatedah ]h"]"efi handover protocol (deprecated)ah$]h&]uh1hhhhhhhhMzubeh}(h]the-linux-x86-boot-protocolah ]h"]the linux/x86 boot protocolah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjYerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jYj}Yj^j[jFjCj$Mj!MjMjMjPjPjQjQjyRjvRjTjTjTjTj{VjxVjVjVjWjWj-Xj*XjXjXjxYjuYu nametypes}(jYj^jFj$MjMjPjQjyRjTjTj{VjVjWj-XjXjxYuh}(j}Yhj[jjCjaj!MjIjMj'MjPjMjQjPjvRjQjTj|RjTjTjxVjTjVj~VjWjVj*XjWjXj0XjuYjXu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jYKsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.