FreeBSD/sys/arm/arm/vfp.c
/*
 * The current thread is dying.  If the state currently in the hardware belongs
 * to the current thread, set fpcurthread to NULL to indicate that the VFP
 * hardware state does not belong to any thread.  If the VFP is on, turn it off.
 * Called only from cpu_throw(), so we don't have to worry about a context
 * switch here.
 */
The current thread is dying.  If the state currently in the hardware belongs
to the current thread, set fpcurthread to NULL to indicate that the VFP
hardware state does not belong to any thread.  If the VFP is on, turn it off.
Called only from cpu_throw(), so we don't have to worry about a context
switch here.
The current thread is dying . If the state currently in the hardware belongs to the current thread set fpcurthread to NULL to indicate that the VFP hardware state does not belong to any thread . If the VFP is on turn it off . Called only from cpu_throw () so we don ' t have to worry about a context switch here .
void
vfp_discard(struct thread *td)
{
	u_int tmp;
	if (PCPU_GET(fpcurthread) == td)
		PCPU_SET(fpcurthread, NULL);
	tmp = fmrx(fpexc);
	if (tmp & VFPEXC_EN)
		fmxr(fpexc, tmp & ~VFPEXC_EN);
}
void vfp_discard ( struct thread * td ) { u_int tmp ; if ( PCPU_GET ( fpcurthread ) == td ) PCPU_SET ( fpcurthread , NULL ) ; tmp = fmrx ( fpexc ) ; if ( tmp & VFPEXC_EN ) fmxr ( fpexc , tmp & ~ VFPEXC_EN ) ; }
The current thread is dying.
The current thread is dying .