Changeset 9c926f3 in mainline
- Timestamp:
- 2005-05-08T23:47:00Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 79f1f38f
- Parents:
- 0c47db1
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/fpu_context.c
r0c47db1 r9c926f3 31 31 #include <fpu_context.h> 32 32 33 void fpu_context_save( void)33 void fpu_context_save(fpu_context_t *fctx) 34 34 { 35 35 } 36 36 37 37 38 void fpu_context_restore( )38 void fpu_context_restore(fpu_context_t *fctx) 39 39 { 40 40 } 41 41 42 42 43 void fpu_lazy_context_save( )43 void fpu_lazy_context_save(fpu_context_t *fctx) 44 44 { 45 45 /* … … 52 52 } 53 53 54 void fpu_lazy_context_restore( )54 void fpu_lazy_context_restore(fpu_context_t *fctx) 55 55 { 56 56 /* -
arch/ia64/src/fpu_context.c
r0c47db1 r9c926f3 31 31 #include <fpu_context.h> 32 32 33 void fpu_context_save( void)33 void fpu_context_save(fpu_context_t *fctx) 34 34 { 35 35 } 36 36 37 37 38 void fpu_context_restore( )38 void fpu_context_restore(fpu_context_t *fctx) 39 39 { 40 40 } 41 41 42 42 43 void fpu_lazy_context_save( )43 void fpu_lazy_context_save(fpu_context_t *fctx) 44 44 { 45 /*46 pushl %eax47 mov 8(%esp),%eax48 fxsave (%eax)49 popl %eax50 ret51 */52 45 } 53 46 54 void fpu_lazy_context_restore( )47 void fpu_lazy_context_restore(fpu_context_t *fctx) 55 48 { 56 /*57 pushl %eax58 mov 8(%esp),%eax59 fxrstor (%eax)60 popl %eax61 ret62 */63 49 } -
arch/mips/src/fpu_context.c
r0c47db1 r9c926f3 31 31 #include <fpu_context.h> 32 32 33 void fpu_context_save( void)33 void fpu_context_save(fpu_context_t *fctx) 34 34 { 35 35 } 36 36 37 37 38 void fpu_context_restore( )38 void fpu_context_restore(fpu_context_t *fctx) 39 39 { 40 40 } 41 41 42 42 43 void fpu_lazy_context_save( )43 void fpu_lazy_context_save(fpu_context_t *fctx) 44 44 { 45 /*46 pushl %eax47 mov 8(%esp),%eax48 fxsave (%eax)49 popl %eax50 ret51 */52 45 } 53 46 54 void fpu_lazy_context_restore( )47 void fpu_lazy_context_restore(fpu_context_t *fctx) 55 48 { 56 /*57 pushl %eax58 mov 8(%esp),%eax59 fxrstor (%eax)60 popl %eax61 ret62 */63 49 } -
arch/powerpc/src/fpu_context.c
r0c47db1 r9c926f3 31 31 #include <fpu_context.h> 32 32 33 void fpu_context_save( void)33 void fpu_context_save(fpu_context_t *fctx) 34 34 { 35 35 } 36 36 37 37 38 void fpu_context_restore( )38 void fpu_context_restore(fpu_context_t *fctx) 39 39 { 40 40 } 41 41 42 42 43 void fpu_lazy_context_save( )43 void fpu_lazy_context_save(fpu_context_t *fctx) 44 44 { 45 /*46 pushl %eax47 mov 8(%esp),%eax48 fxsave (%eax)49 popl %eax50 ret51 */52 45 } 53 46 54 void fpu_lazy_context_restore( )47 void fpu_lazy_context_restore(fpu_context_t *fctx) 55 48 { 56 /* 57 pushl %eax 58 mov 8(%esp),%eax 59 fxrstor (%eax) 60 popl %eax 61 ret 62 */ 49 63 50 } -
include/fpu_context.h
r0c47db1 r9c926f3 5 5 6 6 #include <arch/fpu_context.h> 7 #include <typedefs.h> 7 8 8 9 extern void fpu_context_save(void); 10 extern void fpu_context_restore(void); 11 extern void fpu_lazy_context_save(void); 12 extern void fpu_lazy_context_restore(void); 9 extern void fpu_context_save(fpu_context_t *); 10 extern void fpu_context_restore(fpu_context_t *); 11 extern void fpu_lazy_context_save(fpu_context_t *); 12 extern void fpu_lazy_context_restore(fpu_context_t *); 13 13 14 14 -
include/proc/thread.h
r0c47db1 r9c926f3 74 74 context_t saved_context; 75 75 context_t sleep_timeout_context; 76 fpu_context_t saved_fpu ;76 fpu_context_t saved_fpu_context; 77 77 78 78 -
src/proc/scheduler.c
r0c47db1 r9c926f3 58 58 { 59 59 before_thread_runs_arch(); 60 fpu_context_restore( );60 fpu_context_restore(&(THREAD->saved_fpu_context)); 61 61 } 62 62 … … 205 205 if (THREAD) { 206 206 spinlock_lock(&THREAD->lock); 207 fpu_context_save(&(THREAD->saved_fpu_context)); 207 208 if (!context_save(&THREAD->saved_context)) { 208 209 /*
Note:
See TracChangeset
for help on using the changeset viewer.