aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/context_switching
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/context_switching')
-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
3 files changed, 4 insertions, 4 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