From 0d722b4111748a0150c104b5912f1830dcf7f27c Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Fri, 27 Jan 2023 12:12:32 +0100 Subject: [PATCH] Kernel/PCI: Pass DeviceIdentifier to get_BAR2 in BochsGraphicsAdapter This change was forgotten in 1f9d3a3523d066a2bc80dd60e472f191492df2dd and broke the aarch64 build. --- Kernel/Graphics/Bochs/GraphicsAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Graphics/Bochs/GraphicsAdapter.cpp b/Kernel/Graphics/Bochs/GraphicsAdapter.cpp index 3616ba7847..56191f7d54 100644 --- a/Kernel/Graphics/Bochs/GraphicsAdapter.cpp +++ b/Kernel/Graphics/Bochs/GraphicsAdapter.cpp @@ -63,7 +63,7 @@ UNMAP_AFTER_INIT ErrorOr BochsGraphicsAdapter::initialize_adapter(PCI::Dev m_display_connector = QEMUDisplayConnector::must_create(PhysicalAddress(PCI::get_BAR0(pci_device_identifier) & 0xfffffff0), bar0_space_size, move(registers_mapping)); } #else - auto registers_mapping = TRY(Memory::map_typed_writable(PhysicalAddress(PCI::get_BAR2(pci_device_identifier.address()) & 0xfffffff0))); + auto registers_mapping = TRY(Memory::map_typed_writable(PhysicalAddress(PCI::get_BAR2(pci_device_identifier) & 0xfffffff0))); VERIFY(registers_mapping.region); m_display_connector = QEMUDisplayConnector::must_create(PhysicalAddress(PCI::get_BAR0(pci_device_identifier) & 0xfffffff0), bar0_space_size, move(registers_mapping)); #endif