aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-07-14 13:06:17 +0000
committerFelix Morgner <felix.morgner@ost.ch>2025-07-14 13:06:17 +0000
commit3a2efa4ebc6b07a2304416262d5032a32dcddd8b (patch)
tree665f5ec47b8625c8f9eabe673476b4467a87ab4e /arch/x86_64/src
parent116f9332a206767c45095950f09f7c7447b561cf (diff)
downloadteachos-3a2efa4ebc6b07a2304416262d5032a32dcddd8b.tar.xz
teachos-3a2efa4ebc6b07a2304416262d5032a32dcddd8b.zip
x86_64: fix syscall error code reading
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/context_switching/syscall/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/context_switching/syscall/main.cpp b/arch/x86_64/src/context_switching/syscall/main.cpp
index e291c10..b4ab468 100644
--- a/arch/x86_64/src/context_switching/syscall/main.cpp
+++ b/arch/x86_64/src/context_switching/syscall/main.cpp
@@ -27,7 +27,7 @@ namespace teachos::arch::context_switching::syscall
asm volatile("mov %%r9, %[output]" : [output] "=m"(values.arg_5));
error error_code{};
- asm volatile("mov %%rax, %[output]" : [output] "=m"(error_code));
+ asm volatile("mov %%al, %[output]" : [output] "=m"(error_code));
return {error_code, values};
}