Deleted Added
full compact
34c34
< __FBSDID("$FreeBSD: head/sys/i386/isa/npx.c 267767 2014-06-23 07:37:54Z kib $");
---
> __FBSDID("$FreeBSD: head/sys/i386/isa/npx.c 270850 2014-08-30 17:48:38Z jhb $");
763a764,767
> /*
> * Unconditionally save the current co-processor state across suspend and
> * resume.
> */
764a769,801
> npxsuspend(union savefpu *addr)
> {
> register_t cr0;
>
> if (!hw_float)
> return;
> if (PCPU_GET(fpcurthread) == NULL) {
> *addr = npx_initialstate;
> return;
> }
> cr0 = rcr0();
> clts();
> fpusave(addr);
> load_cr0(cr0);
> }
>
> void
> npxresume(union savefpu *addr)
> {
> register_t cr0;
>
> if (!hw_float)
> return;
>
> cr0 = rcr0();
> clts();
> npxinit();
> stop_emulating();
> fpurstor(addr);
> load_cr0(cr0);
> }
>
> void