Changeset 6de2480e in mainline for arch/ia32/src/fpu_context.c
- Timestamp:
- 2005-05-19T11:55:15Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3ebb64
- Parents:
- 1eee8383
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/fpu_context.c
r1eee8383 r6de2480e 52 52 void fpu_lazy_context_save(fpu_context_t *fctx) 53 53 { 54 printf(""); 54 55 asm( 55 56 "mov %0,%%eax;" 56 57 "fxsave (%%eax);" 57 "ret;"58 58 :"=m"(fctx) 59 59 : 60 :" %eax"60 :"eax" 61 61 ); 62 printf(""); 62 63 } 63 64 64 65 void fpu_lazy_context_restore(fpu_context_t *fctx) 65 66 { 67 printf(""); 66 68 asm( 67 69 "mov %0,%%eax;" 68 70 "fxrstor (%%eax);" 69 "ret;"70 71 :"=m"(fctx) 71 72 : 72 :" %eax"73 :"eax" 73 74 ); 75 printf(""); 74 76 } 75 77
Note:
See TracChangeset
for help on using the changeset viewer.