From 57a46d0579951d7abbcbe86766f73afa93a5d370 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 12 Nov 2009 21:53:14 +0100 Subject: Convert linux bootrom to external rom and fw_cfg We already have a working multiboot implementation that uses fw_cfg to get its kernel module etc. data in int19 runtime now. So what's missing is a working linux boot option rom. While at it I figured it would be a good idea to take the opcode generator out of pc.c and instead use a proper option rom, like we do with multiboot. So here it is - an fw_cfg using option rom for -kernel with linux! Signed-off-by: Alexander Graf Signed-off-by: Anthony Liguori --- hw/fw_cfg.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hw/fw_cfg.h') diff --git a/hw/fw_cfg.h b/hw/fw_cfg.h index 1e004b7070..7070c94010 100644 --- a/hw/fw_cfg.h +++ b/hw/fw_cfg.h @@ -20,7 +20,13 @@ #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_CMDLINE_ADDR 0x13 +#define FW_CFG_CMDLINE_SIZE 0x14 +#define FW_CFG_CMDLINE_DATA 0x15 +#define FW_CFG_SETUP_ADDR 0x16 +#define FW_CFG_SETUP_SIZE 0x17 +#define FW_CFG_SETUP_DATA 0x18 +#define FW_CFG_MAX_ENTRY 0x19 #define FW_CFG_WRITE_CHANNEL 0x4000 #define FW_CFG_ARCH_LOCAL 0x8000 -- cgit v1.2.3