comparison src/m/hp9000s300.h @ 456:c0335c02f1d7

Initial revision
author Jim Blandy <jimb@redhat.com>
date Fri, 13 Dec 1991 18:49:49 +0000
parents
children 593af70322f0
comparison
equal deleted inserted replaced
455:12af79cf16ee 456:c0335c02f1d7
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 /* Define how to take a char and sign-extend into an int.
72 On machines where char is signed, this is a no-op. */
73
74 #define SIGN_EXTEND_CHAR(c) (c)
75
76 /* Now define a symbol for the cpu type, if your compiler
77 does not define it automatically. */
78
79 #ifndef hp9000s300
80 #define hp9000s300
81 #endif
82
83 /* Use type int rather than a union, to represent Lisp_Object */
84 /* This is desirable for most machines. */
85
86 #define NO_UNION_TYPE
87
88 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
89 the 24-bit bit field into an int. In other words, if bit fields
90 are always unsigned.
91
92 If you use NO_UNION_TYPE, this flag does not matter. */
93
94 #define EXPLICIT_SIGN_EXTEND
95
96 /* Define CANNOT_DUMP on machines where unexec does not work.
97 Then the function dump-emacs will not be defined
98 and temacs will do (load "loadup") automatically unless told otherwise. */
99
100 /* #define CANNOT_DUMP */
101
102 /* Define VIRT_ADDR_VARIES if the virtual addresses of
103 pure and impure space as loaded can vary, and even their
104 relative order cannot be relied on.
105
106 Otherwise Emacs assumes that text space precedes data space,
107 numerically. */
108
109 /* #define VIRT_ADDR_VARIES */
110
111 /* For University of Utah 4.3bsd implemetation on HP300s.
112 The #ifndef __GNUC__ definitions are required for the "standard" cc,
113 a very old, brain-dead version of PCC. */
114
115 #ifdef BSD4_3
116 /* Tell crt0.c that this is an ordinary 68020. */
117 #undef hp9000s300
118 #define CRT0_DUMMIES bogus_a6,
119
120 #define HAVE_ALLOCA
121
122 #ifndef __GNUC__
123 #define LIBS_DEBUG /* don't have -lg that works */
124 #define C_DEBUG_SWITCH /* don't support -g */
125 #endif
126
127 #undef LOAD_AVE_TYPE
128 #undef LOAD_AVE_CVT
129 #define LOAD_AVE_TYPE long
130 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0))
131
132 #endif /* BSD4_3 */
133
134 #ifndef BSD4_3
135 /* The following definitions are for HPUX only. */
136
137 /* The symbol in the kernel where the load average is found
138 is named _avenrun on this machine. */
139
140 #define LDAV_SYMBOL "_avenrun"
141
142 /* Data type of load average, as read out of kmem. */
143
144 #define LOAD_AVE_TYPE double
145
146 /* Convert that into an integer that is 100 for a load average of 1.0 */
147
148 #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0))
149
150 /* This library is needed with -g, on the 200/300 only. */
151
152 #if !defined(__GNUC__) || defined(__HPUX_ASM__)
153 #define LIBS_DEBUG /usr/lib/end.o
154 #endif
155
156 /* The symbol FIONREAD is defined, but the feature does not work
157 on the 200/300. */
158
159 #define BROKEN_FIONREAD
160
161 /* In older versions of hpux, for unknown reasons, S_IFLNK is defined
162 even though symbolic links do not exist.
163 Make sure our conditionals based on S_IFLNK are not confused.
164
165 Here we assume that stat.h is included before config.h
166 so that we can override it here.
167
168 Version 6 of HP-UX has symbolic links. */
169
170 #ifdef HPUX_5
171 #undef S_IFLNK
172 #endif
173
174 /* Define the BSTRING functions in terms of the sysV functions.
175 Version 6 of HP-UX supplies these in the BSD library. */
176
177 #ifdef HPUX_5
178 #define bcopy(a,b,s) memcpy (b,a,s)
179 #define bzero(a,s) memset (a,0,s)
180 #define bcmp memcmp
181 #endif
182
183 /* On USG systems these have different names.
184 Version 6 of HP-UX supplies these in the BSD library. */
185
186 #ifdef HPUX_5
187 #define index strchr
188 #define rindex strrchr
189 #endif
190
191 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300
192 * Emacs to run on both 68010 and 68020 based hp-ux's.
193 *
194 * Define OLD_HP_ASSEMBLER if you have an ancient assembler
195 *
196 * Define HPUX_68010 if you are using the new assembler but
197 * compiling for a s200 (upgraded) or s310. 68010 based
198 * processor without 68881.
199 */
200
201 /* These switches increase the size of some internal C compiler tables.
202 They are required for compiling the X11 interface files. */
203
204 #ifndef HPUX_5
205 #ifndef __GNUC__
206 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000
207 #endif
208 #endif
209
210 #endif /* not BSD4_3 */
211
212 /* Define NEED_BSDTTY if you have such. */
213
214 #ifndef NOMULTIPLEJOBS
215 #define NEED_BSDTTY
216 #endif
217
218 #ifndef NOT_C_CODE
219 #ifndef NO_SHORTNAMES
220 #include <sys/wait.h>
221 #define WAITTYPE int
222 #endif
223 #define WRETCODE(w) (((w) >> 8) & 0377)
224 #endif