1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright (C) 1996, 1999, 2001 Ralf Baechle 3*4882a593Smuzhiyun * Copyright (C) 1999 Silicon Graphics, Inc. 4*4882a593Smuzhiyun * Copyright (C) 2001 MIPS Technologies, Inc. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * SPDX-License-Identifier: GPL-2.0 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun #ifndef __ASM_SGIDEFS_H 9*4882a593Smuzhiyun #define __ASM_SGIDEFS_H 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun /* 12*4882a593Smuzhiyun * Using a Linux compiler for building Linux seems logic but not to 13*4882a593Smuzhiyun * everybody. 14*4882a593Smuzhiyun */ 15*4882a593Smuzhiyun #if 0 /* ndef __linux__ */ 16*4882a593Smuzhiyun #error Use a Linux compiler or give up. 17*4882a593Smuzhiyun #endif 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun /* 20*4882a593Smuzhiyun * Definitions for the ISA levels 21*4882a593Smuzhiyun * 22*4882a593Smuzhiyun * With the introduction of MIPS32 / MIPS64 instruction sets definitions 23*4882a593Smuzhiyun * MIPS ISAs are no longer subsets of each other. Therefore comparisons 24*4882a593Smuzhiyun * on these symbols except with == may result in unexpected results and 25*4882a593Smuzhiyun * are forbidden! 26*4882a593Smuzhiyun */ 27*4882a593Smuzhiyun #define _MIPS_ISA_MIPS1 1 28*4882a593Smuzhiyun #define _MIPS_ISA_MIPS2 2 29*4882a593Smuzhiyun #define _MIPS_ISA_MIPS3 3 30*4882a593Smuzhiyun #define _MIPS_ISA_MIPS4 4 31*4882a593Smuzhiyun #define _MIPS_ISA_MIPS5 5 32*4882a593Smuzhiyun #define _MIPS_ISA_MIPS32 6 33*4882a593Smuzhiyun #define _MIPS_ISA_MIPS64 7 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun /* 36*4882a593Smuzhiyun * Subprogram calling convention 37*4882a593Smuzhiyun */ 38*4882a593Smuzhiyun #define _MIPS_SIM_ABI32 1 39*4882a593Smuzhiyun #define _MIPS_SIM_NABI32 2 40*4882a593Smuzhiyun #define _MIPS_SIM_ABI64 3 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun #endif /* __ASM_SGIDEFS_H */ 43