Revision 084a197a
b/hw/fw_cfg.c | ||
---|---|---|
22 | 22 |
* THE SOFTWARE. |
23 | 23 |
*/ |
24 | 24 |
#include "hw.h" |
25 |
#include "sysemu.h" |
|
25 | 26 |
#include "isa.h" |
26 | 27 |
#include "fw_cfg.h" |
27 | 28 |
|
... | ... | |
281 | 282 |
cpu_register_physical_memory(data_addr, FW_CFG_SIZE, io_data_memory); |
282 | 283 |
} |
283 | 284 |
fw_cfg_add_bytes(s, FW_CFG_SIGNATURE, (uint8_t *)"QEMU", 4); |
285 |
fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16); |
|
284 | 286 |
register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s); |
285 | 287 |
qemu_register_reset(fw_cfg_reset, s); |
286 | 288 |
fw_cfg_reset(s); |
b/hw/fw_cfg.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
#define FW_CFG_SIGNATURE 0x00 |
5 | 5 |
#define FW_CFG_ID 0x01 |
6 |
#define FW_CFG_UUID 0x02 |
|
6 | 7 |
#define FW_CFG_MAX_ENTRY 0x10 |
7 | 8 |
|
8 | 9 |
#define FW_CFG_WRITE_CHANNEL 0x4000 |
Also available in: Unified diff