FreeBSD/sys/i386/isa/npx.c
/*
 * Unconditionally save the current co-processor state across suspend and
 * resume.
 */
Unconditionally save the current co-processor state across suspend and
resume.
Unconditionally save the current co - processor state across suspend and resume .
void
npxsuspend(union savefpu *addr)
{
	register_t cr0;
	if (!hw_float)
		return;
	if (PCPU_GET(fpcurthread) == NULL) {
		bcopy(npx_initialstate, addr, cpu_max_ext_state_size);
		return;
	}
	cr0 = rcr0();
	stop_emulating();
	fpusave(addr);
	load_cr0(cr0);
}
void npxsuspend ( union savefpu * addr ) { register_t cr0 ; if ( ! hw_float ) return ; if ( PCPU_GET ( fpcurthread ) == NULL ) { bcopy ( npx_initialstate , addr , cpu_max_ext_state_size ) ; return ; } cr0 = rcr0 ( ) ; stop_emulating ( ) ; fpusave ( addr ) ; load_cr0 ( cr0 ) ; }
Unconditionally save the current co-processor state across suspend and
 resume.
Unconditionally save the current co - processor state across suspend and resume .