annotate src/m/intel386.h @ 410:de805c49cfc1 r21-2-35

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