From a717296a2036cede5fccfff544513043a984d614 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 15 Sep 2022 19:21:14 +0300 Subject: change syscalls to take 5 params and return 6 + In total, a syscall is built up of 6 values, with the first being the syscall number. Symmetrically, the first value is now a status and the following five values return "values". This allows us to cram in more info into the ipc_* functions. The performance difference is absolutely minimal, at least from my testing in qemu. --- include/apos/tcb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/apos/tcb.h') diff --git a/include/apos/tcb.h b/include/apos/tcb.h index 8f8479b..9e63a9a 100644 --- a/include/apos/tcb.h +++ b/include/apos/tcb.h @@ -108,6 +108,9 @@ struct tcb { /** Address of callback function in servers. */ vm_t callback; + /** Address of signal callback. */ + vm_t signal; + /** Address of this thread's stack base. */ vm_t thread_stack; -- cgit v1.3