1 /* Copyright (C) 1993,1994,1995,1997,1998,2002 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Brendan Kehoe (brendan@zen.org).
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 /* Solaris 2 does not precede the asm names of C symbols with a `_'. */
21 #ifndef NO_UNDERSCORES
22 #define NO_UNDERSCORES
25 #include <sysdeps/unix/sysdep.h>
29 /* As of gcc-2.6.0, it complains about pound signs in front of things
30 that aren't arguments to the macro. So we use this to pull it off
33 #define poundfnc cat(#,function)
38 .global C_SYMBOL_NAME(name); \
39 .type C_SYMBOL_NAME(name), poundfnc; \
42 #define PSEUDO(name, syscall_name, args) \
44 mov SYS_ify(syscall_name), %g1; \
46 bcs C_SYMBOL_NAME(syscall_error); \
52 #define MOVE(x,y) mov x, y
54 #define LOC(name) .L##name
56 #endif /* __ASSEMBLER__ */