summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-20 17:28:29 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-20 17:28:29 +0100
commitfa581a747086ee57e7a913ca178c7e8c0e91cff8 (patch)
treedfddcf30a9ecf3a3ea2afd1c51dff40ebac9148f /Kernel
parentefd4f66f361e1c38bd866183ed0d4b29fb1073c2 (diff)
downloadserenity-fa581a747086ee57e7a913ca178c7e8c0e91cff8.zip
Kernel: Mark some IDEController functions with UNMAP_AFTER_INIT
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Storage/IDEController.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Storage/IDEController.cpp b/Kernel/Storage/IDEController.cpp
index fa713b924f..5015d384a0 100644
--- a/Kernel/Storage/IDEController.cpp
+++ b/Kernel/Storage/IDEController.cpp
@@ -32,7 +32,7 @@
namespace Kernel {
-NonnullRefPtr<IDEController> IDEController::initialize(PCI::Address address, bool force_pio)
+UNMAP_AFTER_INIT NonnullRefPtr<IDEController> IDEController::initialize(PCI::Address address, bool force_pio)
{
return adopt(*new IDEController(address, force_pio));
}
@@ -67,18 +67,18 @@ void IDEController::complete_current_request(AsyncDeviceRequest::RequestResult)
ASSERT_NOT_REACHED();
}
-IDEController::IDEController(PCI::Address address, bool force_pio)
+UNMAP_AFTER_INIT IDEController::IDEController(PCI::Address address, bool force_pio)
: StorageController()
, PCI::DeviceController(address)
{
initialize(force_pio);
}
-IDEController::~IDEController()
+UNMAP_AFTER_INIT IDEController::~IDEController()
{
}
-void IDEController::initialize(bool force_pio)
+UNMAP_AFTER_INIT void IDEController::initialize(bool force_pio)
{
auto bus_master_base = IOAddress(PCI::get_BAR4(pci_address()) & (~1));