feat: add interrupts handling, PIC and PIT

This commit is contained in:
2026-10-20 15:20:26 +02:00
parent 8da0918108
commit 811ce51c2c
10 changed files with 428 additions and 12 deletions
+18 -2
View File
@@ -5,11 +5,16 @@
#include "./idt.hpp"
#include "./task.hpp"
#include "arch/arch.hpp"
#include "arch/x86_64/int.hpp"
#include "arch/x86_64/memory.hpp"
#include "arch/x86_64/pic.hpp"
#include "arch/x86_64/pit.hpp"
namespace x86_64 {
class arch : public ::arch {
private:
arch();
public:
static arch& get();
public:
@@ -17,7 +22,11 @@ public:
public:
pmm& get_pmm() { return m_pmm; }
paging& get_paging() { return m_paging; }
// vm& get_vm() { return m_vm; }
vm& get_vm() { return m_vm; }
public:
irq_manager& get_irq_manager() { return m_irqManager; }
pic& get_pic() { return m_picController; }
private:
tss m_tss{};
gdt m_gdt{ m_tss };
@@ -26,7 +35,14 @@ private:
// Memory
pmm m_pmm;
paging m_paging{ m_pmm };
// vm m_vm;
vm m_vm{ m_pmm };
// Interrupts
pic m_picController;
pit m_pit;
irq_manager m_irqManager{ m_vm };
};
} // namespace x86_64