Changeset b5ed4f8 in mainline for kernel/arch/mips32/src/mips32.c


Ignore:
Timestamp:
2008-02-05T14:48:26Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b5f9fa
Parents:
b07c332
Message:

convert ARC specific commands to generic ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mips32.c

    rb07c332 rb5ed4f8  
    142142void userspace(uspace_arg_t *kernel_uarg)
    143143{
    144         /* EXL=1, UM=1, IE=1 */
     144        /* EXL = 1, UM = 1, IE = 1 */
    145145        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));
    148147        cp0_epc_write((uintptr_t) kernel_uarg->uspace_entry);
    149         userspace_asm(((uintptr_t) kernel_uarg->uspace_stack+PAGE_SIZE),
    150                       (uintptr_t) kernel_uarg->uspace_uarg,
    151                       (uintptr_t) kernel_uarg->uspace_entry);
    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);
    154153}
    155154
     
    181180void arch_reboot(void)
    182181{
    183         ___halt();
     182        if (!arc_reboot())
     183                ___halt();
     184       
    184185        while (1);
    185186}
Note: See TracChangeset for help on using the changeset viewer.