Changeset f76fed4 in mainline for arch/amd64/src/fpu_context.c
- Timestamp:
- 2006-03-03T00:20:31Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 09c18f7
- Parents:
- ddcf365
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/fpu_context.c
rddcf365 rf76fed4 35 35 void fpu_context_save(fpu_context_t *fctx) 36 36 { 37 /* Align on 16-byte boundary */38 if (((__u64)fctx) & 0xf)39 fctx = (fpu_context_t *)((((__u64)fctx) | 0xf) + 1);40 41 37 __asm__ volatile ( 42 38 "fxsave %0" … … 48 44 void fpu_context_restore(fpu_context_t *fctx) 49 45 { 50 /* Align on 16-byte boundary */51 if (((__u64)fctx) & 0xf)52 fctx = (fpu_context_t *)((((__u64)fctx) | 0xf) + 1);53 46 __asm__ volatile ( 54 47 "fxrstor %0" … … 57 50 } 58 51 59 void fpu_init( fpu_context_t *fctx)52 void fpu_init() 60 53 { 61 54 /* TODO: Zero all SSE, MMX etc. registers */
Note:
See TracChangeset
for help on using the changeset viewer.