Changeset 2277e03 in mainline
- Timestamp:
- 2013-03-07T22:53:05Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 850235d, e4a1497
- Parents:
- 31399f3
- Location:
- kernel/arch
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/arm32.c
r31399f3 r2277e03 138 138 uint8_t *stck; 139 139 140 stck = &THREAD->kstack[STACK_SIZE - SP_DELTA];140 stck = &THREAD->kstack[STACK_SIZE]; 141 141 supervisor_sp = (uintptr_t) stck; 142 142 } -
kernel/arch/ia64/include/istate.h
r31399f3 r2277e03 106 106 uint64_t in5; 107 107 uint64_t in6; 108 109 uint64_t alignment; 108 110 } istate_t; 109 111 -
kernel/arch/ia64/src/ivt.S
r31399f3 r2277e03 35 35 #define FRS_TO_SAVE 30 36 36 #define STACK_ITEMS (21 + FRS_TO_SAVE * 2) 37 #define STACK_FRAME_SIZE ALIGN_UP((STACK_ITEMS *STACK_ITEM_SIZE) + STACK_SCRATCH_AREA_SIZE, STACK_ALIGNMENT)37 #define STACK_FRAME_SIZE ALIGN_UP((STACK_ITEMS * STACK_ITEM_SIZE) + STACK_SCRATCH_AREA_SIZE, STACK_ALIGNMENT) 38 38 39 39 #if (STACK_ITEMS % 2 == 0) -
kernel/arch/ia64/src/proc/scheduler.c
r31399f3 r2277e03 90 90 : 91 91 : "r" (&THREAD->kstack[STACK_SIZE / 2]), 92 "r" (&THREAD->kstack[STACK_SIZE / 2 - SP_DELTA])92 "r" (&THREAD->kstack[STACK_SIZE / 2]) 93 93 ); 94 94 } -
kernel/arch/mips32/src/mips32.c
r31399f3 r2277e03 228 228 { 229 229 supervisor_sp = 230 (uintptr_t) &THREAD->kstack[STACK_SIZE - SP_DELTA];230 (uintptr_t) &THREAD->kstack[STACK_SIZE]; 231 231 } 232 232 -
kernel/arch/mips64/src/mips64.c
r31399f3 r2277e03 205 205 { 206 206 supervisor_sp = 207 (uintptr_t) &THREAD->kstack[STACK_SIZE - SP_DELTA];207 (uintptr_t) &THREAD->kstack[STACK_SIZE]; 208 208 } 209 209 -
kernel/arch/ppc32/src/proc/scheduler.c
r31399f3 r2277e03 55 55 asm volatile ( 56 56 "mtsprg0 %[ksp]\n" 57 :: [ksp] "r" (KA2PA(&THREAD->kstack[STACK_SIZE - SP_DELTA]))57 :: [ksp] "r" (KA2PA(&THREAD->kstack[STACK_SIZE])) 58 58 ); 59 59 } -
kernel/arch/sparc64/src/proc/sun4u/scheduler.c
r31399f3 r2277e03 52 52 { 53 53 if (THREAD->uspace) { 54 uint64_t sp; 55 54 56 /* 55 57 * Write kernel stack address to %g6 of the alternate and … … 63 65 * before it explicitly uses %g7. 64 66 */ 65 uint64_t sp = (uintptr_t) THREAD->kstack + STACK_SIZE - 66 (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)); 67 sp = (uintptr_t) THREAD->kstack + STACK_SIZE - STACK_BIAS; 67 68 write_to_ig_g6(sp); 68 69 write_to_ag_g6(sp); … … 76 77 if (THREAD->uspace) { 77 78 /* sample the state of the userspace window buffer */ 78 THREAD->arch.uspace_window_buffer = (uint8_t *) read_from_ag_g7(); 79 THREAD->arch.uspace_window_buffer = 80 (uint8_t *) read_from_ag_g7(); 79 81 } 80 82 } -
kernel/arch/sparc64/src/proc/sun4v/scheduler.c
r31399f3 r2277e03 55 55 { 56 56 if (THREAD->uspace) { 57 uint64_t sp = (uintptr_t) THREAD->kstack + STACK_SIZE - 58 (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)); 57 uint64_t sp; 58 59 sp = (uintptr_t) THREAD->kstack + STACK_SIZE - STACK_BIAS; 59 60 asi_u64_write(ASI_SCRATCHPAD, SCRATCHPAD_KSTACK, sp); 60 61 asi_u64_write(ASI_SCRATCHPAD, SCRATCHPAD_WBUF,
Note:
See TracChangeset
for help on using the changeset viewer.