Changeset aa4e8d7 in mainline
- Timestamp:
- 2005-05-08T13:59:59Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be50915
- Parents:
- e9b9e12
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/context.h
re9b9e12 raa4e8d7 47 47 __u32 ebp; 48 48 __u32 pri; 49 struct fpu_context *fpu;50 49 } __attribute__ ((packed)); 51 50 -
arch/ia32/src/context.s
re9b9e12 raa4e8d7 31 31 .global context_save 32 32 .global context_restore 33 33 34 34 35 # … … 74 75 xorl %eax,%eax # context_restore returns 0 75 76 ret 77 78 79 .global fpu_context_save 80 fpu_context_save: 81 ret 82 .global fpu_context_restore 83 fpu_context_restore: 84 ret 85 86 .global fpu_lazy_context_save 87 mov 4(%esp),%eax; 88 fxsave (%eax) 89 xor %eax,%eax; 90 ret; 91 .global fpu_lazy_context_restore 92 mov 4(%esp),%eax; 93 fxrstor (%eax) 94 xor %eax,%eax; 95 ret; 96 -
include/proc/thread.h
re9b9e12 raa4e8d7 73 73 context_t saved_context; 74 74 context_t sleep_timeout_context; 75 75 fpu_context_t saved_fpu; 76 77 76 78 waitq_t *sleep_queue; 77 79 timeout_t sleep_timeout; -
src/Makefile.config
re9b9e12 raa4e8d7 1 #ARCH=ia321 ARCH=ia32 2 2 #ARCH=mips 3 ARCH=ia643 #ARCH=ia64 4 4 #ARCH=powerpc 5 5 #ARCH=amd64 -
src/main/main.c
re9b9e12 raa4e8d7 92 92 config.kernel_size = hardcoded_ktext_size + hardcoded_kdata_size + CONFIG_HEAP_SIZE + CONFIG_STACK_SIZE; 93 93 94 context_save(&ctx); 94 context_save(&ctx); /* There is no nead to save FPU context */ 95 95 ctx.sp = config.base + config.kernel_size - 8; 96 96 ctx.pc = (__address) main_bsp_separated_stack; 97 context_restore(&ctx); 97 context_restore(&ctx); /* There is no nead to load FPU context */ 98 98 /* not reached */ 99 99 } … … 193 193 CPU->saved_context.sp = (__address) &CPU->stack[CPU_STACK_SIZE-8]; 194 194 CPU->saved_context.pc = (__address) main_ap_separated_stack; 195 context_restore(&CPU->saved_context); 195 context_restore(&CPU->saved_context); /* There is no nead to load FPU context */ 196 196 /* not reached */ 197 197 }
Note:
See TracChangeset
for help on using the changeset viewer.