Back to index

glibc  2.9
sysdep.h
Go to the documentation of this file.
00001 /* Assembler macros for HP/PA.
00002    Copyright (C) 1999, 2003 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004    Contributed by Ulrich Drepper, <drepper@cygnus.com>, August 1999.
00005 
00006    The GNU C Library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License as published by the Free Software Foundation; either
00009    version 2.1 of the License, or (at your option) any later version.
00010 
00011    The GNU C Library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public
00017    License along with the GNU C Library; if not, write to the Free
00018    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019    02111-1307 USA.  */
00020 
00021 #include <sysdeps/generic/sysdep.h>
00022 #include <sys/syscall.h>
00023 #include "config.h"
00024 
00025 #undef ASM_LINE_SEP
00026 #define ASM_LINE_SEP ! 
00027 
00028 #ifdef __ASSEMBLER__
00029 
00030 /* Syntactic details of assembler.  */
00031 
00032 #define ALIGNARG(log2) log2
00033 
00034 
00035 /* Define an entry point visible from C.
00036 
00037    There is currently a bug in gdb which prevents us from specifying
00038    incomplete stabs information.  Fake some entries here which specify
00039    the current source file.  */
00040 #define       ENTRY(name)                                                   \
00041   .SPACE $TEXT$                                                ASM_LINE_SEP  \
00042   .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY            ASM_LINE_SEP  \
00043   .align ALIGNARG(4)                                    ASM_LINE_SEP  \
00044   .NSUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY           ASM_LINE_SEP  \
00045   .EXPORT C_SYMBOL_NAME(name),ENTRY,PRIV_LEV=3,ARGW0=GR,RTNVAL=GR ASM_LINE_SEP\
00046   C_LABEL(name)                                                             \
00047   CALL_MCOUNT
00048 
00049 #undef END
00050 #define END(name)                                                    \
00051   .PROCEND
00052 
00053 /* GCC does everything for us. */
00054 #ifdef PROF
00055 #define CALL_MCOUNT 
00056 #else
00057 #define CALL_MCOUNT         /* Do nothing.  */
00058 #endif
00059 
00060 #define       PSEUDO(name, syscall_name, args)                              \
00061   ENTRY (name)                                                              \
00062   DO_CALL (syscall_name, args)
00063 
00064 #undef PSEUDO_END
00065 #define       PSEUDO_END(name)                                              \
00066   END (name)
00067 
00068 #undef JUMPTARGET
00069 #define JUMPTARGET(name)    name
00070 #define SYSCALL_PIC_SETUP   /* Nothing.  */
00071 
00072 /* Local label name for asm code. */
00073 #ifndef L
00074 #define L(name)             name
00075 #endif
00076 
00077 #endif /* __ASSEMBLER__ */