lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /* Adapted from glibc's sysdeps/unix/mips/sysdep.h */ |
| 2 | |
| 3 | /* Copyright (C) 1992, 1995, 1997, 1999, 2000, 2002, 2003 |
| 4 | Free Software Foundation, Inc. |
| 5 | This file is part of the GNU C Library. |
| 6 | Contributed by Brendan Kehoe (brendan@zen.org). |
| 7 | |
| 8 | The GNU C Library is free software; you can redistribute it and/or |
| 9 | modify it under the terms of the GNU Lesser General Public |
| 10 | License as published by the Free Software Foundation; either |
| 11 | version 2.1 of the License, or (at your option) any later version. |
| 12 | |
| 13 | The GNU C Library is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | Lesser General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU Lesser General Public |
| 19 | License along with the GNU C Library; if not, write to the Free |
| 20 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 21 | 02111-1307 USA. */ |
| 22 | |
| 23 | #ifdef __ASSEMBLER__ |
| 24 | |
| 25 | #include <sgidefs.h> |
| 26 | #include <sys/regdef.h> |
| 27 | |
| 28 | #define ENTRY(name) \ |
| 29 | .globl name; \ |
| 30 | .align 2; \ |
| 31 | .ent name,0; \ |
| 32 | name/* use a comment rather than ## to workaround bug in gcc-3.4.x */: |
| 33 | |
| 34 | #undef END |
| 35 | #define END(function) \ |
| 36 | .end function; \ |
| 37 | .size function,.-function |
| 38 | |
| 39 | #if _MIPS_SIM == _MIPS_SIM_ABI32 || _MIPS_SIM == _MIPS_SIM_ABIO64 |
| 40 | # define L(label) $L ## label |
| 41 | #else |
| 42 | # define L(label) .L ## label |
| 43 | #endif |
| 44 | |
| 45 | #endif |