]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use critical sections instead of disabling local interrupts to ensure
authorkib <kib@FreeBSD.org>
Tue, 15 Jun 2010 09:19:33 +0000 (09:19 +0000)
committerkib <kib@FreeBSD.org>
Tue, 15 Jun 2010 09:19:33 +0000 (09:19 +0000)
commit4bbbb1180b9ca7b90da74bca63caaa8a8ff6c55d
treed6eee44b780e01ab18c1ed52cbd0c1f0c12f0e3c
parent08e7de5c207bbe3688a55abd229f75e222585fb5
Use critical sections instead of disabling local interrupts to ensure
the consistency between PCPU fpcurthread and the state of the FPU.

Explicitely assert that the calling conventions for fpudrop() are
adhered too. In cpu_thread_exit(), add missed critical section entrance.

Reviewed by: bde
Tested by: pho
MFC after: 1 month
sys/amd64/amd64/fpu.c
sys/amd64/amd64/machdep.c
sys/amd64/amd64/vm_machdep.c