diff options
author | Richard Braun <rbraun@sceen.net> | 2017-01-23 22:32:17 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-01-23 22:32:17 +0100 |
commit | e2415706c10859f3e9a3d40b9819e58b83661e4f (patch) | |
tree | 60d9cd8e3d508f44996859375600681775dd90d7 /kern/work.c | |
parent | 07c0d8a8099ef14014d536be073a017fc8d7652c (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