1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

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

View file

@ -34,7 +34,7 @@ void InterruptManagement::initialize()
void InterruptManagement::find_controllers() void InterruptManagement::find_controllers()
{ {
// TODO: Once device tree support is in place, find interrupt controllers using that. // 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) u8 InterruptManagement::acquire_mapped_interrupt_number(u8 interrupt_number)