Changeset 06b0211b in mainline for kernel/arch/sparc64/src/proc/sun4u/scheduler.c
- Timestamp:
- 2013-04-29T11:29:45Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aa2b32c
- Parents:
- ba4799a (diff), df956b9b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/proc/sun4u/scheduler.c
rba4799a r06b0211b 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 }
Note:
See TracChangeset
for help on using the changeset viewer.