1 /* m- file for Mips machines.
2 Copyright (C) 1987, 1992, 1999, 2001, 2002, 2003, 2004, 2005, 2006,
3 2007, 2008 Free Software Foundation, Inc.
5 This file is part of GNU Emacs.
7 GNU Emacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
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.
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21 /* The following line tells the configuration script what sort of
22 operating system this machine is likely to run.
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.
30 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
31 is the most significant byte. */
33 #if ! (defined (__MIPSEL__) || defined (MIPSEL) || defined (_MIPSEL))
34 #define WORDS_BIG_ENDIAN
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. */
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. */
45 #define SIGN_EXTEND_CHAR(c) ((signed char)(c))
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 */
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
59 This flag only matters if you use USE_LISP_UNION_TYPE. */
61 #define EXPLICIT_SIGN_EXTEND
63 /* Data type of load average, as read out of kmem. */
65 #define LOAD_AVE_TYPE long
67 /* Convert that into an integer that is 100 for a load average of 1.0 */
69 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0)
71 /* CDC EP/IX 1.4.3 uses /unix */
75 #define KERNEL_FILE "/unix"
76 #endif /* not __linux__ */
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. */
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.
88 Otherwise Emacs assumes that text space precedes data space,
91 /* #define VIRT_ADDR_VARIES */
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. */
100 /* This machine requires completely different unexec code
101 which lives in a separate file. Specify the file name. */
103 #if !defined(__linux__) && !defined(__NetBSD__)
105 #define UNEXEC unexmips.o
106 #endif /* not __linux__ && not __NetBSD__ */
108 /* Describe layout of the address space in an executing process. */
111 #define TEXT_START 0x00400000
112 #define DATA_START 0x10000000
113 #define DATA_SEG_BITS 0x10000000
114 #else /* not __linux__ */
115 #define TEXT_START 0x400000
116 #define DATA_START 0x800000
117 #endif /* __linux__ */
119 /* Alter some of the options used when linking. */
121 #if !defined(__linux__)
124 /* DECstations don't have this library.
125 #define LIBS_MACHINE -lmld */
127 #define LD_SWITCH_MACHINE -D 800000
130 #if defined (__NetBSD__) || defined (__OpenBSD__)
131 #else /* bsd with elf */
132 #define LINKER /bsd43/bin/ld
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
139 #define C_SWITCH_MACHINE -I/usr/include/bsd
140 #define C_DEBUG_SWITCH -O -g3
142 #endif /* bsd with elf */
143 #else /* not BSD_SYSTEM */
145 #if defined(__GNUC__) && defined(_ABIN32)
148 #define LIBS_MACHINE -lmld
151 #endif /* not BSD_SYSTEM */
152 #endif /* not __linux__ */
154 /* The standard definitions of these macros would work ok,
155 but these are faster because the constants are short. */
157 #define XUINT(a) (((unsigned)(a) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS))
159 #define XSET(var, type, ptr) \
161 ((int)(type) << VALBITS) \
162 + (((unsigned) (ptr) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS)))
164 #if !defined (__linux__)
167 /* Cancel certain parts of standard sysV support. */
168 #undef NONSYSTEM_DIR_LIBRARY
169 #define SYSV_SYSTEM_DIR
172 /* Don't try to use SIGIO or FIONREAD even though they are defined. */
174 #define BROKEN_FIONREAD
176 /* Describe special kernel features. */
181 #include <bsd/sys/time.h>
184 /* The `select' in the system won't work for pipes, so don't use it. */
185 #undef HAVE_SELECT /* override configuration decision */
190 #undef NOMULTIPLEJOBS
200 #undef MAIL_USE_FLOCK /* Someone should check this. */
201 #endif /* BSD_SYSTEM */
203 #endif /* not __linux__ */
205 /* arch-tag: 8fd020ee-78a7-4d87-96ce-6129f52f7bee
206 (do not change this comment) */