diff options
| author | Michael Brown | 2007-01-14 14:36:33 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-14 14:36:33 +0100 |
| commit | 3ccd7335f0ae284835ab3ac6aab14eacd890b0e6 (patch) | |
| tree | 1200d9a57ffb4a32cb100f31c94411a79b2a759c /src/arch/i386/include | |
| parent | Can start a Linux kernel directly (albeit with no initrd support) (diff) | |
| download | ipxe-3ccd7335f0ae284835ab3ac6aab14eacd890b0e6.tar.gz ipxe-3ccd7335f0ae284835ab3ac6aab14eacd890b0e6.tar.xz ipxe-3ccd7335f0ae284835ab3ac6aab14eacd890b0e6.zip | |
Split bzimage_load into separate functions
Diffstat (limited to 'src/arch/i386/include')
| -rw-r--r-- | src/arch/i386/include/bzimage.h | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/arch/i386/include/bzimage.h b/src/arch/i386/include/bzimage.h index 9b338034c..96df180d3 100644 --- a/src/arch/i386/include/bzimage.h +++ b/src/arch/i386/include/bzimage.h @@ -76,17 +76,30 @@ struct bzimage_header { /** bzImage "load high" flag */ #define BZI_LOAD_HIGH 0x01 +/** Load address for high-loaded kernels */ +#define BZI_LOAD_HIGH_ADDR 0x100000 + +/** Load address for low-loaded kernels */ +#define BZI_LOAD_LOW_ADDR 0x10000 + /** bzImage "kernel can use heap" flag */ #define BZI_CAN_USE_HEAP 0x80 -/** bzImage command line present magic marker value */ -#define BZI_CMD_LINE_MAGIC 0xa33f -/** bzImage command line present magic marker offset */ -#define BZI_CMD_LINE_MAGIC_OFFSET 0x20 +/** bzImage command-line structure used by older kernels */ +struct bzimage_cmdline { + /** Magic signature */ + uint16_t magic; + /** Offset to command line */ + uint16_t offset; +} __attribute__ (( packed )); + +/** Offset of bzImage command-line structure within kernel image */ +#define BZI_CMDLINE_OFFSET 0x20 + +/** bzImage command line present magic marker value */ +#define BZI_CMDLINE_MAGIC 0xa33f -/** bzImage command line offset offset */ -#define BZI_CMD_LINE_OFFSET_OFFSET 0x22 /** Amount of stack space to provide */ #define BZI_STACK_SIZE 0x1000 |
