From 41ead8de77963bae907375c1bb115dad3315f46b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 12 Nov 2022 16:41:36 +0200 Subject: initial rpc implementations --- include/arch/proc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/arch') diff --git a/include/arch/proc.h b/include/arch/proc.h index e2b99ea..6a2c036 100644 --- a/include/arch/proc.h +++ b/include/arch/proc.h @@ -48,6 +48,14 @@ struct sys_ret get_args(struct tcb *t); */ void set_thread(struct tcb *t); +/** + * Get current userspace stack. + * + * @param t Thread whose stack to query. + * @return Current stack address. + */ +vm_t get_stack(struct tcb *t); + /** * Copy registers from tcb save area to address \p p. * Intended to be used for copying thread state to rpc stack. -- cgit v1.3