blob: 86055ec71b157fc7f077ced76f14ac0b2e4e0736 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* Copyright (C) 1991, 1992, 1997, 2002 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
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.
8
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.
13
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. */
18
19#include <features.h>
20#include <sys/syscall.h>
21
22.text
23.global syscall
24.type syscall,%function
25#if __WORDSIZE == 32
26.align 4
27#else
28.align 2
29#endif
30
31syscall:
32 mov %o0, %g1
33 mov %o1, %o0
34 mov %o2, %o1
35 mov %o3, %o2
36 mov %o4, %o3
37 mov %o5, %o4
38
39#if __WORDSIZE == 32
40 ta 0x10
41 bcs __syscall_error
42#else
43 ta 0x6d
44 bcs,pn %xcc,__syscall_error
45#endif
46
47 nop
48 retl
49 nop
50.size syscall,.-syscall