Changeset e515167d in mainline for arch/ia32/src/fpu_context.c
- Timestamp:
- 2005-09-03T09:52:47Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be56c17
- Parents:
- 5a5ed25
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/fpu_context.c
r5a5ed25 re515167d 50 50 void fpu_lazy_context_save(fpu_context_t *fctx) 51 51 { 52 asm 53 ( 54 "push %%eax;" 55 "mov 0x8(%%esp),%%eax;" 56 "fnsave (%%eax);" 57 "pop %%eax;" 58 :"=m"(fctx) 59 : 60 :"eax" 61 ); 52 return; 53 __asm__ ( 54 "fnsave %0" 55 : "=m"(fctx) 56 ); 62 57 } 63 58 64 59 void fpu_lazy_context_restore(fpu_context_t *fctx) 65 60 { 66 asm 67 ( 68 "push %%eax;" 69 "mov 0x8(%%esp),%%eax;" 70 "frstor (%%eax);" 71 "pop %%eax;" 72 :"=m"(fctx) 73 : 74 :"eax" 75 ); 61 return; 62 __asm__ ( 63 "frstor %0" 64 : "=m"(fctx) 65 ); 76 66 } 77 67
Note:
See TracChangeset
for help on using the changeset viewer.