aboutsummaryrefslogtreecommitdiff
path: root/include/arch/proc.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-22 13:19:50 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-22 13:19:50 +0300
commit66b39eb7ce9605cbb70defdca7f0eb144855ddcd (patch)
tree702bd65c46591052f40987c848b664a84057f7e7 /include/arch/proc.h
parent4168cca8124acdbd1866eb87810efe1cfe16903c (diff)
downloadkmi-66b39eb7ce9605cbb70defdca7f0eb144855ddcd.tar.gz
kmi-66b39eb7ce9605cbb70defdca7f0eb144855ddcd.zip
change sys_ret handling to always include id
Diffstat (limited to 'include/arch/proc.h')
-rw-r--r--include/arch/proc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/arch/proc.h b/include/arch/proc.h
index e2fae03..4afd6a9 100644
--- a/include/arch/proc.h
+++ b/include/arch/proc.h
@@ -20,14 +20,14 @@
#include <kmi/uapi.h>
/**
- * Attach argument data to thread.
+ * Attach argument data to thread, to be returned to userspace.
*
* @param t Thread that will run after return.
* @param n How many of the arguments to attach. Might micro-optimize some
* stuff.
* @param a Arguments to attach.
*/
-void set_args(struct tcb *t, size_t n, struct sys_ret a);
+void set_ret(struct tcb *t, size_t n, struct sys_ret a);
/**
* Get argument data attached to thread.
@@ -38,7 +38,7 @@ void set_args(struct tcb *t, size_t n, struct sys_ret a);
* @param t Thread to read data from.
* @return Args associated with thread.
*/
-struct sys_ret get_args(struct tcb *t);
+struct sys_ret get_ret(struct tcb *t);
/** \todo Should these be in arch/tcb.h or something? */