Changeset b49f4ae in mainline for arch/amd64/src/fpu_context.c
- Timestamp:
- 2005-09-06T09:56:26Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50a4e25
- Parents:
- a5d1331
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/fpu_context.c
ra5d1331 rb49f4ae 34 34 void fpu_context_save(fpu_context_t *fctx) 35 35 { 36 } 37 38 void fpu_context_restore(fpu_context_t *fctx) 39 { 40 if(THREAD==CPU->fpu_owner) 41 reset_TS_flag(); 42 else 43 set_TS_flag(); 44 } 45 46 47 void fpu_lazy_context_save(fpu_context_t *fctx) 48 { 49 /* TODO: We need malloc that allocates on 16-byte boundary !! */ 36 /* Align on 16-byte boundary */ 50 37 if (((__u64)fctx) & 0xf) 51 38 fctx = (fpu_context_t *)((((__u64)fctx) | 0xf) + 1); … … 57 44 } 58 45 59 void fpu_ lazy_context_restore(fpu_context_t *fctx)46 void fpu_context_restore(fpu_context_t *fctx) 60 47 { 61 48 /* TODO: We need malloc that allocates on 16-byte boundary !! */
Note:
See TracChangeset
for help on using the changeset viewer.