commit 5bd8ac0c45b2fcbe0d8d536693129823559c2a16
parent d310b6b9fb6a6310f566a854538a05f269a27080
Author: Russ Cox <rsc@swtch.com>
Date: Sat, 28 Jun 2008 21:37:44 -0400
9vx: use fnsave, not fsave, to avoid triggering FPU fault
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/9vx/stub.c b/src/9vx/stub.c
@@ -204,7 +204,7 @@ fpinit(void)
void
fpsave(FPsave *s)
{
- asm volatile("fsave 0(%%eax)\n" : : "a" (s) : "memory");
+ asm volatile("fnsave 0(%%eax)\n" : : "a" (s) : "memory");
if(tracefp)
iprint("fpsave: %#x %#x %#x %#ux\n", s->control, s->status, s->tag, s->pc);
}