summaryrefslogtreecommitdiff
path: root/vm/vm_map.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2012-12-28 19:42:22 +0100
committerRichard Braun <rbraun@sceen.net>2012-12-28 19:45:37 +0100
commit3fa27e6bbd937c36ba845ed29b1a9369a8d97c9a (patch)
tree68fd407f2e74129990c6df7b51d5d740c9de8ef6 /vm/vm_map.c
parentb841232941239387ca81adaaa64f2887077dabd0 (diff)
kern/thread: make thread_current migration-safe
This change removes the current thread member from the run queues, and moves the responsibility of maintaining it to the architecture specific tcb module. For the x86 architecture, the TCB functions use a per-CPU pointer that can be read and set in a single instruction, making it interrupt-safe and thus migration-safe.
Diffstat (limited to 'vm/vm_map.c')
0 files changed, 0 insertions, 0 deletions