sgidefs.h 1018 B

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