]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/commit
MFC: r227539
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 19 Nov 2011 13:04:17 +0000 (13:04 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 19 Nov 2011 13:04:17 +0000 (13:04 +0000)
commitfae1c3c350593cb218030a55f8d650439e4003d6
tree583072c54f33ee26281acea0c143b0c3528c21c8
parent9787b8afc5f471e5bc889a0624cd18c397ae5611
MFC: r227539

Define curthread as an inline function that loads the thread pointer
directly from g7, the pcpu pointer. This guarantees correct behavior
when the thread migrates to a different CPU.
Commit message stolen from r205431. Additional testing by Peter Jeremy.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/releng/9.0@227715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/sparc64/include/pcpu.h