iPXE
Data Fields
bzimage_header Struct Reference

A bzImage header. More...

#include <bzimage.h>

Data Fields

uint8_t setup_sects
 The size of the setup in sectors.
uint16_t root_flags
 If set, the root is mounted readonly.
uint16_t syssize
 DO NOT USE - for bootsect.S use only.
uint16_t swap_dev
 DO NOT USE - obsolete.
uint16_t ram_size
 DO NOT USE - for bootsect.S use only.
uint16_t vid_mode
 Video mode control.
uint16_t root_dev
 Default root device number.
uint16_t boot_flag
 0xAA55 magic number
uint16_t jump
 Jump instruction.
uint32_t header
 Magic signature "HdrS".
uint16_t version
 Boot protocol version supported.
uint32_t realmode_swtch
 Boot loader hook (see below)
uint16_t start_sys
 The load-low segment (0x1000) (obsolete)
uint16_t kernel_version
 Pointer to kernel version string.
uint8_t type_of_loader
 Boot loader identifier.
uint8_t loadflags
 Boot protocol option flags.
uint16_t setup_move_size
 Move to high memory size (used with hooks)
uint32_t code32_start
 Boot loader hook (see below)
uint32_t ramdisk_image
 initrd load address (set by boot loader)
uint32_t ramdisk_size
 initrd size (set by boot loader)
uint32_t bootsect_kludge
 DO NOT USE - for bootsect.S use only.
uint16_t heap_end_ptr
 Free memory after setup end.
uint16_t pad1
 Unused.
uint32_t cmd_line_ptr
 32-bit pointer to the kernel command line
uint32_t initrd_addr_max
 Highest legal initrd address.
uint32_t kernel_alignment
 Physical addr alignment required for kernel.
uint8_t relocatable_kernel
 Whether kernel is relocatable or not.
uint8_t pad2 [3]
 Unused.
uint32_t cmdline_size
 Maximum size of the kernel command line.

Detailed Description

A bzImage header.

As documented in Documentation/i386/boot.txt

Definition at line 13 of file bzimage.h.


Field Documentation

The size of the setup in sectors.

If this field contains 0, assume it contains 4.

Definition at line 18 of file bzimage.h.

Referenced by bzimage_parse_header().

If set, the root is mounted readonly.

Definition at line 20 of file bzimage.h.

DO NOT USE - for bootsect.S use only.

Definition at line 22 of file bzimage.h.

Referenced by bzimage_parse_header().

DO NOT USE - obsolete.

Definition at line 24 of file bzimage.h.

DO NOT USE - for bootsect.S use only.

Definition at line 26 of file bzimage.h.

Video mode control.

Definition at line 28 of file bzimage.h.

Referenced by bzimage_parse_header(), and bzimage_update_header().

Default root device number.

Definition at line 30 of file bzimage.h.

0xAA55 magic number

Definition at line 32 of file bzimage.h.

Referenced by bzimage_parse_header().

Jump instruction.

Definition at line 34 of file bzimage.h.

Magic signature "HdrS".

Definition at line 36 of file bzimage.h.

Referenced by bzimage_parse_header().

Boot protocol version supported.

Definition at line 38 of file bzimage.h.

Referenced by bzimage_parse_header().

Boot loader hook (see below)

Definition at line 40 of file bzimage.h.

The load-low segment (0x1000) (obsolete)

Definition at line 42 of file bzimage.h.

Pointer to kernel version string.

Definition at line 44 of file bzimage.h.

Boot loader identifier.

Definition at line 46 of file bzimage.h.

Referenced by bzimage_update_header().

Boot protocol option flags.

Definition at line 48 of file bzimage.h.

Referenced by bzimage_parse_header(), and bzimage_update_header().

Move to high memory size (used with hooks)

Definition at line 50 of file bzimage.h.

Referenced by bzimage_update_header().

Boot loader hook (see below)

Definition at line 52 of file bzimage.h.

initrd load address (set by boot loader)

Definition at line 54 of file bzimage.h.

Referenced by bzimage_update_header().

initrd size (set by boot loader)

Definition at line 56 of file bzimage.h.

Referenced by bzimage_update_header().

DO NOT USE - for bootsect.S use only.

Definition at line 58 of file bzimage.h.

Free memory after setup end.

Definition at line 60 of file bzimage.h.

Referenced by bzimage_update_header().

Unused.

Definition at line 62 of file bzimage.h.

32-bit pointer to the kernel command line

Definition at line 64 of file bzimage.h.

Referenced by bzimage_update_header().

Highest legal initrd address.

Definition at line 66 of file bzimage.h.

Referenced by bzimage_parse_header().

Physical addr alignment required for kernel.

Definition at line 68 of file bzimage.h.

Whether kernel is relocatable or not.

Definition at line 70 of file bzimage.h.

Unused.

Definition at line 72 of file bzimage.h.

Maximum size of the kernel command line.

Definition at line 74 of file bzimage.h.

Referenced by bzimage_parse_header().


The documentation for this struct was generated from the following file: