Changeset cfa70add in mainline for kernel/arch/sparc64/src/sparc64.c
- Timestamp:
- 2006-09-03T23:37:14Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fd85ae5
- Parents:
- 002e613
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/sparc64.c
r002e613 rcfa70add 48 48 49 49 bootinfo_t bootinfo; 50 51 void arch_pre_main(void) 52 { 53 /* Setup usermode */ 54 init.cnt = bootinfo.taskmap.count; 55 56 uint32_t i; 57 58 for (i = 0; i < bootinfo.taskmap.count; i++) { 59 init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr); 60 init.tasks[i].size = bootinfo.taskmap.tasks[i].size; 61 } 62 } 50 63 51 64 void arch_pre_mm_init(void) … … 99 112 switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry, 100 113 ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE 101 - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS)); 114 - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS), 115 (uintptr_t) kernel_uarg->uspace_uarg); 102 116 103 117 for (;;)
Note:
See TracChangeset
for help on using the changeset viewer.