aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-05-03 09:51:15 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2025-05-03 09:51:15 +0000
commit4b4ca98376cb4bdf97fd910b7e2ca78628b0a8ee (patch)
treeccea3ef26da05e185da55657994a79c05980e371
parent5a8c9d2f2e4a3d2810f81c35070c6ef0926cfdd1 (diff)
downloadteachos-4b4ca98376cb4bdf97fd910b7e2ca78628b0a8ee.tar.xz
teachos-4b4ca98376cb4bdf97fd910b7e2ca78628b0a8ee.zip
rename syscall result variable
-rw-r--r--arch/x86_64/src/context_switching/syscall/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/src/context_switching/syscall/main.cpp b/arch/x86_64/src/context_switching/syscall/main.cpp
index e90f503..9ac63ce 100644
--- a/arch/x86_64/src/context_switching/syscall/main.cpp
+++ b/arch/x86_64/src/context_switching/syscall/main.cpp
@@ -49,9 +49,9 @@ namespace teachos::arch::context_switching::syscall
asm volatile("syscall");
- uint64_t result{};
- asm volatile("mov %%rax, %[output]" : [output] "=m"(result));
- return result;
+ uint64_t error{};
+ asm volatile("mov %%rax, %[output]" : [output] "=m"(error));
+ return error;
}
} // namespace teachos::arch::context_switching::syscall \ No newline at end of file