Add cruft to confshared.h for ARM.
authorTaylor R Campbell <campbell@mumble.net>
Tue, 28 Aug 2012 04:33:49 +0000 (04:33 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Tue, 28 Aug 2012 04:33:49 +0000 (04:33 +0000)
Works on the Raspberry Pi and the BeagleBone, which seem to be,
remarkably enough, the first ARM platforms on which anyone has ever
tried to run MIT Scheme.

src/microcode/confshared.h

index 469793be418ba0c20e80f3495f93efbb3ccfd84c..10f2fc91b43b0811ed9748fb7cc5469952641815 100644 (file)
@@ -219,7 +219,8 @@ typedef enum
   FASL_PPC32,
   FASL_X86_64,
   FASL_PPC64,
-  FASL_IA64
+  FASL_IA64,
+  FASL_ARM,
 } fasl_arch_t;
 
 /* Possible values for COMPILER_PROCESSOR_TYPE.  This identifies the
@@ -635,6 +636,11 @@ extern void win32_stack_reset (void);
 #  define MACHINE_TYPE         "ia64"
 #  define CURRENT_FASL_ARCH    FASL_IA64
 #endif
+
+#ifdef __arm__
+#  define MACHINE_TYPE         "arm"
+#  define CURRENT_FASL_ARCH    FASL_ARM
+#endif
 \f
 #ifdef sonyrisc
       /* On the Sony NEWS 3250, this procedure initializes the