|
iPXE
|
Linux kernel images. More...
Go to the source code of this file.
Data Structures | |
| struct | lkrn_header |
| Kernel image header. More... | |
| struct | lkrn_context |
| Kernel image context. More... | |
| struct | zimg_header |
| Compressed kernel image header. More... | |
| struct | zimg_context |
| Compressed kernel image context. More... | |
Macros | |
| #define | LKRN_MAGIC(a, b, c, d) ( ( (a) << 0 ) | ( (b) << 8 ) | ( (c) << 16 ) | ( (d) << 24 ) ) |
| Kernel magic value. More... | |
| #define | LKRN_MAGIC_AARCH64 LKRN_MAGIC ( 'A', 'R', 'M', 0x64 ) |
| Kernel magic value for AArch64. More... | |
| #define | LKRN_MAGIC_RISCV LKRN_MAGIC ( 'R', 'S', 'C', 0x05 ) |
| Kernel magic value for RISC-V. More... | |
| #define | ZIMG_MAGIC LKRN_MAGIC ( 'z', 'i', 'm', 'g' ) |
| Compressed kernel image magic value. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| struct lkrn_header | __attribute__ ((packed)) |
| void | lkrn_jump (physaddr_t entry, physaddr_t fdt) |
| Jump to kernel entry point. More... | |
Variables | |
| uint32_t | code [2] |
| Executable code. More... | |
| uint64_t | text_offset |
| Image load offset. More... | |
| uint64_t | image_size |
| Image size. More... | |
| uint64_t | flags |
| Flags. More... | |
| uint8_t | reserved_a [24] |
| Reserved. More... | |
| uint32_t | magic |
| Magic. More... | |
| uint8_t | reserved_b [4] |
| Reserved. More... | |
| struct lkrn_context | __attribute__ |
| uint32_t | offset |
| Offset to payload. More... | |
| uint32_t | len |
| Length of payload. More... | |
| uint32_t | type |
| Compression type. More... | |
Linux kernel images.
Definition in file lkrn.h.
| #define LKRN_MAGIC | ( | a, | |
| b, | |||
| c, | |||
| d | |||
| ) | ( ( (a) << 0 ) | ( (b) << 8 ) | ( (c) << 16 ) | ( (d) << 24 ) ) |
| #define LKRN_MAGIC_AARCH64 LKRN_MAGIC ( 'A', 'R', 'M', 0x64 ) |
| #define LKRN_MAGIC_RISCV LKRN_MAGIC ( 'R', 'S', 'C', 0x05 ) |
| #define ZIMG_MAGIC LKRN_MAGIC ( 'z', 'i', 'm', 'g' ) |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| struct lkrn_header __attribute__ | ( | (packed) | ) |
| void lkrn_jump | ( | physaddr_t | entry, |
| physaddr_t | fdt | ||
| ) |
Jump to kernel entry point.
| entry | Kernel entry point |
| fdt | Device tree |
Referenced by lkrn_exec().
| struct zimg_context __attribute__ |
1.8.15