sgidefs.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* Copyright (C) 1996, 1997, 1998, 2003, 2004 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3. Contributed by Ralf Baechle <ralf@gnu.org>.
  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. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef _SGIDEFS_H
  16. #define _SGIDEFS_H 1
  17. /*
  18. * A crude hack to stop <asm/sgidefs.h>
  19. */
  20. #undef __ASM_SGIDEFS_H
  21. #define __ASM_SGIDEFS_H
  22. /*
  23. * And remove any damage it might have already done
  24. */
  25. #undef _MIPS_ISA_MIPS1
  26. #undef _MIPS_ISA_MIPS2
  27. #undef _MIPS_ISA_MIPS3
  28. #undef _MIPS_ISA_MIPS4
  29. #undef _MIPS_ISA_MIPS5
  30. #undef _MIPS_ISA_MIPS32
  31. #undef _MIPS_ISA_MIPS64
  32. #undef _MIPS_SIM_ABI32
  33. #undef _MIPS_SIM_NABI32
  34. #undef _MIPS_SIM_ABI64
  35. /*
  36. * Definitions for the ISA level
  37. */
  38. #define _MIPS_ISA_MIPS1 1
  39. #define _MIPS_ISA_MIPS2 2
  40. #define _MIPS_ISA_MIPS3 3
  41. #define _MIPS_ISA_MIPS4 4
  42. #define _MIPS_ISA_MIPS5 5
  43. #define _MIPS_ISA_MIPS32 6
  44. #define _MIPS_ISA_MIPS64 7
  45. /*
  46. * Subprogram calling convention
  47. */
  48. #ifndef _ABIO32
  49. # define _ABIO32 1
  50. #endif
  51. #define _MIPS_SIM_ABI32 _ABIO32
  52. #ifndef _ABIN32
  53. # define _ABIN32 2
  54. #endif
  55. #define _MIPS_SIM_NABI32 _ABIN32
  56. #ifndef _ABI64
  57. # define _ABI64 3
  58. #endif
  59. #define _MIPS_SIM_ABI64 _ABI64
  60. #endif /* sgidefs.h */