summaryrefslogtreecommitdiff
path: root/kernel/include
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-25 11:20:08 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-25 11:20:08 -0400
commit228366dcf517266097a77b846efe2c2364a10fa3 (patch)
tree619fba7611f01326a51bf9cb874a8d5459ce51f1 /kernel/include
parentfix physalloc edge case (diff)
downloadcomus-228366dcf517266097a77b846efe2c2364a10fa3.tar.gz
comus-228366dcf517266097a77b846efe2c2364a10fa3.tar.bz2
comus-228366dcf517266097a77b846efe2c2364a10fa3.zip
syscall_return fn
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/comus/cpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/include/comus/cpu.h b/kernel/include/comus/cpu.h
index ffc1782..8f485be 100644
--- a/kernel/include/comus/cpu.h
+++ b/kernel/include/comus/cpu.h
@@ -89,4 +89,10 @@ void cpu_feats(struct cpu_feat *feats);
*/
void cpu_print_regs(struct cpu_regs *regs);
+/**
+ * Return from a syscall handler back into userspace
+ */
+__attribute__((noreturn))
+void syscall_return(void);
+
#endif /* cpu.h */