summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-13 21:40:06 -0400
committerIan Moffett <ian@osmora.org>2024-03-13 21:48:21 -0400
commit39d4aa3a106f898d09b98e41ef44fb4891eda1ce (patch)
treec4c94111dbd7e511877e692a693c8a2be9cc041f /sys/include
parentfc9c7bab5bb64dd2242e9e9dff98060d64af2a32 (diff)
kernel/amd64: machdep: Add context switch helper
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/machdep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/sys/machdep.h b/sys/include/sys/machdep.h
index 151d5f8..b6edf14 100644
--- a/sys/include/sys/machdep.h
+++ b/sys/include/sys/machdep.h
@@ -39,6 +39,7 @@
#define MAXCPUS 32
int processor_init_pcb(struct proc *proc);
+void processor_switch_to(struct proc *old_td, struct proc *new_td);
void processor_init(void);
void processor_halt(void);
void intr_mask(void);