Changes in kernel/arch/sparc64/src/proc/sun4u/scheduler.c [2277e03:5f678b1c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/proc/sun4u/scheduler.c
r2277e03 r5f678b1c 51 51 void before_thread_runs_arch(void) 52 52 { 53 if (THREAD->uspace) { 54 uint64_t sp; 55 53 if ((THREAD->flags & THREAD_FLAG_USPACE)) { 56 54 /* 57 55 * Write kernel stack address to %g6 of the alternate and … … 65 63 * before it explicitly uses %g7. 66 64 */ 67 sp = (uintptr_t) THREAD->kstack + STACK_SIZE - STACK_BIAS; 65 uint64_t sp = (uintptr_t) THREAD->kstack + STACK_SIZE - 66 (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)); 68 67 write_to_ig_g6(sp); 69 68 write_to_ag_g6(sp); … … 75 74 void after_thread_ran_arch(void) 76 75 { 77 if (THREAD->uspace) { 78 /* sample the state of the userspace window buffer */ 79 THREAD->arch.uspace_window_buffer = 80 (uint8_t *) read_from_ag_g7(); 76 if ((THREAD->flags & THREAD_FLAG_USPACE)) { 77 /* sample the state of the userspace window buffer */ 78 THREAD->arch.uspace_window_buffer = (uint8_t *) read_from_ag_g7(); 81 79 } 82 80 }
Note:
See TracChangeset
for help on using the changeset viewer.