4949943c48
In _thread_switch, set current thread pointer in kse mailbox only after all registers copied out of thread mailbox, kernel will do upcall at trap time, if set current thread pointer before loading all registers from thread mailbox, at trap time, the thread mailbox data will be overwritten by kernel, result is junk data is loaded into CPU. |
||
---|---|---|
.. | ||
arch/i386/i386 | ||
sys | ||
test | ||
thread | ||
Makefile |