summaryrefslogtreecommitdiff
path: root/src/mips/ffitarget.h
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2011-02-08 14:28:59 -0500
committerAnthony Green <green@moxielogic.com>2011-02-08 14:28:59 -0500
commit3b836249feae6d08d3e6887486e4b9961ddafa09 (patch)
tree0ee67ff2525e1b64691dc9d46783a641ade155f5 /src/mips/ffitarget.h
parenta26e3940619faeba6de54824c9540c90b1aab513 (diff)
downloadlibffi-3b836249feae6d08d3e6887486e4b9961ddafa09.tar.gz
Rebase from GCC
Diffstat (limited to 'src/mips/ffitarget.h')
-rw-r--r--src/mips/ffitarget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mips/ffitarget.h b/src/mips/ffitarget.h
index d70197c..4c247b8 100644
--- a/src/mips/ffitarget.h
+++ b/src/mips/ffitarget.h
@@ -29,9 +29,17 @@
#ifdef linux
# include <asm/sgidefs.h>
+#elif defined(__rtems__)
+/*
+ * Subprogram calling convention - copied from sgidefs.h
+ */
+#define _MIPS_SIM_ABI32 1
+#define _MIPS_SIM_NABI32 2
+#define _MIPS_SIM_ABI64 3
#else
# include <sgidefs.h>
#endif
+
# ifndef _ABIN32
# define _ABIN32 _MIPS_SIM_NABI32
# endif