/SPARTAN/trunk/arch/ia32/src/fpu_context.c |
---|
51,26 → 51,28 |
void fpu_lazy_context_save(fpu_context_t *fctx) |
{ |
printf(""); |
asm( |
"mov %0,%%eax;" |
"fxsave (%%eax);" |
"ret;" |
:"=m"(fctx) |
: |
:"%eax" |
:"eax" |
); |
printf(""); |
} |
void fpu_lazy_context_restore(fpu_context_t *fctx) |
{ |
printf(""); |
asm( |
"mov %0,%%eax;" |
"fxrstor (%%eax);" |
"ret;" |
:"=m"(fctx) |
: |
:"%eax" |
:"eax" |
); |
printf(""); |
} |
void fpu_init(void) |