Changeset 9f52563 in mainline for arch/mips32/src/mips32.c


Ignore:
Timestamp:
2006-03-17T01:34:36Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a0b0669
Parents:
5fceec7
Message:

Support for user space threads.

File:
1 edited

Legend:

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

    r5fceec7 r9f52563  
    121121__address supervisor_sp __attribute__ ((section (".text")));
    122122
    123 void userspace(__address entry)
     123void userspace(uspace_arg_t *uarg)
    124124{
    125125        /* EXL=1, UM=1, IE=1 */
     
    127127                                              cp0_status_um_bit |
    128128                                              cp0_status_ie_enabled_bit));
    129         cp0_epc_write(entry);
    130         userspace_asm(USTACK_ADDRESS+PAGE_SIZE);
     129        cp0_epc_write(uarg->uspace_entry);
     130        userspace_asm(uarg->uspace_stack+PAGE_SIZE);
    131131        while (1)
    132132                ;
Note: See TracChangeset for help on using the changeset viewer.