sparc: cleanup sparc64 bits and unused soft-fp
[uclibc-ng.git] / libc / sysdeps / linux / sparc / syscall.S
blobaa27c8b70c0f74d34a132a4bebae85c992285e04
1 /* Copyright (C) 1991, 1992, 1997, 2002 Free Software Foundation, Inc.
3    The GNU C Library is free software; you can redistribute it and/or
4    modify it under the terms of the GNU Lesser General Public
5    License as published by the Free Software Foundation; either
6    version 2.1 of the License, or (at your option) any later version.
8    The GNU C Library is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11    Lesser General Public License for more details.
13    You should have received a copy of the GNU Lesser General Public
14    License along with the GNU C Library; if not, see
15    <http://www.gnu.org/licenses/>.  */
17 #include <features.h>
18 #include <sys/syscall.h>
20 .text
21 .global syscall
22 .type   syscall,%function
23 .align  4
25 syscall:
26         mov     %o0, %g1
27         mov     %o1, %o0
28         mov     %o2, %o1
29         mov     %o3, %o2
30         mov     %o4, %o3
31         mov     %o5, %o4
33         ta      0x10
34         bcs     __syscall_error
35          nop
36         retl
37          nop
38 .size syscall,.-syscall