diff options
Diffstat (limited to 'include/arch/proc.h')
| -rw-r--r-- | include/arch/proc.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -49,6 +49,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. * |
