2.9
[glibc/nacl-glibc.git] / sysdeps / mach / alpha / syscall.S
blob15fc5b75b738ec8ddc0469fac4964caee55e0c5a
1 /* Copyright (C) 1994,97,2002 Free Software Foundation, Inc.
2    This file is part of the GNU C Library.
4    The GNU C Library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Lesser General Public
6    License as published by the Free Software Foundation; either
7    version 2.1 of the License, or (at your option) any later version.
9    The GNU C Library is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    Lesser General Public License for more details.
14    You should have received a copy of the GNU Lesser General Public
15    License along with the GNU C Library; if not, write to the Free
16    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17    02111-1307 USA.  */
19 #include <sysdep.h>
21 ENTRY (syscall)
22         mov a0, v0              /* Load system call number from first arg.  */
23         mov a1, a0
24         mov a2, a1
25         mov a3, a2
26         mov a4, a3
27         mov a5, a4
28         /* Load the remaining possible args (up to 11) from the stack.  */
29         ldq a5,0(sp)
30         ldq t0,8(sp)
31         ldq t1,16(sp)
32         ldq t2,24(sp)
33         ldq t3,32(sp)
34         ldq t4,40(sp)
35         callsys
36         ret
37 END (syscall)