Changeset 0f250f9 in mainline for arch/mips32/src/mips32.c
- Timestamp:
- 2006-03-17T18:07:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69f293e
- Parents:
- 6c6a19e6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/mips32.c
r6c6a19e6 r0f250f9 38 38 #include <memstr.h> 39 39 #include <proc/thread.h> 40 #include <proc/uarg.h> 40 41 #include <print.h> 41 42 … … 121 122 __address supervisor_sp __attribute__ ((section (".text"))); 122 123 123 void userspace(uspace_arg_t * uarg)124 void userspace(uspace_arg_t *kernel_uarg) 124 125 { 125 126 /* EXL=1, UM=1, IE=1 */ … … 127 128 cp0_status_um_bit | 128 129 cp0_status_ie_enabled_bit)); 129 cp0_epc_write( uarg->uspace_entry);130 userspace_asm( uarg->uspace_stack+PAGE_SIZE);130 cp0_epc_write((__address) kernel_uarg->uspace_entry); 131 userspace_asm(((__address) kernel_uarg->uspace_stack+PAGE_SIZE), (__address) kernel_uarg->uspace_uarg); 131 132 while (1) 132 133 ;
Note:
See TracChangeset
for help on using the changeset viewer.