diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2025-03-20 15:30:18 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2025-03-20 15:30:18 +0000 |
| commit | b6ee8bec7ed23fd0c544f67f735e96b2bfe67682 (patch) | |
| tree | 1c738088d75bd7e1299d3b695e74e96d68878fc4 /arch/x86_64/src/kernel/main.cpp | |
| parent | 7a98b1dcb1f4436664a8f1a5d6e71ab2c65378f0 (diff) | |
| download | teachos-b6ee8bec7ed23fd0c544f67f735e96b2bfe67682.tar.xz teachos-b6ee8bec7ed23fd0c544f67f735e96b2bfe67682.zip | |
begin implementation of IDT
Diffstat (limited to 'arch/x86_64/src/kernel/main.cpp')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index da6d6d3..9433558 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -1,6 +1,9 @@ #include "arch/kernel/main.hpp" -#include "arch/context_switching/descriptor_table/global_descriptor_table.hpp" +#include "arch/boot/pointers.hpp" +#include "arch/context_switching/descriptor_table/initialization.hpp" +#include "arch/kernel/cpu/if.hpp" +#include "arch/kernel/cpu/jmp.hpp" #include "arch/memory/heap/bump_allocator.hpp" #include "arch/memory/heap/global_heap_allocator.hpp" #include "arch/memory/main.hpp" @@ -60,8 +63,7 @@ namespace teachos::arch::kernel heap_test(); - decltype(auto) global_descriptor_table = context_switching::descriptor_table::initialize_global_descriptor_table(); - (void)global_descriptor_table.at(1); - video::vga::text::write("GDT FILLED", video::vga::text::common_attributes::green_on_black); + decltype(auto) descriptor_tables = context_switching::descriptor_table::initialize_descriptor_tables(); + (void)descriptor_tables; } } // namespace teachos::arch::kernel |
