diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-05-27 12:41:50 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-05-27 12:41:50 +0000 |
| commit | 3e597ede8079883b3b9d48faf94b8a7bec2a2118 (patch) | |
| tree | 6f9c9a432405a5f14a84c5457b478eabf83723fa /arch/x86_64/src/context_switching/syscall | |
| parent | 8a6a9a3a159ce1b960721eb921b8e8d81b15b718 (diff) | |
| download | teachos-3e597ede8079883b3b9d48faf94b8a7bec2a2118.tar.xz teachos-3e597ede8079883b3b9d48faf94b8a7bec2a2118.zip | |
Readd text kernels ection with explanation
Diffstat (limited to 'arch/x86_64/src/context_switching/syscall')
| -rw-r--r-- | arch/x86_64/src/context_switching/syscall/syscall_handler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 af6d911..84dbe5f 100644 --- a/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp +++ b/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp @@ -108,9 +108,9 @@ namespace teachos::arch::context_switching::syscall : [input] "m"(rflags) : "memory"); - // Additionally call leave, because x86 allocates tack space for the internal variables. If we do not clean up this + // Additionally call leave, because x86 allocates stack space for the internal variables. If we do not clean up this // newly created stack frame the syscall instruction that landed in this syscall_handler, will never return to the - // method that originally called it, becuase the RIP has not been restored from the previous stack frame. + // method that originally called it, because the RIP has not been restored from the previous stack frame. asm volatile("leave\n" "sysretq"); } |
