Changeset b5ed4f8 in mainline for kernel/arch/mips32/src/mips32.c
- Timestamp:
- 2008-02-05T14:48:26Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b5f9fa
- Parents:
- b07c332
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mips32.c
rb07c332 rb5ed4f8 142 142 void userspace(uspace_arg_t *kernel_uarg) 143 143 { 144 /* EXL =1, UM=1, IE=1 */144 /* EXL = 1, UM = 1, IE = 1 */ 145 145 cp0_status_write(cp0_status_read() | (cp0_status_exl_exception_bit | 146 cp0_status_um_bit | 147 cp0_status_ie_enabled_bit)); 146 cp0_status_um_bit | cp0_status_ie_enabled_bit)); 148 147 cp0_epc_write((uintptr_t) kernel_uarg->uspace_entry); 149 userspace_asm(((uintptr_t) kernel_uarg->uspace_stack +PAGE_SIZE),150 151 152 while (1)153 148 userspace_asm(((uintptr_t) kernel_uarg->uspace_stack + PAGE_SIZE), 149 (uintptr_t) kernel_uarg->uspace_uarg, 150 (uintptr_t) kernel_uarg->uspace_entry); 151 152 while (1); 154 153 } 155 154 … … 181 180 void arch_reboot(void) 182 181 { 183 ___halt(); 182 if (!arc_reboot()) 183 ___halt(); 184 184 185 while (1); 185 186 }
Note:
See TracChangeset
for help on using the changeset viewer.