1 /*****************************************************************************
4 #include <proto/kernel.h>
6 AROS_UFH2(void, FpuRestoreContext,
7 AROS_UFHA(struct FpuContext *, fpu, A0)
8 AROS_UFHA(UWORD, nulloffset, D0))
24 Must be called in supervisor mode.
34 ******************************************************************************/
35 #include "aros/m68k/asm.h"
39 .globl FpuRestoreContext
42 tst.b 3*4 + 8*12(%a0,%d0.w)
44 fmovem.l %a0@,%fpcr/%fpsr/%fpiar
45 fmovem.x %a0@(3*4),%fp0-%fp7
46 0: frestore %a0@(3*4 + 8*12)