diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-16 12:42:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-16 12:42:25 -0400 |
commit | 3db86a30644d3eb3a964202dbfd7e91c432bda7b (patch) | |
tree | 43d16c68f59c252075231f84e179fbdb68f00318 /sys/include | |
parent | 51a3988ec0ea1de35e47a999a76c14df05737a34 (diff) |
kernel: syscall: Remove syscall_args.ret
It is better to just return a value within the syscall handler and
have that passed down to __syscall() like that
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/syscall.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h index 98a57f2..03eda0b 100644 --- a/sys/include/sys/syscall.h +++ b/sys/include/sys/syscall.h @@ -47,11 +47,10 @@ struct syscall_args { uint64_t arg0, arg1, arg2, arg3, arg4; uint64_t ip; uint64_t sp; - uint64_t ret; }; #if defined(_KERNEL) -extern void(*g_syscall_table[__MAX_SYSCALLS])(struct syscall_args *args); +extern uint64_t(*g_syscall_table[__MAX_SYSCALLS])(struct syscall_args *args); void __syscall(struct trapframe *tf); #endif |