code: 9ferno

ref: c22d556f7fbaa24c0b3b8dd0ad31145d39768ce0
dir: /os/pc/fpsave.s/

View raw version
TEXT	FPsave(SB), 1, $0	/* save FPU environment without waiting */
	MOVL	fpu+0(FP), AX
	FSTENV	0(AX)
	RET
 
TEXT	FPrestore(SB), 1, $0	/* restore FPU environment without waiting */
	MOVL	fpu+0(FP), AX
	FLDENV	0(AX)
	RET