Changeset 7f1c620 in mainline for arch/mips32/src/mips32.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/mips32.c
r991779c5 r7f1c620 72 72 * when not in .text section ???????? 73 73 */ 74 __addresssupervisor_sp __attribute__ ((section (".text")));74 uintptr_t supervisor_sp __attribute__ ((section (".text"))); 75 75 /* Stack pointer saved when entering user mode */ 76 76 /* TODO: How do we do it on SMP system???? */ … … 82 82 init.cnt = bootinfo.cnt; 83 83 84 __u32i;84 uint32_t i; 85 85 86 86 for (i = 0; i < bootinfo.cnt; i++) { … … 147 147 cp0_status_um_bit | 148 148 cp0_status_ie_enabled_bit)); 149 cp0_epc_write(( __address) kernel_uarg->uspace_entry);150 userspace_asm((( __address) kernel_uarg->uspace_stack+PAGE_SIZE),151 ( __address) kernel_uarg->uspace_uarg,152 ( __address) kernel_uarg->uspace_entry);149 cp0_epc_write((uintptr_t) kernel_uarg->uspace_entry); 150 userspace_asm(((uintptr_t) kernel_uarg->uspace_stack+PAGE_SIZE), 151 (uintptr_t) kernel_uarg->uspace_uarg, 152 (uintptr_t) kernel_uarg->uspace_entry); 153 153 while (1) 154 154 ; … … 163 163 void before_thread_runs_arch(void) 164 164 { 165 supervisor_sp = ( __address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];165 supervisor_sp = (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA]; 166 166 } 167 167 … … 175 175 * possible to have it separately in the future. 176 176 */ 177 __native sys_tls_set(__nativeaddr)177 unative_t sys_tls_set(unative_t addr) 178 178 { 179 179 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.