From f6f10575f75ac23d06e1d94f7861611503daa7af Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 23 Apr 2026 14:03:28 +0200 Subject: chore: banish relative includes --- .../pre/include/arch/context_switching/main.hpp | 4 ++-- arch/x86_64/pre/src/context_switching/main.cpp | 16 +++++++-------- .../pre/src/context_switching/syscall/main.cpp | 2 +- .../context_switching/syscall/syscall_enable.cpp | 8 ++++---- .../context_switching/syscall/syscall_handler.cpp | 14 ++++++------- arch/x86_64/pre/src/kernel/main.cpp | 24 +++++++++++----------- arch/x86_64/pre/src/user/main.cpp | 6 +++--- 7 files changed, 37 insertions(+), 37 deletions(-) (limited to 'arch/x86_64/pre') diff --git a/arch/x86_64/pre/include/arch/context_switching/main.hpp b/arch/x86_64/pre/include/arch/context_switching/main.hpp index f8477ea..07e00e8 100644 --- a/arch/x86_64/pre/include/arch/context_switching/main.hpp +++ b/arch/x86_64/pre/include/arch/context_switching/main.hpp @@ -1,8 +1,8 @@ #ifndef TEACHOS_ARCH_X86_64_CONTEXT_SWITCHING_MAIN_HPP #define TEACHOS_ARCH_X86_64_CONTEXT_SWITCHING_MAIN_HPP -#include "arch/context_switching/interrupt_descriptor_table/interrupt_descriptor_table.hpp" -#include "arch/context_switching/segment_descriptor_table/global_descriptor_table.hpp" +#include +#include namespace teachos::arch::context_switching { diff --git a/arch/x86_64/pre/src/context_switching/main.cpp b/arch/x86_64/pre/src/context_switching/main.cpp index 3eb6dae..0961499 100644 --- a/arch/x86_64/pre/src/context_switching/main.cpp +++ b/arch/x86_64/pre/src/context_switching/main.cpp @@ -1,12 +1,12 @@ -#include "arch/context_switching/main.hpp" +#include -#include "arch/boot/pointers.hpp" -#include "arch/context_switching/syscall/syscall_enable.hpp" -#include "arch/kernel/cpu/call.hpp" -#include "arch/kernel/cpu/if.hpp" -#include "arch/kernel/cpu/segment_register.hpp" -#include "arch/kernel/cpu/tr.hpp" -#include "arch/user/main.hpp" +#include +#include +#include +#include +#include +#include +#include namespace teachos::arch::context_switching { diff --git a/arch/x86_64/pre/src/context_switching/syscall/main.cpp b/arch/x86_64/pre/src/context_switching/syscall/main.cpp index b4ab468..10bd087 100644 --- a/arch/x86_64/pre/src/context_switching/syscall/main.cpp +++ b/arch/x86_64/pre/src/context_switching/syscall/main.cpp @@ -1,4 +1,4 @@ -#include "arch/context_switching/syscall/main.hpp" +#include namespace teachos::arch::context_switching::syscall { diff --git a/arch/x86_64/pre/src/context_switching/syscall/syscall_enable.cpp b/arch/x86_64/pre/src/context_switching/syscall/syscall_enable.cpp index dbb3ed9..f9f070a 100644 --- a/arch/x86_64/pre/src/context_switching/syscall/syscall_enable.cpp +++ b/arch/x86_64/pre/src/context_switching/syscall/syscall_enable.cpp @@ -1,8 +1,8 @@ -#include "arch/context_switching/syscall/syscall_enable.hpp" +#include -#include "arch/context_switching/interrupt_descriptor_table/segment_selector.hpp" -#include "arch/context_switching/syscall/syscall_handler.hpp" -#include "arch/kernel/cpu/msr.hpp" +#include +#include +#include namespace teachos::arch::context_switching::syscall { diff --git a/arch/x86_64/pre/src/context_switching/syscall/syscall_handler.cpp b/arch/x86_64/pre/src/context_switching/syscall/syscall_handler.cpp index c120f77..430d65c 100644 --- a/arch/x86_64/pre/src/context_switching/syscall/syscall_handler.cpp +++ b/arch/x86_64/pre/src/context_switching/syscall/syscall_handler.cpp @@ -1,11 +1,11 @@ -#include "arch/context_switching/syscall/syscall_handler.hpp" +#include -#include "arch/context_switching/syscall/main.hpp" -#include "arch/exception_handling/assert.hpp" -#include "arch/exception_handling/panic.hpp" -#include "arch/memory/heap/global_heap_allocator.hpp" -#include "arch/memory/main.hpp" -#include "arch/video/vga/text.hpp" +#include +#include +#include +#include +#include +#include namespace teachos::arch::context_switching::syscall { diff --git a/arch/x86_64/pre/src/kernel/main.cpp b/arch/x86_64/pre/src/kernel/main.cpp index 43b5f90..2658678 100644 --- a/arch/x86_64/pre/src/kernel/main.cpp +++ b/arch/x86_64/pre/src/kernel/main.cpp @@ -1,16 +1,16 @@ -#include "arch/kernel/main.hpp" +#include -#include "arch/boot/pointers.hpp" -#include "arch/context_switching/interrupt_descriptor_table/segment_selector.hpp" -#include "arch/context_switching/main.hpp" -#include "arch/kernel/cpu/if.hpp" -#include "arch/kernel/cpu/segment_register.hpp" -#include "arch/memory/heap/bump_allocator.hpp" -#include "arch/memory/heap/global_heap_allocator.hpp" -#include "arch/memory/main.hpp" -#include "arch/memory/multiboot/reader.hpp" -#include "arch/stl/vector.hpp" -#include "arch/video/vga/text.hpp" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace teachos::arch::kernel { diff --git a/arch/x86_64/pre/src/user/main.cpp b/arch/x86_64/pre/src/user/main.cpp index 8b07e4a..10a17db 100644 --- a/arch/x86_64/pre/src/user/main.cpp +++ b/arch/x86_64/pre/src/user/main.cpp @@ -1,7 +1,7 @@ -#include "arch/user/main.hpp" +#include -#include "arch/context_switching/syscall/main.hpp" -#include "arch/memory/heap/global_heap_allocator.hpp" +#include +#include #include #include -- cgit v1.2.3