| 1 | /* Copyright (C) 1996-2024 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, see |
| 16 | <https://www.gnu.org/licenses/>. */ |
| 17 | |
| 18 | #ifndef _SGIDEFS_H |
| 19 | #define _SGIDEFS_H 1 |
| 20 | |
| 21 | /* |
| 22 | * A crude hack to stop <asm/sgidefs.h> |
| 23 | */ |
| 24 | #undef __ASM_SGIDEFS_H |
| 25 | #define __ASM_SGIDEFS_H |
| 26 | |
| 27 | /* |
| 28 | * And remove any damage it might have already done |
| 29 | */ |
| 30 | #undef _MIPS_ISA_MIPS1 |
| 31 | #undef _MIPS_ISA_MIPS2 |
| 32 | #undef _MIPS_ISA_MIPS3 |
| 33 | #undef _MIPS_ISA_MIPS4 |
| 34 | #undef _MIPS_ISA_MIPS5 |
| 35 | #undef _MIPS_ISA_MIPS32 |
| 36 | #undef _MIPS_ISA_MIPS64 |
| 37 | |
| 38 | #undef _MIPS_SIM_ABI32 |
| 39 | #undef _MIPS_SIM_NABI32 |
| 40 | #undef _MIPS_SIM_ABI64 |
| 41 | |
| 42 | /* |
| 43 | * Definitions for the ISA level |
| 44 | */ |
| 45 | #define _MIPS_ISA_MIPS1 1 |
| 46 | #define _MIPS_ISA_MIPS2 2 |
| 47 | #define _MIPS_ISA_MIPS3 3 |
| 48 | #define _MIPS_ISA_MIPS4 4 |
| 49 | #define _MIPS_ISA_MIPS5 5 |
| 50 | #define _MIPS_ISA_MIPS32 6 |
| 51 | #define _MIPS_ISA_MIPS64 7 |
| 52 | |
| 53 | /* |
| 54 | * Subprogram calling convention |
| 55 | */ |
| 56 | #ifndef _ABIO32 |
| 57 | # define _ABIO32 1 |
| 58 | #endif |
| 59 | #define _MIPS_SIM_ABI32 _ABIO32 |
| 60 | |
| 61 | #ifndef _ABIN32 |
| 62 | # define _ABIN32 2 |
| 63 | #endif |
| 64 | #define _MIPS_SIM_NABI32 _ABIN32 |
| 65 | |
| 66 | #ifndef _ABI64 |
| 67 | # define _ABI64 3 |
| 68 | #endif |
| 69 | #define _MIPS_SIM_ABI64 _ABI64 |
| 70 | |
| 71 | #ifndef _ABIO64 |
| 72 | # define _ABIO64 4 |
| 73 | #endif |
| 74 | |
| 75 | #endif /* sgidefs.h */ |
| 76 | |