1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 22:47:45 +00:00

Kernel: Add simple implementation for InterruptManagement on aarch64

This class currently hardcodes the use of the Raspberry Pi interrupt
controller.
This commit is contained in:
Timon Kruiper 2022-05-30 09:43:51 +02:00 committed by Linus Groh
parent 5eac2b9f33
commit c959344c00
4 changed files with 69 additions and 21 deletions

View file

@ -6,6 +6,8 @@
#pragma once
#include <AK/RefPtr.h>
#include <AK/Vector.h>
#include <Kernel/Arch/aarch64/IRQController.h>
namespace Kernel {
@ -13,10 +15,19 @@ namespace Kernel {
class InterruptManagement {
public:
static InterruptManagement& the();
static void initialize();
static bool initialized();
static u8 acquire_mapped_interrupt_number(u8 original_irq);
Vector<RefPtr<IRQController>> const& controllers();
RefPtr<IRQController> get_responsible_irq_controller(u8 interrupt_vector);
private:
InterruptManagement() = default;
void find_controllers();
Vector<RefPtr<IRQController>> m_interrupt_controllers;
};
}