Copies out current_tf to pcpui
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 19 Nov 2010 02:30:02 +0000 (18:30 -0800)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:56 +0000 (17:35 -0700)
commit07c915a68068e6915e33fbd9a602e4d952c1d6d1
treecc5ca739e6dcc0cc62a539691182f78a3e9f6497
parentd143eb391783a0f8181b6695d0697bb3c85a889a
Copies out current_tf to pcpui

This is in response to a pretty bad bug/design issue.  The documentation
has a lot about it and about what to expect in future patches.  The
TODOs and checks in kthread.c will go away in a couple patches.

Ultimately, we want to avoid copying the TF multiple times, but that's
asm for another day.  Recommend writing the location of actual_tf at the
top of the stacktop (avoid computing it, simplify the code, etc).

Note: this compiles on sparc, and might actually work!  Hard to tell,
with that glibc-ish bug floating around.
Documentation/kthreads.txt
kern/arch/i686/apic.h
kern/arch/i686/trap.c
kern/arch/sparc/trap.c
kern/include/process.h
kern/include/smp.h
kern/src/kthread.c