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