diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-11-17 15:20:22 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-11-17 15:20:22 +0000 |
commit | ae3e9989ed8137ddebad759385d1405817c7b2c7 (patch) | |
tree | 6096a280d55ae4b83c43d384cef45742c38b2df5 /src | |
parent | 61c6aec071e47312aa39f6e0e1edf284f96e7c69 (diff) | |
download | coreboot-ae3e9989ed8137ddebad759385d1405817c7b2c7.tar.xz |
Silence two warnings. Only use the Qemu hard-coded address for VGA devices.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4947 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/amd/dualcore/amd_sibling.c | 4 | ||||
-rw-r--r-- | src/devices/pci_rom.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/cpu/amd/dualcore/amd_sibling.c b/src/cpu/amd/dualcore/amd_sibling.c index 8401818fb6..deaa78cef0 100644 --- a/src/cpu/amd/dualcore/amd_sibling.c +++ b/src/cpu/amd/dualcore/amd_sibling.c @@ -13,7 +13,6 @@ #include <cpu/amd/model_fxx_rev.h> #include <cpu/amd/amdk8_sysconf.h> -static int first_time = 1; static int disable_siblings = !CONFIG_LOGICAL_CPUS; #include "dualcore_id.c" @@ -116,7 +115,10 @@ unsigned get_apicid_base(unsigned ioapic_num) return apicid_base; } + #if 0 +static int first_time = 1; + void amd_sibling_init(device_t cpu) { unsigned i, siblings; diff --git a/src/devices/pci_rom.c b/src/devices/pci_rom.c index 9b2d281129..c4af19143b 100644 --- a/src/devices/pci_rom.c +++ b/src/devices/pci_rom.c @@ -46,11 +46,13 @@ struct rom_header * pci_rom_probe(struct device *dev) rom_address = pci_read_config32(dev, PCI_ROM_ADDRESS); if (rom_address == 0x00000000 || rom_address == 0xffffffff) { - #if CONFIG_BOARD_EMULATION_QEMU_X86 - rom_address = 0xc0000; - #else - return NULL; + #if defined(CONFIG_BOARD_EMULATION_QEMU_X86) \ + && CONFIG_BOARD_EMULATION_QEMU_X86 + if ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) + rom_address = 0xc0000; + else #endif + return NULL; } else { /* enable expansion ROM address decoding */ pci_write_config32(dev, PCI_ROM_ADDRESS, |