Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 90 → Rev 89

/SPARTAN/trunk/arch/ia32/src/fpu_context.c
51,30 → 51,28
 
void fpu_lazy_context_save(fpu_context_t *fctx)
{
asm
(
"push %%eax;"
"mov 0x8(%%esp),%%eax;"
"fnsave (%%eax);"
"pop %%eax;"
:"=m"(fctx)
:
:"eax"
);
printf("");
asm(
"mov %0,%%eax;"
"fxsave (%%eax);"
:"=m"(fctx)
:
:"eax"
);
printf("");
}
 
void fpu_lazy_context_restore(fpu_context_t *fctx)
{
asm
(
"push %%eax;"
"mov 0x8(%%esp),%%eax;"
"frstor (%%eax);"
"pop %%eax;"
:"=m"(fctx)
:
:"eax"
);
printf("");
asm(
"mov %0,%%eax;"
"fxrstor (%%eax);"
:"=m"(fctx)
:
:"eax"
);
printf("");
}
 
void fpu_init(void)