summaryrefslogtreecommitdiff
path: root/kern/work.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-01-23 22:32:17 +0100
committerRichard Braun <rbraun@sceen.net>2017-01-23 22:32:17 +0100
commite2415706c10859f3e9a3d40b9819e58b83661e4f (patch)
tree60d9cd8e3d508f44996859375600681775dd90d7 /kern/work.c
parent07c0d8a8099ef14014d536be073a017fc8d7652c (diff)
kern/thread: fix context switch
The context switch protocol is to let the dispatched thread restore its context, instead of preparing it before switching. In addition, add a compiler barrier to ensure no code leaks beyond the low level context switch. Finally, isolate context preparation in its own function.
Diffstat (limited to 'kern/work.c')
0 files changed, 0 insertions, 0 deletions