PCI_BAR_IOBASE() macro for bit extraction

This commit is contained in:
2025-11-29 00:19:02 +01:00
parent 436f29bec9
commit 3183117718
2 changed files with 3 additions and 1 deletions

View File

@@ -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;