456
|
1 /* machine description file for hp9000 series 200 or 300 on either HPUX or BSD.
|
|
2 Copyright (C) 1985 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 1, 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 GNU Emacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
19
|
|
20
|
|
21 /* The following line tells the configuration script what sort of
|
|
22 operating system this machine is likely to run.
|
|
23 USUAL-OPSYS="note"
|
|
24
|
|
25 NOTE-START
|
|
26 HP 9000 series 200 or 300 (-machine=hp9000s300)
|
|
27
|
|
28 These machines are 68000-series CPUs running HP-UX
|
|
29 (a derivative of sysV with some BSD features) or BSD 4.3 ported by Utah.
|
|
30
|
|
31 If you're running HP-UX, specify `-opsystem=hpux'.
|
|
32
|
|
33 If you're running Utah's BSD port, don't use this -machine option;
|
|
34 instead, specify `-machine=hp300bsd' and `-opsystem=bsd4-3'.
|
|
35 NOTE-END */
|
|
36
|
|
37 /* Define this symbol if you are running a version of HP-UX
|
|
38 which predates version 6.5 */
|
|
39
|
|
40 /* #define NOMULTIPLEJOBS */
|
|
41
|
|
42 /* Define this symbol if you are running a version of HP-UX
|
|
43 which predates version 6.01 */
|
|
44
|
|
45 /* #define HPUX_5 */
|
|
46
|
|
47 /* The following three symbols give information on
|
|
48 the size of various data types. */
|
|
49
|
|
50 #define SHORTBITS 16 /* Number of bits in a short */
|
|
51
|
|
52 #define INTBITS 32 /* Number of bits in an int */
|
|
53
|
|
54 #define LONGBITS 32 /* Number of bits in a long */
|
|
55
|
|
56 /* Define BIG_ENDIAN iff lowest-numbered byte in a word
|
|
57 is the most significant byte. */
|
|
58
|
|
59 #define BIG_ENDIAN
|
|
60
|
|
61 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
|
|
62 * group of arguments and treat it as an array of the arguments. */
|
|
63
|
|
64 /* #define NO_ARG_ARRAY */
|
|
65
|
|
66 /* Define WORD_MACHINE if addresses and such have
|
|
67 * to be corrected before they can be used as byte counts. */
|
|
68
|
|
69 /* #define WORD_MACHINE */
|
|
70
|
|
71 /* Now define a symbol for the cpu type, if your compiler
|
|
72 does not define it automatically. */
|
|
73
|
|
74 #ifndef hp9000s300
|
|
75 #define hp9000s300
|
|
76 #endif
|
|
77
|
|
78 /* Use type int rather than a union, to represent Lisp_Object */
|
|
79 /* This is desirable for most machines. */
|
|
80
|
|
81 #define NO_UNION_TYPE
|
|
82
|
|
83 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
|
|
84 the 24-bit bit field into an int. In other words, if bit fields
|
|
85 are always unsigned.
|
|
86
|
|
87 If you use NO_UNION_TYPE, this flag does not matter. */
|
|
88
|
|
89 #define EXPLICIT_SIGN_EXTEND
|
|
90
|
|
91 /* Define CANNOT_DUMP on machines where unexec does not work.
|
|
92 Then the function dump-emacs will not be defined
|
|
93 and temacs will do (load "loadup") automatically unless told otherwise. */
|
|
94
|
|
95 /* #define CANNOT_DUMP */
|
|
96
|
|
97 /* Define VIRT_ADDR_VARIES if the virtual addresses of
|
|
98 pure and impure space as loaded can vary, and even their
|
|
99 relative order cannot be relied on.
|
|
100
|
|
101 Otherwise Emacs assumes that text space precedes data space,
|
|
102 numerically. */
|
|
103
|
|
104 /* #define VIRT_ADDR_VARIES */
|
|
105
|
|
106 /* For University of Utah 4.3bsd implemetation on HP300s.
|
|
107 The #ifndef __GNUC__ definitions are required for the "standard" cc,
|
|
108 a very old, brain-dead version of PCC. */
|
|
109
|
|
110 #ifdef BSD4_3
|
|
111 /* Tell crt0.c that this is an ordinary 68020. */
|
|
112 #undef hp9000s300
|
|
113 #define CRT0_DUMMIES bogus_a6,
|
|
114
|
|
115 #define HAVE_ALLOCA
|
|
116
|
|
117 #ifndef __GNUC__
|
|
118 #define LIBS_DEBUG /* don't have -lg that works */
|
|
119 #define C_DEBUG_SWITCH /* don't support -g */
|
|
120 #endif
|
|
121
|
|
122 #undef LOAD_AVE_TYPE
|
|
123 #undef LOAD_AVE_CVT
|
|
124 #define LOAD_AVE_TYPE long
|
|
125 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0))
|
|
126
|
|
127 #endif /* BSD4_3 */
|
|
128
|
|
129 #ifndef BSD4_3
|
|
130 /* The following definitions are for HPUX only. */
|
|
131
|
|
132 /* The symbol in the kernel where the load average is found
|
|
133 is named _avenrun on this machine. */
|
|
134
|
|
135 #define LDAV_SYMBOL "_avenrun"
|
|
136
|
|
137 /* Data type of load average, as read out of kmem. */
|
|
138
|
|
139 #define LOAD_AVE_TYPE double
|
|
140
|
|
141 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
142
|
|
143 #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0))
|
|
144
|
|
145 /* This library is needed with -g, on the 200/300 only. */
|
|
146
|
|
147 #if !defined(__GNUC__) || defined(__HPUX_ASM__)
|
|
148 #define LIBS_DEBUG /usr/lib/end.o
|
|
149 #endif
|
|
150
|
|
151 /* The symbol FIONREAD is defined, but the feature does not work
|
|
152 on the 200/300. */
|
|
153
|
|
154 #define BROKEN_FIONREAD
|
|
155
|
|
156 /* In older versions of hpux, for unknown reasons, S_IFLNK is defined
|
|
157 even though symbolic links do not exist.
|
|
158 Make sure our conditionals based on S_IFLNK are not confused.
|
|
159
|
|
160 Here we assume that stat.h is included before config.h
|
|
161 so that we can override it here.
|
|
162
|
|
163 Version 6 of HP-UX has symbolic links. */
|
|
164
|
|
165 #ifdef HPUX_5
|
|
166 #undef S_IFLNK
|
|
167 #endif
|
|
168
|
|
169 /* Define the BSTRING functions in terms of the sysV functions.
|
|
170 Version 6 of HP-UX supplies these in the BSD library. */
|
|
171
|
|
172 #ifdef HPUX_5
|
|
173 #define bcopy(a,b,s) memcpy (b,a,s)
|
|
174 #define bzero(a,s) memset (a,0,s)
|
|
175 #define bcmp memcmp
|
|
176 #endif
|
|
177
|
|
178 /* On USG systems these have different names.
|
|
179 Version 6 of HP-UX supplies these in the BSD library. */
|
|
180
|
|
181 #ifdef HPUX_5
|
|
182 #define index strchr
|
|
183 #define rindex strrchr
|
|
184 #endif
|
|
185
|
|
186 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300
|
|
187 * Emacs to run on both 68010 and 68020 based hp-ux's.
|
|
188 *
|
|
189 * Define OLD_HP_ASSEMBLER if you have an ancient assembler
|
|
190 *
|
|
191 * Define HPUX_68010 if you are using the new assembler but
|
|
192 * compiling for a s200 (upgraded) or s310. 68010 based
|
|
193 * processor without 68881.
|
|
194 */
|
|
195
|
|
196 /* These switches increase the size of some internal C compiler tables.
|
|
197 They are required for compiling the X11 interface files. */
|
|
198
|
|
199 #ifndef HPUX_5
|
|
200 #ifndef __GNUC__
|
|
201 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000
|
|
202 #endif
|
|
203 #endif
|
|
204
|
|
205 #endif /* not BSD4_3 */
|
|
206
|
|
207 /* Define NEED_BSDTTY if you have such. */
|
|
208
|
|
209 #ifndef NOMULTIPLEJOBS
|
|
210 #define NEED_BSDTTY
|
|
211 #endif
|
|
212
|
|
213 #ifndef NOT_C_CODE
|
|
214 #ifndef NO_SHORTNAMES
|
|
215 #include <sys/wait.h>
|
|
216 #define WAITTYPE int
|
|
217 #endif
|
|
218 #define WRETCODE(w) (((w) >> 8) & 0377)
|
|
219 #endif
|