Files
towos/kernel/arch/x86_64/arch.cpp
T

16 lines
231 B
C++

#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