PCI_BAR_IOBASE() macro for bit extraction
This commit is contained in:
@@ -162,7 +162,7 @@ void pci_qemu_pci_serial_init(void) {
|
||||
|
||||
LOG("pci", "QEMU_PCI_SERIAL bar0=0x%x\n", bar0);
|
||||
|
||||
uint16_t iobase = bar0 & 0xFFFFFFFC;
|
||||
uint16_t iobase = PCI_BAR_IOBASE(bar0);
|
||||
LOG("pci", "QEMU_PCI_SERIAL iobase=0x%x\n", iobase);
|
||||
|
||||
QEMU_PCI_SERIAL_DEV.iobase = iobase;
|
||||
|
||||
Reference in New Issue
Block a user