Revision 905fdcb5 hw/fw_cfg.c

b/hw/fw_cfg.c
259 259
{
260 260
    FWCfgState *s;
261 261
    int io_ctl_memory, io_data_memory;
262
    extern int nographic;
262 263

  
263 264
    s = qemu_mallocz(sizeof(FWCfgState));
264 265
    if (!s)
......
283 284
    }
284 285
    fw_cfg_add_bytes(s, FW_CFG_SIGNATURE, (uint8_t *)"QEMU", 4);
285 286
    fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16);
287
    fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)nographic);
288
    fw_cfg_add_i16(s, FW_CFG_NB_CPUS, (uint16_t)smp_cpus);
289

  
286 290
    register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s);
287 291
    qemu_register_reset(fw_cfg_reset, s);
288 292
    fw_cfg_reset(s);

Also available in: Unified diff