aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-23 01:52:54 +0000
committerRichard M. Stallman1997-06-23 01:52:54 +0000
commitf5e7cf48144d1346d154bcc2b534a4d534f503cd (patch)
tree0eb5f7c585b829024edff6a60ece2c3efb0f1539
parent287f502c4670828634fbaf00159e06bba92aa8bf (diff)
downloademacs-f5e7cf48144d1346d154bcc2b534a4d534f503cd.tar.gz
emacs-f5e7cf48144d1346d154bcc2b534a4d534f503cd.zip
Test __linux__ along with NEWSOS5.
(KERNEL_FILE, UNEXEC): Don't redefine them if __linux__. [__linux__] (TEXT_START, DATA_START, DATA_SEG_BITS): Alternate definitions.
-rw-r--r--src/m/mips.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/m/mips.h b/src/m/mips.h
index b51581791fd..f2da4a2aa5a 100644
--- a/src/m/mips.h
+++ b/src/m/mips.h
@@ -79,8 +79,10 @@ NOTE-END */
79 79
80/* CDC EP/IX 1.4.3 uses /unix */ 80/* CDC EP/IX 1.4.3 uses /unix */
81 81
82#ifndef __linux__
82#undef KERNEL_FILE 83#undef KERNEL_FILE
83#define KERNEL_FILE "/unix" 84#define KERNEL_FILE "/unix"
85#endif /* not __linux__ */
84 86
85/* Define CANNOT_DUMP on machines where unexec does not work. 87/* Define CANNOT_DUMP on machines where unexec does not work.
86 Then the function dump-emacs will not be defined 88 Then the function dump-emacs will not be defined
@@ -120,17 +122,25 @@ NOTE-END */
120/* This machine requires completely different unexec code 122/* This machine requires completely different unexec code
121 which lives in a separate file. Specify the file name. */ 123 which lives in a separate file. Specify the file name. */
122 124
125#ifndef __linux__
123#undef UNEXEC 126#undef UNEXEC
124#define UNEXEC unexmips.o 127#define UNEXEC unexmips.o
128#endif /* not __linux__ */
125 129
126/* Describe layout of the address space in an executing process. */ 130/* Describe layout of the address space in an executing process. */
127 131
132#ifdef __linux__
133#define TEXT_START 0x00400000
134#define DATA_START 0x10000000
135#define DATA_SEG_BITS 0x10000000
136#else /* not __linux__ */
128#define TEXT_START 0x400000 137#define TEXT_START 0x400000
129#define DATA_START 0x800000 138#define DATA_START 0x800000
139#endif /* __linux__ */
130 140
131/* Alter some of the options used when linking. */ 141/* Alter some of the options used when linking. */
132 142
133#ifndef NEWSOS5 143#if !defined(NEWSOS5) && !defined(__linux__)
134#ifdef BSD_SYSTEM 144#ifdef BSD_SYSTEM
135 145
136/* DECstations don't have this library. 146/* DECstations don't have this library.
@@ -162,7 +172,7 @@ NOTE-END */
162#endif 172#endif
163 173
164#endif /* not BSD_SYSTEM */ 174#endif /* not BSD_SYSTEM */
165#endif /* not NEWSOS5 */ 175#endif /* not NEWSOS5 && not __linux__ */
166 176
167/* The standard definitions of these macros would work ok, 177/* The standard definitions of these macros would work ok,
168 but these are faster because the constants are short. */ 178 but these are faster because the constants are short. */
@@ -179,7 +189,7 @@ NOTE-END */
179 (((unsigned)(a) << (BITS_PER_INT-GCTYPEBITS-VALBITS)) \ 189 (((unsigned)(a) << (BITS_PER_INT-GCTYPEBITS-VALBITS)) \
180 >> (BITS_PER_INT-GCTYPEBITS-VALBITS))) 190 >> (BITS_PER_INT-GCTYPEBITS-VALBITS)))
181 191
182#ifndef NEWSOS5 192#if !defined (NEWSOS5) && !defined (__linux__)
183#ifdef USG 193#ifdef USG
184 194
185/* Cancel certain parts of standard sysV support. */ 195/* Cancel certain parts of standard sysV support. */
@@ -222,4 +232,4 @@ NOTE-END */
222#undef HAVE_UNION_WAIT 232#undef HAVE_UNION_WAIT
223#endif /* BSD_SYSTEM */ 233#endif /* BSD_SYSTEM */
224 234
225#endif /* not NEWSOS5 */ 235#endif /* not NEWSOS5 && not __linux__ */