Subversion Repositories HelenOS-historic

Rev

Rev 739 | Rev 960 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 739 Rev 954
Line 26... Line 26...
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#include <libc.h>
29
#include <libc.h>
30
 
30
 
31
sysarg_t __syscall(const syscall_t id, const sysarg_t p1, const sysarg_t p2, const sysarg_t p3)
31
sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2,
-
 
32
           const sysarg_t p3, const syscall_t id)
32
{
33
{
33
    register sysarg_t __mips_reg_a0 asm("$4") = p1;
34
    register sysarg_t __mips_reg_a0 asm("$4") = p1;
34
    register sysarg_t __mips_reg_a1 asm("$5") = p2;
35
    register sysarg_t __mips_reg_a1 asm("$5") = p2;
35
    register sysarg_t __mips_reg_a2 asm("$6") = p3;
36
    register sysarg_t __mips_reg_a2 asm("$6") = p3;
36
    register sysarg_t __mips_reg_a3 asm("$7") = id;
37
    register sysarg_t __mips_reg_a3 asm("$7") = id;