mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Kernel: Store IRQControllers in NonnullRefPtrs instead of RefPtrs
These are always non-null, so there's no point in storing them in a nullable container.
This commit is contained in:
parent
176989d811
commit
9abbeff79f
8 changed files with 13 additions and 15 deletions
|
@ -42,12 +42,12 @@ u8 InterruptManagement::acquire_mapped_interrupt_number(u8 interrupt_number)
|
|||
return interrupt_number;
|
||||
}
|
||||
|
||||
Vector<LockRefPtr<IRQController>> const& InterruptManagement::controllers()
|
||||
Vector<NonnullLockRefPtr<IRQController>> const& InterruptManagement::controllers()
|
||||
{
|
||||
return m_interrupt_controllers;
|
||||
}
|
||||
|
||||
LockRefPtr<IRQController> InterruptManagement::get_responsible_irq_controller(u8)
|
||||
NonnullLockRefPtr<IRQController> InterruptManagement::get_responsible_irq_controller(u8)
|
||||
{
|
||||
// TODO: Support more interrupt controllers
|
||||
VERIFY(m_interrupt_controllers.size() == 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue