From 27d4fb90ebbc754e98ff68ce5bc7839a44ed99c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matteo=20Gm=C3=BCr?= Date: Mon, 5 May 2025 09:22:28 +0000 Subject: Add comments to syscall components --- arch/x86_64/src/context_switching/syscall/main.cpp | 2 +- arch/x86_64/src/context_switching/syscall/syscall_enable.cpp | 4 ++-- arch/x86_64/src/context_switching/syscall/syscall_handler.cpp | 2 +- arch/x86_64/src/user/main.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'arch/x86_64/src') diff --git a/arch/x86_64/src/context_switching/syscall/main.cpp b/arch/x86_64/src/context_switching/syscall/main.cpp index a226e23..93fc613 100644 --- a/arch/x86_64/src/context_switching/syscall/main.cpp +++ b/arch/x86_64/src/context_switching/syscall/main.cpp @@ -23,4 +23,4 @@ namespace teachos::arch::context_switching::syscall return error; } -} // namespace teachos::arch::context_switching::syscall \ No newline at end of file +} // namespace teachos::arch::context_switching::syscall diff --git a/arch/x86_64/src/context_switching/syscall/syscall_enable.cpp b/arch/x86_64/src/context_switching/syscall/syscall_enable.cpp index e6265d3..3c43336 100644 --- a/arch/x86_64/src/context_switching/syscall/syscall_enable.cpp +++ b/arch/x86_64/src/context_switching/syscall/syscall_enable.cpp @@ -8,7 +8,7 @@ namespace teachos::arch::context_switching::syscall { namespace { - constexpr interrupt_descriptor_table::segment_selector KERNEL_CODE_SEGMENT_SELECTOR{ + interrupt_descriptor_table::segment_selector constexpr KERNEL_CODE_SEGMENT_SELECTOR{ 1U, interrupt_descriptor_table::segment_selector::REQUEST_LEVEL_KERNEL}; auto constexpr IA32_STAR_ADDRESS = 0xC0000081; @@ -29,4 +29,4 @@ namespace teachos::arch::context_switching::syscall kernel::cpu::set_efer_bit(kernel::cpu::efer_flags::SCE); } -} // namespace teachos::arch::context_switching::syscall \ No newline at end of file +} // namespace teachos::arch::context_switching::syscall diff --git a/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp b/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp index fbfecc0..da9eb1b 100644 --- a/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp +++ b/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp @@ -72,4 +72,4 @@ namespace teachos::arch::context_switching::syscall "sysretq"); } -} // namespace teachos::arch::context_switching::syscall \ No newline at end of file +} // namespace teachos::arch::context_switching::syscall diff --git a/arch/x86_64/src/user/main.cpp b/arch/x86_64/src/user/main.cpp index 8ce21ba..1d56d2e 100644 --- a/arch/x86_64/src/user/main.cpp +++ b/arch/x86_64/src/user/main.cpp @@ -32,4 +32,4 @@ namespace teachos::arch::user video::vga::text::common_attributes::green_on_black); } } -} // namespace teachos::arch::user \ No newline at end of file +} // namespace teachos::arch::user -- cgit v1.2.3