diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-09 17:39:08 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-09 17:39:08 +0200 |
commit | c6e0d58e177d91f01b6de80073d066bf03de2913 (patch) | |
tree | e23139d87da7967e36517fe869b3677e3a4bc9c3 /src/kernel.cc | |
parent | Loading GDT (diff) | |
download | kernel.cpp-c6e0d58e177d91f01b6de80073d066bf03de2913.tar.xz |
Add more comments to GDT code
Diffstat (limited to 'src/kernel.cc')
-rw-r--r-- | src/kernel.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel.cc b/src/kernel.cc index 2fa90e3..4569107 100644 --- a/src/kernel.cc +++ b/src/kernel.cc @@ -26,6 +26,10 @@ 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(); |