Changes in kernel/arch/sparc64/src/sun4u/sparc64.c [5a5269d:3fcea34] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/sun4u/sparc64.c
r5a5269d r3fcea34 159 159 } 160 160 161 uintptr_t arch_get_initial_sp(uintptr_t stack_base, uintptr_t stack_size) 162 { 163 return ALIGN_DOWN(stack_base + stack_size - STACK_WINDOW_SAVE_AREA_SIZE - STACK_ARG_SAVE_AREA_SIZE, 16) - STACK_BIAS; 164 } 165 161 166 /** Switch to userspace. */ 162 void userspace(u space_arg_t *kernel_uarg)167 void userspace(uintptr_t pc, uintptr_t sp) 163 168 { 164 169 (void) interrupts_disable(); 165 switch_to_userspace(kernel_uarg->uspace_entry, 166 kernel_uarg->uspace_stack + 167 kernel_uarg->uspace_stack_size - 168 (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS), 169 kernel_uarg->uspace_uarg); 170 switch_to_userspace(pc, sp, 0); 170 171 171 172 /* Not reached */
Note:
See TracChangeset
for help on using the changeset viewer.