summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2021-06-30 00:13:26 +0100
committerAndreas Kling <kling@serenityos.org>2021-06-30 11:12:44 +0200
commit02810f15b126e9df3fb4074af817e120e073297d (patch)
treeec2a7ee0addf6026d69419e607c65e8ed906dedb /Kernel
parent9f0ce2dc818df8b5b8cd77d8c297bed237a9a250 (diff)
downloadserenity-02810f15b126e9df3fb4074af817e120e073297d.zip
Kernel/PCI: Don't unmap determine_memory_mapped_bus_region after init
This can be accessed after init via lspci.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/PCI/MMIOAccess.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/PCI/MMIOAccess.cpp b/Kernel/PCI/MMIOAccess.cpp
index 7522204b83..7474b06d89 100644
--- a/Kernel/PCI/MMIOAccess.cpp
+++ b/Kernel/PCI/MMIOAccess.cpp
@@ -36,7 +36,7 @@ u8 MMIOAccess::segment_end_bus(u32 seg) const
return segment.value().get_end_bus();
}
-UNMAP_AFTER_INIT PhysicalAddress MMIOAccess::determine_memory_mapped_bus_region(u32 segment, u8 bus) const
+PhysicalAddress MMIOAccess::determine_memory_mapped_bus_region(u32 segment, u8 bus) const
{
VERIFY(bus >= segment_start_bus(segment) && bus <= segment_end_bus(segment));
auto seg = m_segments.get(segment);