diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-28 14:53:13 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-28 14:53:13 +0200 |
commit | 09cf6b4ca8799990b9c01db04c5f4ffbef798773 (patch) | |
tree | d660da543cccbfad03d637b34815017d0e477e47 /src/kernel.cc | |
parent | Enable interrupts (diff) | |
download | kernel.cpp-09cf6b4ca8799990b9c01db04c5f4ffbef798773.tar.xz |
Fix interrupts causing exception 0xd
Diffstat (limited to 'src/kernel.cc')
-rw-r--r-- | src/kernel.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/kernel.cc b/src/kernel.cc index 4337edb..6bfb021 100644 --- a/src/kernel.cc +++ b/src/kernel.cc @@ -45,15 +45,8 @@ void kernel_main([[maybe_unused]] uint32_t mb_magic, [[maybe_unused]] uint32_t m // dump_multiboot(mb_magic, mb_addr); // dump_gdt(); - // printk("GDT::SegmentDescriptor tests\n"); - auto x = GDT::SegmentDescriptor::make<0xffff>(0xdeadbeef, {}); - // printk("x.base(): ", uhex{x.base()}, '\n'); - - // printk("Setting new GDT\n"); GDT gdt; - // dump_gdt(); - - IDT idt; + IDT idt{gdt.codeDescriptor()}; while (true) asm volatile("hlt"); } |