diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-18 18:31:52 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-18 18:31:52 +0000 |
commit | 084a197a2026d3cc523c61c42d9425cadcddf81b (patch) | |
tree | 4973802ec14dd3a66767b5f563776f57fd26b4fc /hw | |
parent | f1f23ad58b42a9094fd8e6c0429c199d2f1280cb (diff) | |
download | qemu-084a197a2026d3cc523c61c42d9425cadcddf81b.zip qemu-084a197a2026d3cc523c61c42d9425cadcddf81b.tar.gz qemu-084a197a2026d3cc523c61c42d9425cadcddf81b.tar.bz2 |
Add UUID to firmware configuration info (Gleb Natapov)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5259 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/fw_cfg.c | 2 | ||||
-rw-r--r-- | hw/fw_cfg.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c index db5f0bd..355beb6 100644 --- a/hw/fw_cfg.c +++ b/hw/fw_cfg.c @@ -22,6 +22,7 @@ * THE SOFTWARE. */ #include "hw.h" +#include "sysemu.h" #include "isa.h" #include "fw_cfg.h" @@ -281,6 +282,7 @@ void *fw_cfg_init(uint32_t ctl_port, uint32_t data_port, cpu_register_physical_memory(data_addr, FW_CFG_SIZE, io_data_memory); } fw_cfg_add_bytes(s, FW_CFG_SIGNATURE, (uint8_t *)"QEMU", 4); + fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16); register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s); qemu_register_reset(fw_cfg_reset, s); fw_cfg_reset(s); diff --git a/hw/fw_cfg.h b/hw/fw_cfg.h index b949c70..909c8b9 100644 --- a/hw/fw_cfg.h +++ b/hw/fw_cfg.h @@ -3,6 +3,7 @@ #define FW_CFG_SIGNATURE 0x00 #define FW_CFG_ID 0x01 +#define FW_CFG_UUID 0x02 #define FW_CFG_MAX_ENTRY 0x10 #define FW_CFG_WRITE_CHANNEL 0x4000 |