aboutsummaryrefslogtreecommitdiff
path: root/hw/fw_cfg.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2009-11-12 21:53:12 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-17 10:39:02 -0600
commit77873196f344a56dfcd460f2cf69ac793fad1b40 (patch)
treee151d5d7fb56b4a0e6bbac80868defed331c2d74 /hw/fw_cfg.h
parent235f86ef01470391925e7edec71638b41ffa5537 (diff)
Convert multiboot to fw_cfg backed data storage
Right now we load the guest kernel to RAM, fire off the BIOS, hope it doesn't clobber memory and run an option rom that jumps into the kernel. That breaks with SeaBIOS, as that clears memory. So let's read all kernel, module etc. data using the fw_cfg interface when in the int19 handler. This patch implements said mechanism for multiboot. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/fw_cfg.h')
-rw-r--r--hw/fw_cfg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/fw_cfg.h b/hw/fw_cfg.h
index 359d45afe9..1e004b7070 100644
--- a/hw/fw_cfg.h
+++ b/hw/fw_cfg.h
@@ -17,7 +17,10 @@
#define FW_CFG_NUMA 0x0d
#define FW_CFG_BOOT_MENU 0x0e
#define FW_CFG_MAX_CPUS 0x0f
-#define FW_CFG_MAX_ENTRY 0x10
+#define FW_CFG_KERNEL_ENTRY 0x10
+#define FW_CFG_KERNEL_DATA 0x11
+#define FW_CFG_INITRD_DATA 0x12
+#define FW_CFG_MAX_ENTRY 0x13
#define FW_CFG_WRITE_CHANNEL 0x4000
#define FW_CFG_ARCH_LOCAL 0x8000