Changeset b4ca0a9c in mainline for kernel/arch/sparc64/src
- Timestamp:
- 2012-07-10T11:53:50Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1e01a35
- Parents:
- a33706e (diff), 33fc3ae (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. - Location:
- kernel/arch/sparc64/src
- Files:
-
- 7 edited
-
drivers/niagara.c (modified) (1 diff)
-
proc/sun4u/scheduler.c (modified) (2 diffs)
-
proc/sun4v/scheduler.c (modified) (2 diffs)
-
proc/thread.c (modified) (1 diff)
-
smp/sun4u/ipi.c (modified) (1 diff)
-
sun4u/sparc64.c (modified) (1 diff)
-
sun4v/sparc64.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/niagara.c
ra33706e rb4ca0a9c 184 184 185 185 instance = malloc(sizeof(niagara_instance_t), FRAME_ATOMIC); 186 instance->thread = thread_create(kniagarapoll, NULL, TASK, 0,187 "kniagarapoll", true);186 instance->thread = thread_create(kniagarapoll, NULL, TASK, 187 THREAD_FLAG_UNCOUNTED, "kniagarapoll"); 188 188 189 189 if (!instance->thread) { -
kernel/arch/sparc64/src/proc/sun4u/scheduler.c
ra33706e rb4ca0a9c 51 51 void before_thread_runs_arch(void) 52 52 { 53 if ( (THREAD->flags & THREAD_FLAG_USPACE)) {53 if (THREAD->uspace) { 54 54 /* 55 55 * Write kernel stack address to %g6 of the alternate and … … 74 74 void after_thread_ran_arch(void) 75 75 { 76 if ( (THREAD->flags & THREAD_FLAG_USPACE)) {77 /* sample the state of the userspace window buffer */ 76 if (THREAD->uspace) { 77 /* sample the state of the userspace window buffer */ 78 78 THREAD->arch.uspace_window_buffer = (uint8_t *) read_from_ag_g7(); 79 79 } -
kernel/arch/sparc64/src/proc/sun4v/scheduler.c
ra33706e rb4ca0a9c 54 54 void before_thread_runs_arch(void) 55 55 { 56 if ( (THREAD->flags & THREAD_FLAG_USPACE)) {56 if (THREAD->uspace) { 57 57 uint64_t sp = (uintptr_t) THREAD->kstack + STACK_SIZE - 58 58 (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)); … … 66 66 void after_thread_ran_arch(void) 67 67 { 68 if ( (THREAD->flags & THREAD_FLAG_USPACE)) {69 /* sample the state of the userspace window buffer */ 68 if (THREAD->uspace) { 69 /* sample the state of the userspace window buffer */ 70 70 THREAD->arch.uspace_window_buffer = 71 71 (uint8_t *) asi_u64_read(ASI_SCRATCHPAD, SCRATCHPAD_WBUF); -
kernel/arch/sparc64/src/proc/thread.c
ra33706e rb4ca0a9c 61 61 void thread_create_arch(thread_t *t) 62 62 { 63 if ((t-> flags & THREAD_FLAG_USPACE) && (!t->arch.uspace_window_buffer))63 if ((t->uspace) && (!t->arch.uspace_window_buffer)) 64 64 { 65 65 /* -
kernel/arch/sparc64/src/smp/sun4u/ipi.c
ra33706e rb4ca0a9c 124 124 (void) interrupts_disable(); 125 125 } 126 } while ( done);126 } while (!done); 127 127 128 128 preemption_enable(); -
kernel/arch/sparc64/src/sun4u/sparc64.c
ra33706e rb4ca0a9c 156 156 (void) interrupts_disable(); 157 157 switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry, 158 ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE 159 - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS), 158 ((uintptr_t) kernel_uarg->uspace_stack) + 159 kernel_uarg->uspace_stack_size - 160 (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS), 160 161 (uintptr_t) kernel_uarg->uspace_uarg); 161 162 for (;;) 163 ; 164 /* not reached */ 162 163 /* Not reached */ 164 while (1); 165 165 } 166 166 -
kernel/arch/sparc64/src/sun4v/sparc64.c
ra33706e rb4ca0a9c 154 154 (void) interrupts_disable(); 155 155 switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry, 156 ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE 157 - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS), 156 ((uintptr_t) kernel_uarg->uspace_stack) + 157 kernel_uarg->uspace_stack_size - 158 (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS), 158 159 (uintptr_t) kernel_uarg->uspace_uarg); 159 160 for (;;) 161 ; 162 /* not reached */ 160 161 /* Not reached */ 162 while (1); 163 163 } 164 164
Note:
See TracChangeset
for help on using the changeset viewer.
