summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-05-09 10:58:45 -0700
committerRichard Henderson <rth@twiddle.net>2011-05-09 10:58:45 -0700
commit1a4a2299f36eb26c482319bc66f4cee7cb144af1 (patch)
tree5ea21a8116c66536acccab3351f66fce24ea0c68
parenta7b2ef5dd9bb9890f10252981481b55ae30babd1 (diff)
downloadqemu-palcode-1a4a2299f36eb26c482319bc66f4cee7cb144af1.tar.gz
Hack: Move pci BAR ranges.
The Linux kernel will re-allocate all of these, tickling what appears to be a bug in QEMU. Work around this by moving the ranges allocated by the console so that the new ranges don't overlap.
-rw-r--r--pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pci.c b/pci.c
index 45739ff..87a101c 100644
--- a/pci.c
+++ b/pci.c
@@ -141,8 +141,8 @@ pci_setup_device(int bdf, uint32_t *p_io_base, uint32_t *p_mem_base)
void
pci_setup(void)
{
- uint32_t io_base = 0x8000;
- uint32_t mem_base = (128+16) * 1024 * 1024;
+ uint32_t io_base = 0xc000;
+ uint32_t mem_base = 256 * 1024 * 1024;
int bdf, max;
foreachpci (bdf, max)