diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-13 21:40:06 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-13 21:48:21 -0400 |
commit | 39d4aa3a106f898d09b98e41ef44fb4891eda1ce (patch) | |
tree | c4c94111dbd7e511877e692a693c8a2be9cc041f /sys/kern | |
parent | fc9c7bab5bb64dd2242e9e9dff98060d64af2a32 (diff) |
kernel/amd64: machdep: Add context switch helper
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_sched.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_sched.c b/sys/kern/kern_sched.c index f8f09c4..bc96146 100644 --- a/sys/kern/kern_sched.c +++ b/sys/kern/kern_sched.c @@ -311,6 +311,10 @@ sched_context_switch(struct trapframe *tf) sched_enqueue_td(td); } + /* Do architecture specific context switch logic */ + processor_switch_to(td, next_td); + + /* Done, switch out our vas and oneshot */ pmap_switch_vas(vm_get_ctx(), next_td->addrsp); sched_oneshot(); } |