mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 16:47:42 +00:00
Kernel: Mark some IDEController functions with UNMAP_AFTER_INIT
This commit is contained in:
parent
efd4f66f36
commit
fa581a7470
1 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
namespace Kernel {
|
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));
|
return adopt(*new IDEController(address, force_pio));
|
||||||
}
|
}
|
||||||
|
@ -67,18 +67,18 @@ void IDEController::complete_current_request(AsyncDeviceRequest::RequestResult)
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
IDEController::IDEController(PCI::Address address, bool force_pio)
|
UNMAP_AFTER_INIT IDEController::IDEController(PCI::Address address, bool force_pio)
|
||||||
: StorageController()
|
: StorageController()
|
||||||
, PCI::DeviceController(address)
|
, PCI::DeviceController(address)
|
||||||
{
|
{
|
||||||
initialize(force_pio);
|
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));
|
auto bus_master_base = IOAddress(PCI::get_BAR4(pci_address()) & (~1));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue