refactor: add architecture
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user