feat: add paging
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "./idt.hpp"
|
||||
#include "./task.hpp"
|
||||
#include "arch/arch.hpp"
|
||||
#include "arch/x86_64/memory.hpp"
|
||||
|
||||
namespace x86_64 {
|
||||
|
||||
@@ -13,10 +14,19 @@ public:
|
||||
static arch& get();
|
||||
public:
|
||||
void init() override;
|
||||
public:
|
||||
pmm& get_pmm() { return m_pmm; }
|
||||
paging& get_paging() { return m_paging; }
|
||||
// vm& get_vm() { return m_vm; }
|
||||
private:
|
||||
tss m_tss{};
|
||||
gdt m_gdt{ m_tss };
|
||||
idt m_idt;
|
||||
|
||||
// Memory
|
||||
pmm m_pmm;
|
||||
paging m_paging{ m_pmm };
|
||||
// vm m_vm;
|
||||
};
|
||||
|
||||
} // namespace x86_64
|
||||
|
||||
Reference in New Issue
Block a user