0
|
1 /* Machine description file for intel 386.
|
|
2 Copyright (C) 1987 Free Software Foundation, Inc.
|
|
3
|
|
4 This file is part of GNU Emacs.
|
|
5
|
|
6 GNU Emacs is free software; you can redistribute it and/or modify
|
|
7 it under the terms of the GNU General Public License as published by
|
|
8 the Free Software Foundation; either version 2, or (at your option)
|
|
9 any later version.
|
|
10
|
|
11 GNU Emacs is distributed in the hope that it will be useful,
|
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 GNU General Public License for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
|
17 along with XEmacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
|
20
|
|
21 /* Synched up with: FSF 19.31. */
|
|
22
|
|
23 /* The following line tells the configuration script what sort of
|
|
24 operating system this machine is likely to run.
|
|
25 USUAL-OPSYS="note"
|
|
26
|
|
27 NOTE-START
|
|
28 Intel 386 (-machine=intel386 or -machine=is386.h)
|
|
29
|
|
30 The possibilities for -opsystem are: bsd4-2, usg5-2-2, usg5-3,
|
|
31 isc2-2, 386-ix, esix, linux, sco3.2v4, and xenix.
|
|
32
|
|
33 18.58 should support a wide variety of operating systems.
|
|
34 Use isc2-2 for Interactive 386/ix version 2.2.
|
|
35 Use 386ix for prior versions.
|
|
36 Use esix for Esix.
|
|
37 Use linux for Linux.
|
|
38 It isn't clear what to do on an SCO system.
|
|
39
|
|
40 -machine=is386 is used for an Integrated Solutions 386 machine.
|
|
41 It may also be correct for Microport systems.
|
|
42
|
|
43 Cubix QBx/386 (-machine=intel386 -opsystem=usg5-3)
|
|
44
|
|
45 Changes merged in 19.1. Systems before 2/A/0 may fail to compile etags.c
|
|
46 due to a compiler bug.
|
|
47
|
|
48 Prime EXL (-machine=intel386 -opsystem=usg5-3)
|
|
49
|
|
50 Minor changes merged in 19.1.
|
|
51 NOTE-END */
|
|
52
|
|
53 /* Define WORD_MACHINE if addresses and such have
|
|
54 * to be corrected before they can be used as byte counts. */
|
|
55
|
|
56 /* #define WORD_MACHINE */
|
|
57
|
|
58 /* Now define a symbol for the cpu type, if your compiler
|
|
59 does not define it automatically:
|
|
60 Ones defined so far include vax, m68000, ns16000, pyramid,
|
|
61 orion, tahoe, APOLLO and many others */
|
|
62
|
|
63 #define INTEL386
|
|
64
|
|
65 /* crt0.c, if it is used, should use the i386-bsd style of entry.
|
|
66 with no extra dummy args. On USG and XENIX,
|
|
67 NO_REMAP says this isn't used. */
|
|
68
|
|
69 /* Mly 16-Jan-96 16:38:32: this is part of a prototype -- same bug present in
|
|
70 other m*.h files */
|
|
71 #define CRT0_DUMMIES int bogus_fp,
|
|
72
|
|
73 /* crt0.c should define a symbol `start' and do .globl with a dot. */
|
|
74
|
|
75 #define DOT_GLOBAL_START
|
|
76
|
|
77 #ifdef XENIX
|
|
78 /* Data type of load average, as read out of kmem. */
|
|
79 #define LOAD_AVE_TYPE short
|
|
80
|
|
81 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
82 #define LOAD_AVE_CVT(x) (((double) (x)) * 100.0 / FSCALE)
|
|
83
|
|
84 #define FSCALE 256.0 /* determined by experimentation... */
|
|
85 #endif
|
|
86
|
|
87
|
|
88 #ifdef SOLARIS2
|
|
89 /* Data type of load average, as read out of kmem. */
|
|
90 #define LOAD_AVE_TYPE long
|
|
91
|
|
92 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
93 /* This is totally uncalibrated. */
|
|
94 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
|
|
95
|
|
96 /* configure thinks solaris X86 has gethostname, but it does not work,
|
|
97 so undefine it. */
|
|
98 #undef HAVE_GETHOSTNAME
|
|
99
|
|
100 #else /* not SOLARIS2 */
|
|
101 #ifdef USG5_4 /* Older USG systems do not support the load average. */
|
|
102 /* Data type of load average, as read out of kmem. */
|
|
103
|
|
104 #define LOAD_AVE_TYPE long
|
|
105
|
|
106 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
107 /* This is totally uncalibrated. */
|
|
108
|
|
109 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
|
|
110 #define FSCALE 256.0
|
|
111 #endif
|
|
112 #endif /* not SOLARIS2 */
|
|
113
|
|
114 /* Define CANNOT_DUMP on machines where unexec does not work.
|
|
115 Then the function dump-emacs will not be defined
|
|
116 and temacs will do (load "loadup") automatically unless told otherwise. */
|
|
117
|
|
118 /* #define CANNOT_DUMP */
|
|
119
|
|
120 /* Define VIRT_ADDR_VARIES if the virtual addresses of
|
|
121 pure and impure space as loaded can vary, and even their
|
|
122 relative order cannot be relied on.
|
|
123
|
|
124 Otherwise Emacs assumes that text space precedes data space,
|
|
125 numerically. */
|
|
126
|
|
127 /* #define VIRT_ADDR_VARIES */
|
|
128
|
|
129 #ifdef XENIX
|
|
130
|
|
131 /* Define NO_REMAP if memory segmentation makes it not work well
|
|
132 to change the boundary between the text section and data section
|
|
133 when Emacs is dumped. If you define this, the preloaded Lisp
|
|
134 code will not be sharable; but that's better than failing completely. */
|
|
135
|
|
136 #define NO_REMAP
|
|
137
|
|
138 #define STACK_DIRECTION -1
|
|
139
|
|
140 /* Since cannot purify, use standard Xenix 386 startup code. */
|
|
141
|
|
142 #define START_FILES /lib/386/Sseg.o pre-crt0.o /lib/386/Scrt0.o
|
|
143
|
|
144 /* These really use terminfo. */
|
|
145
|
|
146 #define LIBS_TERMCAP /lib/386/Slibcurses.a \
|
|
147 /lib/386/Slibtinfo.a /lib/386/Slibx.a
|
|
148
|
|
149 /* Standard libraries for this machine. Since `-l' doesn't work in `ld'. */
|
|
150 /* '__fltused' is unresolved w/o Slibcfp.a */
|
|
151 #define LIB_STANDARD /lib/386/Slibcfp.a /lib/386/Slibc.a
|
|
152 #else /* not XENIX */
|
|
153
|
|
154 /* this brings in alloca() if we're using cc */
|
|
155 #ifdef USG
|
159
|
156 #if 0 /* mrb: -lPW is now autodetected, anyways */
|
0
|
157 #ifndef LIB_STANDARD
|
|
158 #ifdef USG5_4
|
|
159 #define LIB_STANDARD -lc
|
|
160 #else /* not USG5_4 */
|
|
161 #define LIB_STANDARD -lPW -lc
|
|
162 #endif /* not USG5_4 */
|
|
163 #endif /* LIB_STANDARD */
|
159
|
164 #endif /* 0 */
|
0
|
165
|
159
|
166 #if 0 /* ALLOCA is now autodetected */
|
0
|
167 #define HAVE_ALLOCA
|
159
|
168 #endif
|
0
|
169 #define NO_REMAP
|
|
170 #define TEXT_START 0
|
|
171 #endif /* USG */
|
|
172 #endif /* not XENIX */
|
|
173
|
|
174 #ifdef USG5_4
|
|
175 #define DATA_SEG_BITS 0x08000000
|
|
176 #endif
|
|
177
|
|
178 #ifdef MSDOS
|
|
179 #define NO_REMAP
|
|
180 #endif
|
|
181
|
|
182 #ifdef WINDOWSNT
|
|
183 #define VIRT_ADDR_VARIES
|
|
184 #define DATA_END get_data_end ()
|
|
185 #define DATA_START get_data_start ()
|
|
186 #define HAVE_ALLOCA
|
|
187 #endif
|
|
188
|
|
189 #ifdef linux
|
|
190 /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */
|
|
191 /* we cannot get the maximum address for brk */
|
|
192 #define ULIMIT_BREAK_VALUE (32*1024*1024)
|
|
193
|
|
194 #define SEGMENT_MASK ((SEGMENT_SIZE)-1)
|
|
195 #endif
|
|
196
|
|
197 #ifdef __GNUC__
|
|
198 /* GCC's alloca() is semi-broken. See lisp.h.
|
|
199
|
|
200 This brokenness has been confirmed under both Linux and NetBSD.
|
|
201 It may also exist on non-Intel architectures. */
|
|
202 #define BROKEN_ALLOCA_IN_FUNCTION_CALLS
|
|
203 #endif
|
|
204
|
|
205 /* XEmacs change: John Hughes <john@AtlanTech.COM> says using vfork
|
|
206 under i386-unknown-sysv4.2 makes C-g sometimes cause a SIGSEGV
|
|
207 in TTY mode; the problem goes away if you use fork */
|
|
208 #ifdef USG5_4_2
|
|
209 #define vfork fork
|
|
210 #endif
|