summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2023-01-27 12:12:32 +0100
committerLinus Groh <mail@linusgroh.de>2023-01-27 20:47:08 +0000
commit0d722b4111748a0150c104b5912f1830dcf7f27c (patch)
tree83b24f6790381b669c536ee9569ef6656f9aa1eb /Kernel
parent58cfd46a5a7f4e41fb2da5ea253b9ff27979e5d9 (diff)
downloadserenity-0d722b4111748a0150c104b5912f1830dcf7f27c.zip
Kernel/PCI: Pass DeviceIdentifier to get_BAR2 in BochsGraphicsAdapter
This change was forgotten in 1f9d3a3523d066a2bc80dd60e472f191492df2dd and broke the aarch64 build.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Graphics/Bochs/GraphicsAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
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<void> 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<BochsDisplayMMIORegisters volatile>(PhysicalAddress(PCI::get_BAR2(pci_device_identifier.address()) & 0xfffffff0)));
+ auto registers_mapping = TRY(Memory::map_typed_writable<BochsDisplayMMIORegisters volatile>(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