feat(pfa): Add PageFrameAllocator class

This commit is contained in:
Daniel Hammer
2025-03-12 14:34:48 +01:00
parent 6efcd1d883
commit bf2cf6a59e
5 changed files with 94 additions and 18753 deletions
+2 -2
View File
@@ -10,13 +10,13 @@
#include <Common/Panic.hpp>
#include <Platform/Registers.hpp>
#include <CppLib/Stream.hpp>
#include <Memory/PageFrameAllocator.hpp>
namespace Hal {
constexpr auto InterruptGate = 0x8E;
constexpr auto TrapGate = 0x8F;
InterruptDescriptor* IDT;
InterruptDescriptor InterruptDescriptorTable[255]{};
IDTRStruct IDTR{};
const char* ExceptionStrings[] = {
@@ -113,7 +113,7 @@ namespace Hal {
struct SetHandler<N,N> {static void run() {}};
void IDTInitialize() {
IDT = (InterruptDescriptor*)&InterruptDescriptorTable;
IDT = (InterruptDescriptor*)Memory::g_pfa->Allocate();
IDTR.Limit = 0x0FF;
IDTR.Base = (uint64_t)&IDT;