aboutsummaryrefslogtreecommitdiff
path: root/include/arch/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/proc.h')
-rw-r--r--include/arch/proc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/arch/proc.h b/include/arch/proc.h
index 493b168..c9b54db 100644
--- a/include/arch/proc.h
+++ b/include/arch/proc.h
@@ -113,4 +113,14 @@ void adjust_syscall(struct tcb *t);
*/
__noreturn void run_init(struct tcb *t, void *fdt);
+/**
+ * Return to userspace fast.
+ * Doesn't load registers besides arguments.
+ * Mainly for do_ipc().
+ * Note that this skips canary checking,
+ * but at least do_ipc() uses basically zero stack space
+ * so I'm not too worried.
+ */
+__noreturn void ret_userspace_fast();
+
#endif /* KMI_ARCH_PROC_H */