refactor: add architecture

This commit is contained in:
2026-10-02 13:32:40 +02:00
parent c4fb939e48
commit 387db2dcf7
11 changed files with 283 additions and 53 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "./arch.hpp"
arch* arch::get() {
static x86_64::arch s_arch;
return &s_arch;
}
namespace x86_64 {
void arch::init() {
load_gdt(m_gdt, sizeof(m_gdt));
reload_segments(0x8, 0x10);
}
} // namespace x86_64