Changes in kernel/arch/ia64/src/ia64.c [2902e1bb:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/ia64.c
r2902e1bb r9d58539 232 232 * 233 233 * When calculating stack addresses, mind the stack split between the 234 * memory stack and the RSE stack. Each occuppies 235 * uspace_stack_size / 2 bytes. 234 * memory stack and the RSE stack. Each occuppies STACK_SIZE / 2 bytes. 236 235 */ 237 236 switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry, 238 ((uintptr_t) kernel_uarg->uspace_stack) + 239 kernel_uarg->uspace_stack_size / 2 - 237 ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE / 2 - 240 238 ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT), 241 ((uintptr_t) kernel_uarg->uspace_stack) + 242 kernel_uarg->uspace_stack_size / 2, 239 ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE / 2, 243 240 (uintptr_t) kernel_uarg->uspace_uarg, psr.value, rsc.value); 244 245 while (1); 241 242 while (1) 243 ; 246 244 } 247 245
Note:
See TracChangeset
for help on using the changeset viewer.