Browse Source

pci: bridge mem alrealy allocated aligned, parent's next resource should only been changed in _pci_allocate_mem/io.

Change-Id: Ib80c63c270920aa3fae890d059a5cb19cc17f04a
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 6 years ago
parent
commit
0d15f79e19
  1. 1
      sys/dev/pci/pciconf.c

1
sys/dev/pci/pciconf.c

@ -1010,7 +1010,6 @@ _pci_setup_windows (struct pci_device *dev)
pcireg_t memory;
pm->address = (pm->address + (~pd->bridge.mem_mask))& pd->bridge.mem_mask; //yang23 2013-11-26
dev->bridge.secbus->minpcimemaddr = pm->address + pm->size; //yang23 2013-11-26
pd->bridge.secbus->minpcimemaddr = pm->address;
pd->bridge.secbus->nextpcimemaddr = pm->address + pm->size;

Loading…
Cancel
Save