summaryrefslogtreecommitdiff
path: root/sys/inc
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-19 22:57:27 -0500
committerIan Moffett <ian@osmora.org>2025-11-19 22:57:27 -0500
commitc478ba925b29990df2426ee06c2e629c0a2d7246 (patch)
tree9a11ee818603129f4241eb809e69b23fefb00df4 /sys/inc
parent7ea67beff9fdf4b57381b5c197f1f8c362bb9099 (diff)
kern/amd64: sched: Implement context switching
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/inc')
-rw-r--r--sys/inc/mu/process.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/inc/mu/process.h b/sys/inc/mu/process.h
index 2e69140..895ecf7 100644
--- a/sys/inc/mu/process.h
+++ b/sys/inc/mu/process.h
@@ -32,6 +32,7 @@
#include <sys/types.h>
#include <os/process.h>
+#include <md/frame.h> /* shared */
/*
* Initialize machine specific process fields
@@ -41,4 +42,11 @@
*/
int mu_process_init(struct process *process, uintptr_t ip, int flags);
+/*
+ * Context switch to the next process
+ *
+ * @tf: Trapframe
+ */
+void mu_process_switch(struct trapframe *tf);
+
#endif /* !_MU_PROCESS_H_ */