diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-18 18:33:18 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-18 18:33:18 +0000 |
commit | 905fdcb5264c7b0ed2896dc042e6fe3dd0e25952 (patch) | |
tree | 9f954284652adf218ba215af7e9362dfd90359a9 /hw/fw_cfg.c | |
parent | 084a197a2026d3cc523c61c42d9425cadcddf81b (diff) |
Add common keys to firmware configuration
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5260 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/fw_cfg.c')
-rw-r--r-- | hw/fw_cfg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c index 355beb617c..0012d1010b 100644 --- a/hw/fw_cfg.c +++ b/hw/fw_cfg.c @@ -259,6 +259,7 @@ void *fw_cfg_init(uint32_t ctl_port, uint32_t data_port, { FWCfgState *s; int io_ctl_memory, io_data_memory; + extern int nographic; s = qemu_mallocz(sizeof(FWCfgState)); if (!s) @@ -283,6 +284,9 @@ void *fw_cfg_init(uint32_t ctl_port, uint32_t data_port, } fw_cfg_add_bytes(s, FW_CFG_SIGNATURE, (uint8_t *)"QEMU", 4); fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16); + fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)nographic); + fw_cfg_add_i16(s, FW_CFG_NB_CPUS, (uint16_t)smp_cpus); + register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s); qemu_register_reset(fw_cfg_reset, s); fw_cfg_reset(s); |