Checked in NetBSD/MIPS port contributed by Tom Weinstein
authorwtc%netscape.com
Wed, 22 Dec 1999 23:58:07 +0000
changeset 1013 601aeea6f902c1a77c4e522659eb4308ff33947b
parent 1012 72502b3c5d144d6fd0ac8a33665159b5f86e35b9
child 1015 f596c419130285619f515a60b3ee646f8bdaba03
push idunknown
push userunknown
push dateunknown
Checked in NetBSD/MIPS port contributed by Tom Weinstein <tomw@geocast.com>. Modified files: _netbsd.cfg, _netbsd.h
pr/include/md/_netbsd.cfg
pr/include/md/_netbsd.h
--- a/pr/include/md/_netbsd.cfg
+++ b/pr/include/md/_netbsd.cfg
@@ -68,17 +68,17 @@
 #define PR_ALIGN_OF_SHORT   2
 #define PR_ALIGN_OF_INT     4
 #define PR_ALIGN_OF_LONG    4
 #define PR_ALIGN_OF_INT64   4
 #define PR_ALIGN_OF_FLOAT   4
 #define PR_ALIGN_OF_DOUBLE  4
 #define PR_ALIGN_OF_POINTER 4
 
-#elif defined(__sparc__)
+#elif defined(__sparc__) || defined(__mips__)
 
 #undef IS_LITTLE_ENDIAN 1
 #define  IS_BIG_ENDIAN 1
 #define HAVE_LONG_LONG
 #define  HAVE_ALIGNED_DOUBLES
 #define  HAVE_ALIGNED_LONGLONGS
 
 #define PR_BYTES_PER_BYTE   1
--- a/pr/include/md/_netbsd.h
+++ b/pr/include/md/_netbsd.h
@@ -28,16 +28,18 @@
 #elif defined(__alpha__)
 #define _PR_SI_ARCHITECTURE "alpha"
 #elif defined(__m68k__)
 #define _PR_SI_ARCHITECTURE "m68k"
 #elif defined(__powerpc__)
 #define _PR_SI_ARCHITECTURE "powerpc"
 #elif defined(__sparc__)
 #define _PR_SI_ARCHITECTURE "sparc"
+#elif defined(__mips__)
+#define _PR_SI_ARCHITECTURE "mips"
 #elif defined(__arm32__)
 #define _PR_SI_ARCHITECTURE "arm32"
 #endif
 
 #define PR_DLL_SUFFIX		".so.1.0"
 
 #define _PR_VMBASE              0x30000000
 #define _PR_STACK_VMBASE	0x50000000
@@ -59,16 +61,18 @@
 #include <setjmp.h>
 
 #define PR_CONTEXT_TYPE	sigjmp_buf
 
 #define CONTEXT(_th) ((_th)->md.context)
 
 #if defined(__i386__) || defined(__sparc__) || defined(__m68k__) || defined(__powerpc__)
 #define JB_SP_INDEX 2
+#elif defined(__mips__)
+#define JB_SP_INDEX 4
 #elif defined(__alpha__)
 #define JB_SP_INDEX 34
 #elif defined(__arm32__)
 /*
  * On the arm32, the jmpbuf regs underwent a name change after NetBSD 1.3.
  */
 #ifdef JMPBUF_REG_R13
 #define JB_SP_INDEX JMPBUF_REG_R13