Kernel/aarch64: Use adopt_lock_ref to instantiate an InterruptController

This commit is contained in:
Liav A 2022-10-01 17:56:49 +03:00 committed by Andreas Kling
parent dd6e70afd6
commit 66bde66f49
Notes: sideshowbarker 2024-07-17 06:29:27 +09:00

View File

@ -34,7 +34,7 @@ void InterruptManagement::initialize()
void InterruptManagement::find_controllers()
{
// TODO: Once device tree support is in place, find interrupt controllers using that.
m_interrupt_controllers.append(new RPi::InterruptController);
m_interrupt_controllers.append(adopt_lock_ref(*new (nothrow) RPi::InterruptController));
}
u8 InterruptManagement::acquire_mapped_interrupt_number(u8 interrupt_number)