Changeset 3fcea34 in mainline for kernel/arch/sparc64/src/sun4v/sparc64.c
- Timestamp:
- 2024-09-20T12:16:28Z (5 months ago)
- Branches:
- master
- Children:
- d3109ff
- Parents:
- 2cf8f994
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2024-09-20 11:42:13)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2024-09-20 12:16:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/sun4v/sparc64.c
r2cf8f994 r3fcea34 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 159 164 /** Switch to userspace. */ 160 void userspace(u space_arg_t *kernel_uarg)165 void userspace(uintptr_t pc, uintptr_t sp) 161 166 { 162 167 (void) interrupts_disable(); 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); 168 switch_to_userspace(pc, sp, 0); 168 169 169 170 /* Not reached */
Note:
See TracChangeset
for help on using the changeset viewer.