sgidefs.h 1.2 KB

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