]>
Commit | Line | Data |
---|---|---|
fcda5fcc | 1 | /* Assembler macros for HP/PA. |
d4697bc9 | 2 | Copyright (C) 1999-2014 Free Software Foundation, Inc. |
fcda5fcc UD |
3 | This file is part of the GNU C Library. |
4 | Contributed by Ulrich Drepper, <drepper@cygnus.com>, August 1999. | |
5 | ||
6 | The GNU C Library is free software; you can redistribute it and/or | |
3214b89b AJ |
7 | modify it under the terms of the GNU Lesser General Public |
8 | License as published by the Free Software Foundation; either | |
9 | version 2.1 of the License, or (at your option) any later version. | |
fcda5fcc UD |
10 | |
11 | The GNU C Library is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
3214b89b | 14 | Lesser General Public License for more details. |
fcda5fcc | 15 | |
3214b89b | 16 | You should have received a copy of the GNU Lesser General Public |
ab84e3ff PE |
17 | License along with the GNU C Library. If not, see |
18 | <http://www.gnu.org/licenses/>. */ | |
fcda5fcc UD |
19 | |
20 | #include <sysdeps/generic/sysdep.h> | |
21 | #include <sys/syscall.h> | |
1ca92d75 UD |
22 | #include "config.h" |
23 | ||
084442fc | 24 | #undef ASM_LINE_SEP |
5556231d | 25 | #define ASM_LINE_SEP ! |
fcda5fcc UD |
26 | |
27 | #ifdef __ASSEMBLER__ | |
28 | ||
29 | /* Syntactic details of assembler. */ | |
30 | ||
31 | #define ALIGNARG(log2) log2 | |
32 | ||
33 | ||
34 | /* Define an entry point visible from C. | |
35 | ||
36 | There is currently a bug in gdb which prevents us from specifying | |
37 | incomplete stabs information. Fake some entries here which specify | |
38 | the current source file. */ | |
39 | #define ENTRY(name) \ | |
1ca92d75 UD |
40 | .SPACE $TEXT$ ASM_LINE_SEP \ |
41 | .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY ASM_LINE_SEP \ | |
42 | .align ALIGNARG(4) ASM_LINE_SEP \ | |
43 | .NSUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY ASM_LINE_SEP \ | |
44 | .EXPORT C_SYMBOL_NAME(name),ENTRY,PRIV_LEV=3,ARGW0=GR,RTNVAL=GR ASM_LINE_SEP\ | |
fcda5fcc | 45 | C_LABEL(name) \ |
fcda5fcc UD |
46 | CALL_MCOUNT |
47 | ||
48 | #undef END | |
49 | #define END(name) \ | |
50 | .PROCEND | |
51 | ||
084442fc | 52 | /* GCC does everything for us. */ |
fcda5fcc | 53 | #ifdef PROF |
5556231d | 54 | #define CALL_MCOUNT |
fcda5fcc UD |
55 | #else |
56 | #define CALL_MCOUNT /* Do nothing. */ | |
57 | #endif | |
58 | ||
59 | #define PSEUDO(name, syscall_name, args) \ | |
60 | ENTRY (name) \ | |
61 | DO_CALL (syscall_name, args) | |
62 | ||
63 | #undef PSEUDO_END | |
64 | #define PSEUDO_END(name) \ | |
65 | END (name) | |
66 | ||
aca98486 | 67 | #undef JUMPTARGET |
fcda5fcc UD |
68 | #define JUMPTARGET(name) name |
69 | #define SYSCALL_PIC_SETUP /* Nothing. */ | |
70 | ||
71 | /* Local label name for asm code. */ | |
72 | #ifndef L | |
73 | #define L(name) name | |
74 | #endif | |
75 | ||
76 | #endif /* __ASSEMBLER__ */ |