Set correct PCI BAR sizes

This commit is contained in:
copy 2015-03-09 01:11:57 +01:00
parent 8c4f4cf5d0
commit 02f01f21c9
3 changed files with 3 additions and 7 deletions

View file

@ -78,7 +78,7 @@ function Ne2k(cpu, bus)
this.pci_id = 0x05 << 3;
this.pci_bars = [
{
size: 128 * 1024,
size: 0x800,
},
];

View file

@ -122,11 +122,7 @@ function VGAScreen(cpu, bus, vga_memory_size)
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x01, 0x00, 0x00,
];
this.pci_id = 0x12 << 3;
this.pci_bars = [
{
size: this.vga_memory_size,
},
];
this.pci_bars = [];
cpu.devices.pci.register_device(this);

View file

@ -20,7 +20,7 @@ function VirtIO(cpu, bus, filesystem)
this.pci_id = 0x06 << 3;
this.pci_bars = [
{
size: 128 * 1024,
size: 0x800,
},
];