aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-05-05 09:22:28 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-05-05 09:22:28 +0000
commit27d4fb90ebbc754e98ff68ce5bc7839a44ed99c1 (patch)
tree35ae65737a1fff4fc91920774a70dca1a4f2f4f6 /arch/x86_64/src
parentc1dff44858ebdb3cd5a49e84179796e44e7eb91c (diff)
downloadteachos-27d4fb90ebbc754e98ff68ce5bc7839a44ed99c1.tar.xz
teachos-27d4fb90ebbc754e98ff68ce5bc7839a44ed99c1.zip
Add comments to syscall components
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/context_switching/syscall/main.cpp2
-rw-r--r--arch/x86_64/src/context_switching/syscall/syscall_enable.cpp4
-rw-r--r--arch/x86_64/src/context_switching/syscall/syscall_handler.cpp2
-rw-r--r--arch/x86_64/src/user/main.cpp2
4 files changed, 5 insertions, 5 deletions
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