[PATCH] stack usage of pmap_activate in cpu_switch()
Jayachandran C.
c.jayachandran at gmail.com
Sat Feb 26 11:27:41 UTC 2011
In the cpu_switch code, pmap_activate is called with the stack of the
old thread even after the thread was switched out. This seems to be
the cause of a crash I see here (on XLP) under stress.
Seems like a bug to me, any thoughts?
The attached patch restores the SP from the new thread from its PCB
before calling pmap_activate().
JC.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swtch.S.diff
Type: application/octet-stream
Size: 1739 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20110226/d274c0a7/swtch.S.obj
More information about the freebsd-mips
mailing list