summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2024-07-27 19:59:37 +0200
committerdzwdz2024-07-27 20:00:29 +0200
commitfe6fbfa07aa8326926049cf62560d940bc7305c0 (patch)
treee97060cb23c8a5a227fe615b97d9213d5fc2ad1e /src/kernel/proc.h
parent58514d351e1f0e8871f534422cf025109ddbb844 (diff)
kernel: don't use pointer types for registers, add proc_savereturn
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 96cd8ba..a371e04 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -131,6 +131,9 @@ _Noreturn void proc_switch_any(void);
Proc *proc_next(Proc *root, Proc *p);
+/** Saves a return value. */
+void proc_savereturn(Proc *p, uint64_t val);
+
void proc_setstate(Proc *, enum proc_state);
size_t pcpy_to(Proc *p, __user void *dst, const void *src, size_t len);