Changeset ea3fb2e in mainline
- Timestamp:
- 2005-05-12T18:02:15Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f2ffad4
- Parents:
- c884ef1
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/cpu.h
rc884ef1 rea3fb2e 48 48 int stepping; 49 49 struct tss *tss; 50 thread_t *fpu_owner;51 50 }; 52 51 -
arch/ia32/src/cpu/cpu.c
rc884ef1 rea3fb2e 93 93 { 94 94 CPU->arch.tss = tss_p; 95 CPU-> arch.fpu_owner=NULL;95 CPU->fpu_owner=NULL; 96 96 } 97 97 -
arch/ia32/src/fpu_context.c
rc884ef1 rea3fb2e 41 41 void fpu_context_restore(fpu_context_t *fctx) 42 42 { 43 if(THREAD==CPU-> arch.fpu_owner) {reset_TS_flag(); }44 else {set_TS_flag(); ( (CPU->arch).fpu_owner)->fpu_context_engaged=1;}43 if(THREAD==CPU->fpu_owner) {reset_TS_flag(); } 44 else {set_TS_flag(); (CPU->fpu_owner)->fpu_context_engaged=1;} 45 45 } 46 46 -
arch/ia32/src/interrupt.c
rc884ef1 rea3fb2e 89 89 { 90 90 91 if (( (CPU->arch).fpu_owner)!=NULL)91 if ((CPU->fpu_owner)!=NULL) 92 92 { 93 fpu_lazy_context_save(&(( (CPU->arch).fpu_owner)->saved_fpu_context));94 ( (CPU->arch).fpu_owner)->fpu_context_engaged=0; /* Enables migration */93 fpu_lazy_context_save(&((CPU->fpu_owner)->saved_fpu_context)); 94 (CPU->fpu_owner)->fpu_context_engaged=0; /* Enables migration */ 95 95 } 96 96 … … 98 98 else {fpu_init();THREAD->fpu_context_exists=1;} 99 99 100 (CPU->arch).fpu_owner=THREAD;100 CPU->fpu_owner=THREAD; 101 101 102 102 reset_TS_flag(); -
include/cpu.h
rc884ef1 rea3fb2e 67 67 68 68 cpu_arch_t arch; 69 70 thread_t *fpu_owner; 69 71 70 72 __u8 *stack; -
src/Makefile.config
rc884ef1 rea3fb2e 1 ARCH=ia321 #ARCH=ia32 2 2 #ARCH=mips 3 #ARCH=ia643 ARCH=ia64 4 4 #ARCH=powerpc 5 5 #ARCH=amd64 -
src/proc/scheduler.c
rc884ef1 rea3fb2e 270 270 271 271 spinlock_lock(&THREAD->cpu->lock); 272 if(THREAD->cpu-> arch.fpu_owner==THREAD) THREAD->cpu->arch.fpu_owner=NULL;272 if(THREAD->cpu->fpu_owner==THREAD) THREAD->cpu->fpu_owner=NULL; 273 273 spinlock_unlock(&THREAD->cpu->lock); 274 274
Note:
See TracChangeset
for help on using the changeset viewer.