diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-12 16:41:36 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-12 16:41:36 +0200 |
| commit | 41ead8de77963bae907375c1bb115dad3315f46b (patch) | |
| tree | 4b364db137bd3bea69853f15329292af7662897d /include/arch/proc.h | |
| parent | 1d37792fb7a47135f0e7b7fc245e83bb1d8fc496 (diff) | |
| download | kmi-41ead8de77963bae907375c1bb115dad3315f46b.tar.gz kmi-41ead8de77963bae907375c1bb115dad3315f46b.zip | |
initial rpc implementations
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. * |
