Commit | Line | Data |
---|---|---|
ec558adc | 1 | /* m- file for Mips machines. |
eb3d11ef GM |
2 | Copyright (C) 1987, 1992, 1999, 2001, 2002, 2003, 2004, 2005, 2006, |
3 | 2007, 2008 Free Software Foundation, Inc. | |
20c428fd JB |
4 | |
5 | This file is part of GNU Emacs. | |
6 | ||
eb3d11ef | 7 | GNU Emacs is free software: you can redistribute it and/or modify |
20c428fd | 8 | it under the terms of the GNU General Public License as published by |
eb3d11ef GM |
9 | the Free Software Foundation, either version 3 of the License, or |
10 | (at your option) any later version. | |
20c428fd JB |
11 | |
12 | GNU Emacs is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
eb3d11ef | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
20c428fd JB |
19 | |
20 | ||
177c0ea7 | 21 | /* The following line tells the configuration script what sort of |
20c428fd JB |
22 | operating system this machine is likely to run. |
23 | USUAL-OPSYS="note" | |
24 | ||
25 | NOTE-START | |
540c2788 DL |
26 | Use mips4.h for RISCOS version 4; use s-bsd4-3.h with the BSD world. |
27 | Note that the proper m file for the Decstation is pmax.h. | |
20c428fd JB |
28 | NOTE-END */ |
29 | ||
22e9fe24 | 30 | /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word |
74d3f806 KH |
31 | is the most significant byte. */ |
32 | ||
540c2788 | 33 | #if ! (defined (__MIPSEL__) || defined (MIPSEL) || defined (_MIPSEL)) |
74d3f806 | 34 | #define WORDS_BIG_ENDIAN |
540c2788 | 35 | #endif |
74d3f806 | 36 | |
20c428fd JB |
37 | /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
38 | * group of arguments and treat it as an array of the arguments. */ | |
39 | ||
40 | #define NO_ARG_ARRAY | |
41 | ||
ec558adc JB |
42 | /* Define how to take a char and sign-extend into an int. |
43 | On machines where char is signed, this is a no-op. */ | |
44 | ||
45 | #define SIGN_EXTEND_CHAR(c) ((signed char)(c)) | |
46 | ||
20c428fd JB |
47 | /* Now define a symbol for the cpu type, if your compiler |
48 | does not define it automatically: | |
49 | Ones defined so far include vax, m68000, ns16000, pyramid, | |
50 | orion, tahoe, APOLLO and many others */ | |
51 | #ifndef mips | |
52 | # define mips | |
53 | #endif | |
54 | ||
20c428fd JB |
55 | /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend |
56 | the 24-bit bit field into an int. In other words, if bit fields | |
57 | are always unsigned. | |
58 | ||
6e5cb96f | 59 | This flag only matters if you use USE_LISP_UNION_TYPE. */ |
20c428fd JB |
60 | |
61 | #define EXPLICIT_SIGN_EXTEND | |
62 | ||
63 | /* Data type of load average, as read out of kmem. */ | |
64 | ||
65 | #define LOAD_AVE_TYPE long | |
66 | ||
67 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
68 | ||
69 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0) | |
70 | ||
96160d21 JB |
71 | /* CDC EP/IX 1.4.3 uses /unix */ |
72 | ||
f5e7cf48 | 73 | #ifndef __linux__ |
96160d21 JB |
74 | #undef KERNEL_FILE |
75 | #define KERNEL_FILE "/unix" | |
f5e7cf48 | 76 | #endif /* not __linux__ */ |
96160d21 | 77 | |
20c428fd JB |
78 | /* Define CANNOT_DUMP on machines where unexec does not work. |
79 | Then the function dump-emacs will not be defined | |
80 | and temacs will do (load "loadup") automatically unless told otherwise. */ | |
81 | ||
82 | #undef CANNOT_DUMP | |
83 | ||
84 | /* Define VIRT_ADDR_VARIES if the virtual addresses of | |
85 | pure and impure space as loaded can vary, and even their | |
86 | relative order cannot be relied on. | |
87 | ||
88 | Otherwise Emacs assumes that text space precedes data space, | |
89 | numerically. */ | |
90 | ||
91 | /* #define VIRT_ADDR_VARIES */ | |
92 | ||
20c428fd JB |
93 | /* Define NO_REMAP if memory segmentation makes it not work well |
94 | to change the boundary between the text section and data section | |
95 | when Emacs is dumped. If you define this, the preloaded Lisp | |
96 | code will not be sharable; but that's better than failing completely. */ | |
97 | ||
98 | #define NO_REMAP | |
99 | ||
100 | /* This machine requires completely different unexec code | |
101 | which lives in a separate file. Specify the file name. */ | |
102 | ||
73372e83 | 103 | #if !defined(__linux__) && !defined(__NetBSD__) |
57fdbf40 | 104 | #undef UNEXEC |
20c428fd | 105 | #define UNEXEC unexmips.o |
73372e83 | 106 | #endif /* not __linux__ && not __NetBSD__ */ |
20c428fd JB |
107 | |
108 | /* Describe layout of the address space in an executing process. */ | |
109 | ||
f5e7cf48 RS |
110 | #ifdef __linux__ |
111 | #define TEXT_START 0x00400000 | |
112 | #define DATA_START 0x10000000 | |
113 | #define DATA_SEG_BITS 0x10000000 | |
114 | #else /* not __linux__ */ | |
20c428fd JB |
115 | #define TEXT_START 0x400000 |
116 | #define DATA_START 0x800000 | |
f5e7cf48 | 117 | #endif /* __linux__ */ |
20c428fd JB |
118 | |
119 | /* Alter some of the options used when linking. */ | |
120 | ||
e39a993c | 121 | #if !defined(__linux__) |
6df54671 | 122 | #ifdef BSD_SYSTEM |
20c428fd | 123 | |
ec558adc | 124 | /* DECstations don't have this library. |
20c428fd JB |
125 | #define LIBS_MACHINE -lmld */ |
126 | ||
127 | #define LD_SWITCH_MACHINE -D 800000 | |
128 | #define LIBS_DEBUG | |
129 | ||
1e6a9aaf GM |
130 | #if defined (__NetBSD__) || defined (__OpenBSD__) |
131 | #else /* bsd with elf */ | |
ec558adc | 132 | #define LINKER /bsd43/bin/ld |
42f30377 | 133 | |
20c428fd JB |
134 | #define LD_SWITCH_MACHINE -D 800000 -g3 |
135 | #define START_FILES pre-crt0.o /usr/lib/crt1.o | |
136 | #define LIB_STANDARD -lbsd -lc /usr/lib/crtn.o | |
137 | #define LIBS_TERMCAP -lcurses | |
138 | ||
ec558adc | 139 | #define C_SWITCH_MACHINE -I/usr/include/bsd |
20c428fd JB |
140 | #define C_DEBUG_SWITCH -O -g3 |
141 | ||
73372e83 EZ |
142 | #endif /* bsd with elf */ |
143 | #else /* not BSD_SYSTEM */ | |
144 | ||
145 | #if defined(__GNUC__) && defined(_ABIN32) | |
146 | #define LIBS_MACHINE | |
147 | #else | |
148 | #define LIBS_MACHINE -lmld | |
149 | #endif | |
150 | ||
6df54671 | 151 | #endif /* not BSD_SYSTEM */ |
e39a993c | 152 | #endif /* not __linux__ */ |
20c428fd JB |
153 | \f |
154 | /* The standard definitions of these macros would work ok, | |
155 | but these are faster because the constants are short. */ | |
156 | ||
5964b664 | 157 | #define XUINT(a) (((unsigned)(a) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS)) |
20c428fd | 158 | |
ec558adc JB |
159 | #define XSET(var, type, ptr) \ |
160 | ((var) = \ | |
161 | ((int)(type) << VALBITS) \ | |
5964b664 | 162 | + (((unsigned) (ptr) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS))) |
ec558adc | 163 | \f |
e39a993c | 164 | #if !defined (__linux__) |
20c428fd JB |
165 | #ifdef USG |
166 | ||
167 | /* Cancel certain parts of standard sysV support. */ | |
168 | #undef NONSYSTEM_DIR_LIBRARY | |
169 | #define SYSV_SYSTEM_DIR | |
170 | #undef static | |
171 | ||
172 | /* Don't try to use SIGIO or FIONREAD even though they are defined. */ | |
332d98c7 | 173 | #define BROKEN_SIGIO |
20c428fd JB |
174 | #define BROKEN_FIONREAD |
175 | ||
176 | /* Describe special kernel features. */ | |
177 | ||
178 | #define HAVE_SYSVIPC | |
179 | ||
f2a77c3a | 180 | #if defined(emacs) |
20c428fd JB |
181 | #include <bsd/sys/time.h> |
182 | #endif | |
183 | ||
5df58331 KH |
184 | /* The `select' in the system won't work for pipes, so don't use it. */ |
185 | #undef HAVE_SELECT /* override configuration decision */ | |
20c428fd | 186 | |
20c428fd JB |
187 | #define HAVE_PTYS |
188 | #define HAVE_SOCKETS | |
189 | ||
190 | #undef NOMULTIPLEJOBS | |
20c428fd JB |
191 | |
192 | /* ??? */ | |
193 | #define IRIS | |
194 | ||
ec558adc | 195 | #endif /* USG */ |
20c428fd | 196 | |
6df54671 | 197 | #ifdef BSD_SYSTEM |
20c428fd JB |
198 | #define COFF |
199 | #define TERMINFO | |
200 | #undef MAIL_USE_FLOCK /* Someone should check this. */ | |
6df54671 | 201 | #endif /* BSD_SYSTEM */ |
ec558adc | 202 | |
e39a993c | 203 | #endif /* not __linux__ */ |
ab5796a9 MB |
204 | |
205 | /* arch-tag: 8fd020ee-78a7-4d87-96ce-6129f52f7bee | |
206 | (do not change this comment) */ |