]> code.delx.au - gnu-emacs/blobdiff - src/m/intel386.h
[WINDOWSNT]: (VIRT_ADDR_VARIES, DATA_END, DATA_START, HAVE_ALLOCA): Defined.
[gnu-emacs] / src / m / intel386.h
index c0c7608e38ab22c1e4b812f9271b9d78efe9a4f5..e609c5f650dda2705e26a5ff72fe97abc2f4ee03 100644 (file)
@@ -63,9 +63,10 @@ NOTE-END */
 
 #define LONGBITS 32            /* Number of bits in a long */
 
-/* i386 is not big-endian: lowest numbered byte is least significant. */
+/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
+   is the most significant byte.  */
 
-/* #undef BIG_ENDIAN */
+#undef WORDS_BIG_ENDIAN
 
 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
  * group of arguments and treat it as an array of the arguments.  */
@@ -104,36 +105,50 @@ NOTE-END */
 
 /* Convert that into an integer that is 100 for a load average of 1.0  */
 #define LOAD_AVE_CVT(x) (((double) (x)) * 100.0 / FSCALE)
-  
+
 #define FSCALE 256.0         /* determined by experimentation...  */
 #endif
 
-#ifdef USG5_4 /* Older USG systems do not support the load average.  */
-/* Data type of load average, as read out of kmem.  */
 
+#ifdef SOLARIS2
+/* Data type of load average, as read out of kmem.  */
 #define LOAD_AVE_TYPE long
 
 /* Convert that into an integer that is 100 for a load average of 1.0  */
 /* This is totally uncalibrated. */
-
 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
-#define FSCALE 256.0
+
+#ifndef SOLARIS2_4
+/* j.w.hawtin@lut.ac.uk says Solaris 2.1 on the X86 needs -lkvm, and it 
+   already has FSCALE defined in a system header.  */
+#define LIBS_MACHINE -lkvm
+
+/* 14/9/84 J.W.Hawtin@lut.ac.uk Solaris 2.1 X86 does not like -traditional 
+   with GCC on the C_SWITCH_SYSTEM flags.  */
+#ifdef __GNUC__
+#undef C_SWITCH_SYSTEM
+#endif /* GCC */
+#define HAVE_VFORK
+
 #endif
 
-#ifdef SOLARIS2
+/* configure thinks solaris X86 has gethostname, but it does not work,
+   so undefine it.  */
+#undef HAVE_GETHOSTNAME
+
+#else /* not SOLARIS2 */
+#ifdef USG5_4 /* Older USG systems do not support the load average.  */
 /* Data type of load average, as read out of kmem.  */
+
 #define LOAD_AVE_TYPE long
 
 /* Convert that into an integer that is 100 for a load average of 1.0  */
 /* This is totally uncalibrated. */
-#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
 
-/* j.w.hawtin@lut.ac.uk says Solaris 2.1 on the X86 needs -lkvm, and it 
-   already has FSCALE defined in a system header.  configure thinks solaris
-   X86 has gethostname but it does not work so undefine it.  */
-#define LIBS_MACHINE -lkvm
-#undef HAVE_GETHOSTNAME
+#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
+#define FSCALE 256.0
 #endif
+#endif /* not SOLARIS2 */
 
 /* Define CANNOT_DUMP on machines where unexec does not work.
    Then the function dump-emacs will not be defined
@@ -177,6 +192,11 @@ NOTE-END */
 #define LIB_STANDARD /lib/386/Slibcfp.a /lib/386/Slibc.a
 #else /* not XENIX */
 
+#ifdef SOLARIS2
+#define VALBITS 26
+#define GCTYPEBITS 5
+#endif
+
 /* this brings in alloca() if we're using cc */
 #ifdef USG
 #ifndef LIB_STANDARD
@@ -190,7 +210,7 @@ NOTE-END */
 #define HAVE_ALLOCA
 #define NO_REMAP 
 #define TEXT_START 0
-#endif /* not USG */
+#endif /* USG */
 #endif /* not XENIX */
 
 #ifdef BSD
@@ -206,3 +226,14 @@ NOTE-END */
 #ifdef USG5_4
 #define DATA_SEG_BITS 0x08000000
 #endif
+
+#ifdef MSDOS
+#define NO_REMAP
+#endif
+
+#ifdef WINDOWSNT
+#define VIRT_ADDR_VARIES
+#define DATA_END       get_data_end ()
+#define DATA_START     get_data_start ()
+#define HAVE_ALLOCA
+#endif