change errno to error to avoid confusion
This commit is contained in:
+2
-1
@@ -8,6 +8,7 @@
|
||||
#include <bits/sched.h>
|
||||
|
||||
// Declare all syscalls.
|
||||
#define SYSCALL_DECLARE(number, name, num_args) extern void sys_##name(...);
|
||||
#include <zinnia/syscall_list.inc>
|
||||
#undef SYSCALL_DECLARE
|
||||
|
||||
@@ -43,5 +44,5 @@ void syscall_dispatch(struct arch_context* ctx) {
|
||||
}
|
||||
|
||||
ctx->ARCH_CTX_RET0 = ret.value;
|
||||
ctx->ARCH_CTX_RET1 = ret.errno;
|
||||
ctx->ARCH_CTX_RET1 = ret.error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user