diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-07-14 13:06:17 +0000 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-07-14 13:06:17 +0000 |
| commit | 3a2efa4ebc6b07a2304416262d5032a32dcddd8b (patch) | |
| tree | 665f5ec47b8625c8f9eabe673476b4467a87ab4e /arch | |
| parent | 116f9332a206767c45095950f09f7c7447b561cf (diff) | |
| download | teachos-3a2efa4ebc6b07a2304416262d5032a32dcddd8b.tar.xz teachos-3a2efa4ebc6b07a2304416262d5032a32dcddd8b.zip | |
x86_64: fix syscall error code reading
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/src/context_switching/syscall/main.cpp | 2 |
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}; } |
