summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/include
diff options
context:
space:
mode:
authorMichael Brown2009-03-30 12:32:28 +0200
committerMichael Brown2009-03-30 12:42:19 +0200
commitabc13af0704a131f6eb165eefd977d2b8293a028 (patch)
tree98314de87c7b83fe70eee4b07d49ce2d8e6bb9a9 /src/arch/i386/include
parent[build] Avoid always rebuilding bin/embedded.o (diff)
downloadipxe-abc13af0704a131f6eb165eefd977d2b8293a028.tar.gz
ipxe-abc13af0704a131f6eb165eefd977d2b8293a028.tar.xz
ipxe-abc13af0704a131f6eb165eefd977d2b8293a028.zip
[bzimage] Support old (pre-2.00 bootloader) Linux kernel formats
This allows gPXE to load memtest86, which is packaged as an old kernel. Split all code that directly touches the kernel headers out into bzimage_parse_header() and bzimage_update_header(), to reduce code size and offset the cost of supporting older kernels. Total cost of this feature: 11 bytes (uncompressed).
Diffstat (limited to 'src/arch/i386/include')
-rw-r--r--src/arch/i386/include/bzimage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/i386/include/bzimage.h b/src/arch/i386/include/bzimage.h
index aee058ae3..99fa09635 100644
--- a/src/arch/i386/include/bzimage.h
+++ b/src/arch/i386/include/bzimage.h
@@ -75,6 +75,9 @@ struct bzimage_header {
/** Offset of bzImage header within kernel image */
#define BZI_HDR_OFFSET 0x1f1
+/** bzImage boot flag value */
+#define BZI_BOOT_FLAG 0xaa55
+
/** bzImage magic signature value */
#define BZI_SIGNATURE 0x53726448