aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/context_switching/syscall_handler.hpp1
-rw-r--r--arch/x86_64/include/arch/kernel/cpu/segment_register.hpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/include/arch/context_switching/syscall_handler.hpp b/arch/x86_64/include/arch/context_switching/syscall_handler.hpp
index 8583051..5a46924 100644
--- a/arch/x86_64/include/arch/context_switching/syscall_handler.hpp
+++ b/arch/x86_64/include/arch/context_switching/syscall_handler.hpp
@@ -3,6 +3,7 @@
namespace teachos::arch::context_switching
{
+ [[gnu::naked]]
auto syscall_handler() -> void;
}
#endif \ No newline at end of file
diff --git a/arch/x86_64/include/arch/kernel/cpu/segment_register.hpp b/arch/x86_64/include/arch/kernel/cpu/segment_register.hpp
index 6a2ca3e..36ada23 100644
--- a/arch/x86_64/include/arch/kernel/cpu/segment_register.hpp
+++ b/arch/x86_64/include/arch/kernel/cpu/segment_register.hpp
@@ -86,6 +86,7 @@ namespace teachos::arch::kernel::cpu
* @param code_segment Code Segment that should be loaded into the CS register.
* @param address Function that we want to call in the new context created by the given Code Segment.
*/
+ [[gnu::naked]]
auto set_code_segment_register(context_switching::interrupt_descriptor_table::segment_selector data_segment,
context_switching::interrupt_descriptor_table::segment_selector code_segment,
uint64_t address) -> void;