Revision 3cce6243 hw/pc.c

b/hw/pc.c
32 32
#include "smbus.h"
33 33
#include "boards.h"
34 34
#include "console.h"
35
#include "fw_cfg.h"
35 36

  
36 37
/* output Bochs bios info messages */
37 38
//#define DEBUG_BIOS
......
44 45

  
45 46
/* Leave a chunk of memory at the top of RAM for the BIOS ACPI tables.  */
46 47
#define ACPI_DATA_SIZE       0x10000
48
#define BIOS_CFG_IOPORT 0x510
47 49

  
48 50
#define MAX_IDE_BUS 2
49 51

  
......
416 418

  
417 419
static void bochs_bios_init(void)
418 420
{
421
    void *fw_cfg;
422

  
419 423
    register_ioport_write(0x400, 1, 2, bochs_bios_write, NULL);
420 424
    register_ioport_write(0x401, 1, 2, bochs_bios_write, NULL);
421 425
    register_ioport_write(0x402, 1, 1, bochs_bios_write, NULL);
......
426 430
    register_ioport_write(0x502, 1, 2, bochs_bios_write, NULL);
427 431
    register_ioport_write(0x500, 1, 1, bochs_bios_write, NULL);
428 432
    register_ioport_write(0x503, 1, 1, bochs_bios_write, NULL);
433

  
434
    fw_cfg = fw_cfg_init(BIOS_CFG_IOPORT, BIOS_CFG_IOPORT + 1, 0, 0);
435
    fw_cfg_add_i32(fw_cfg, FW_CFG_ID, 1);
429 436
}
430 437

  
431 438
/* Generate an initial boot sector which sets state and jump to

Also available in: Unified diff