summaryrefslogtreecommitdiff
path: root/src/sys/include/sys/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include/sys/proc.h')
-rw-r--r--src/sys/include/sys/proc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sys/include/sys/proc.h b/src/sys/include/sys/proc.h
index d09e459..59d47ec 100644
--- a/src/sys/include/sys/proc.h
+++ b/src/sys/include/sys/proc.h
@@ -31,6 +31,7 @@
#define _SYS_PROC_H_
#include <sys/types.h>
+#include <sys/cdefs.h>
#include <sys/queue.h>
#include <machine/pcb.h> /* standard */
@@ -87,4 +88,17 @@ int md_proc_init(struct proc *procp, int flags);
*/
int md_set_ip(struct proc *procp, uintptr_t ip);
+/*
+ * Put the current process into a halt loop
+ * until the next one runs.
+ */
+__dead void md_proc_yield(void);
+
+/*
+ * Kick a process into a user context
+ *
+ * @procp: Process pointer
+ */
+__dead void md_proc_kick(struct proc *procp);
+
#endif /* !_SYS_PROC_H_ */