diff options
| author | Michael Brown | 2007-01-14 07:36:20 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-14 07:36:20 +0100 |
| commit | 784e10635aa74e92d099c6153f8b9e537926cd74 (patch) | |
| tree | ba1b46e56a3f2667e1dbeea426cba84a120ff178 /src/arch/i386/include | |
| parent | Obsolete (diff) | |
| download | ipxe-784e10635aa74e92d099c6153f8b9e537926cd74.tar.gz ipxe-784e10635aa74e92d099c6153f8b9e537926cd74.tar.xz ipxe-784e10635aa74e92d099c6153f8b9e537926cd74.zip | |
Can almost start a kernel now. It dies with "No setup signature found"
Diffstat (limited to 'src/arch/i386/include')
| -rw-r--r-- | src/arch/i386/include/bzimage.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/src/arch/i386/include/bzimage.h b/src/arch/i386/include/bzimage.h index 4b6c1cf3a..9b338034c 100644 --- a/src/arch/i386/include/bzimage.h +++ b/src/arch/i386/include/bzimage.h @@ -65,9 +65,30 @@ struct bzimage_header { } __attribute__ (( packed )); /** Offset of bzImage header within kernel image */ -#define BZHDR_OFFSET 0x1f1 +#define BZI_HDR_OFFSET 0x1f1 /** bzImage magic signature value */ -#define BZIMAGE_SIGNATURE 0x53726448 +#define BZI_SIGNATURE 0x53726448 + +/** bzImage boot loader identifier for Etherboot */ +#define BZI_LOADER_TYPE_ETHERBOOT 4 + +/** bzImage "load high" flag */ +#define BZI_LOAD_HIGH 0x01 + +/** 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 offset offset */ +#define BZI_CMD_LINE_OFFSET_OFFSET 0x22 + +/** Amount of stack space to provide */ +#define BZI_STACK_SIZE 0x1000 #endif /* _BZIMAGE_H */ |
