Changeset 425 for trunk/hal/tsar_mips32/core/hal_user.c
- Timestamp:
- Jan 29, 2018, 5:57:57 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_user.c
r407 r425 30 30 int arg3 ) 31 31 { 32 register int reg_num_and_ret __asm__("v0") = service_num;33 register int reg_a0 __asm__("a0") = arg0;34 register int reg_a1 __asm__("a1") = arg1;35 register int reg_a2 __asm__("a2") = arg2;36 register int reg_a3 __asm__("a3") = arg3;32 register int num_and_ret __asm__("v0") = service_num; 33 register int a0 __asm__("a0") = arg0; 34 register int a1 __asm__("a1") = arg1; 35 register int a2 __asm__("a2") = arg2; 36 register int a3 __asm__("a3") = arg3; 37 37 38 __asm__volatile(38 asm volatile( 39 39 "syscall" 40 : "+r" (reg_num_and_ret), 41 "+r" (reg_a0), 42 "+r" (reg_a1), 43 "+r" (reg_a2), 44 "+r" (reg_a3) 45 : 40 : "+r" (num_and_ret) 41 : "r" (a0), 42 "r" (a1), 43 "r" (a2), 44 "r" (a3) 46 45 : "memory", 47 46 "at", … … 60 59 ); 61 60 62 return (volatile int) reg_num_and_ret;61 return (volatile int)num_and_ret; 63 62 } 64 63
Note: See TracChangeset
for help on using the changeset viewer.