[Change RTS to work with ARM EABI (allows NDS, GBA and GP32 targets)
brian@brianmckenna.org**20110710005117
 Ignore-this: 7cf0875ee8657684f137e25673a18512
] hunk ./src/rts/jhc_rts.c 6
+#elif defined(__ARM_EABI__)
+A_UNUSED static char *jhc_options_os =  "nds";
+A_UNUSED static char *jhc_options_arch = "ARM";
hunk ./src/rts/jhc_rts_header.h 15
+#ifdef __ARM_EABI__
+#include <malloc.h>
+#else
hunk ./src/rts/jhc_rts_header.h 19
+#include <sys/utsname.h>
+#endif
hunk ./src/rts/jhc_rts_header.h 24
-#include <sys/utsname.h>
hunk ./src/rts/jhc_rts_header.h 117
-#define JHC_isPosix (!JHC_isWindows)
+#define JHC_isPosix (!JHC_isWindows && !defined(__ARM_EABI__))
hunk ./src/rts/profile.c 48
+#ifndef __ARM_EABI__
hunk ./src/rts/profile.c 56
+#endif
hunk ./src/rts/profile.c 73
+#ifndef __ARM_EABI__
hunk ./src/rts/profile.c 80
+#endif
hunk ./src/rts/slub.c 101
+#elif defined(__ARM_EABI__)
+        mb->base = memalign(BLOCK_SIZE,MEGABLOCK_SIZE);
+        int ret = !mb->base;