Ignore:
Timestamp:
Jan 29, 2018, 5:57:57 PM (4 years ago)
Author:
alain
Message:

bloup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_user.c

    r407 r425  
    3030                             int arg3 )
    3131{
    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;
    3737
    38     __asm__ volatile(
     38    asm volatile(
    3939            "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)
    4645            : "memory",
    4746              "at",
     
    6059               );
    6160
    62     return (volatile int)reg_num_and_ret;
     61    return (volatile int)num_and_ret;
    6362}
    6463
Note: See TracChangeset for help on using the changeset viewer.