Mercurial > emacs
annotate src/m/hp9000s300.h @ 11696:d43754b30133
(bcopy, bzero, bcmp): Don't let string.h prototype these.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 05 May 1995 02:21:21 +0000 |
parents | 23f72b18b420 |
children | 1d4654a97585 |
rev | line source |
---|---|
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 | |
3699 | 8 the Free Software Foundation; either version 2, or (at your option) |
456 | 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'. | |
1112 | 32 If you're running BSD, specify `-opsystem=bsd4-3'. |
456 | 33 NOTE-END */ |
34 | |
1128 | 35 /* I don't understand why we have to do this at all! -JimB */ |
36 #if 0 | |
37 | |
1112 | 38 /* Do this here at the top of the file; including sys/wait.h may |
39 include <endian.h>, which defines BIG_ENDIAN, which will conflict | |
40 with our definition of BIG_ENDIAN if we do this at the bottom. */ | |
41 #ifndef NOT_C_CODE | |
42 #ifndef NO_SHORTNAMES | |
43 #include <sys/wait.h> | |
44 #define WAITTYPE int | |
45 #endif | |
46 #define WRETCODE(w) (((w) >> 8) & 0377) | |
47 #endif | |
48 | |
1128 | 49 #endif |
50 | |
1112 | 51 /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5. */ |
456 | 52 |
53 /* #define NOMULTIPLEJOBS */ | |
54 | |
55 /* Define this symbol if you are running a version of HP-UX | |
56 which predates version 6.01 */ | |
57 | |
58 /* #define HPUX_5 */ | |
59 | |
60 /* The following three symbols give information on | |
61 the size of various data types. */ | |
62 | |
63 #define SHORTBITS 16 /* Number of bits in a short */ | |
64 | |
65 #define INTBITS 32 /* Number of bits in an int */ | |
66 | |
67 #define LONGBITS 32 /* Number of bits in a long */ | |
68 | |
9095
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
69 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
70 is the most significant byte. */ |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
71 |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
72 #define WORDS_BIG_ENDIAN |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
73 |
456 | 74 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
75 * group of arguments and treat it as an array of the arguments. */ | |
76 | |
77 /* #define NO_ARG_ARRAY */ | |
78 | |
79 /* Define WORD_MACHINE if addresses and such have | |
80 * to be corrected before they can be used as byte counts. */ | |
81 | |
82 /* #define WORD_MACHINE */ | |
83 | |
84 /* Now define a symbol for the cpu type, if your compiler | |
85 does not define it automatically. */ | |
86 | |
87 #ifndef hp9000s300 | |
88 #define hp9000s300 | |
89 #endif | |
90 | |
91 /* Use type int rather than a union, to represent Lisp_Object */ | |
92 /* This is desirable for most machines. */ | |
93 | |
94 #define NO_UNION_TYPE | |
95 | |
96 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend | |
97 the 24-bit bit field into an int. In other words, if bit fields | |
98 are always unsigned. | |
99 | |
100 If you use NO_UNION_TYPE, this flag does not matter. */ | |
101 | |
102 #define EXPLICIT_SIGN_EXTEND | |
103 | |
104 /* Define CANNOT_DUMP on machines where unexec does not work. | |
105 Then the function dump-emacs will not be defined | |
106 and temacs will do (load "loadup") automatically unless told otherwise. */ | |
107 | |
108 /* #define CANNOT_DUMP */ | |
109 | |
110 /* Define VIRT_ADDR_VARIES if the virtual addresses of | |
111 pure and impure space as loaded can vary, and even their | |
112 relative order cannot be relied on. | |
113 | |
114 Otherwise Emacs assumes that text space precedes data space, | |
115 numerically. */ | |
116 | |
117 /* #define VIRT_ADDR_VARIES */ | |
118 | |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
1128
diff
changeset
|
119 /* For University of Utah 4.3bsd implementation on HP300s. |
456 | 120 The #ifndef __GNUC__ definitions are required for the "standard" cc, |
121 a very old, brain-dead version of PCC. */ | |
122 | |
123 #ifdef BSD4_3 | |
1112 | 124 |
456 | 125 /* Tell crt0.c that this is an ordinary 68020. */ |
126 #undef hp9000s300 | |
1112 | 127 #define m68000 |
128 | |
456 | 129 #define CRT0_DUMMIES bogus_a6, |
130 | |
131 #define HAVE_ALLOCA | |
132 | |
133 #ifndef __GNUC__ | |
134 #define LIBS_DEBUG /* don't have -lg that works */ | |
135 #define C_DEBUG_SWITCH /* don't support -g */ | |
136 #endif | |
137 | |
138 #undef LOAD_AVE_TYPE | |
139 #undef LOAD_AVE_CVT | |
140 #define LOAD_AVE_TYPE long | |
141 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0)) | |
142 | |
143 #endif /* BSD4_3 */ | |
144 | |
145 #ifndef BSD4_3 | |
146 /* The following definitions are for HPUX only. */ | |
147 | |
148 /* The symbol in the kernel where the load average is found | |
149 is named _avenrun on this machine. */ | |
150 | |
151 #define LDAV_SYMBOL "_avenrun" | |
152 | |
153 /* Data type of load average, as read out of kmem. */ | |
154 | |
155 #define LOAD_AVE_TYPE double | |
156 | |
157 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
158 | |
159 #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) | |
160 | |
8788
4577387fa731
[not BSD4_3] [__GNUC__] (HAVE_ALLOCA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4240
diff
changeset
|
161 #ifdef __GNUC__ |
4577387fa731
[not BSD4_3] [__GNUC__] (HAVE_ALLOCA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4240
diff
changeset
|
162 #define HAVE_ALLOCA |
4577387fa731
[not BSD4_3] [__GNUC__] (HAVE_ALLOCA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4240
diff
changeset
|
163 #endif |
4577387fa731
[not BSD4_3] [__GNUC__] (HAVE_ALLOCA): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4240
diff
changeset
|
164 |
456 | 165 /* This library is needed with -g, on the 200/300 only. */ |
166 | |
167 #if !defined(__GNUC__) || defined(__HPUX_ASM__) | |
168 #define LIBS_DEBUG /usr/lib/end.o | |
169 #endif | |
170 | |
4240
7a33be8c3192
(TEXT_START) [__GNUC__]: Define as 0.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
171 /* Need a TEXT_START. On the HP9000/s300 that is 0. */ |
7a33be8c3192
(TEXT_START) [__GNUC__]: Define as 0.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
172 #ifdef __GNUC__ |
7a33be8c3192
(TEXT_START) [__GNUC__]: Define as 0.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
173 #define TEXT_START 0 |
7a33be8c3192
(TEXT_START) [__GNUC__]: Define as 0.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
174 #endif |
7a33be8c3192
(TEXT_START) [__GNUC__]: Define as 0.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
175 |
456 | 176 /* The symbol FIONREAD is defined, but the feature does not work |
177 on the 200/300. */ | |
178 | |
179 #define BROKEN_FIONREAD | |
180 | |
181 /* In older versions of hpux, for unknown reasons, S_IFLNK is defined | |
182 even though symbolic links do not exist. | |
183 Make sure our conditionals based on S_IFLNK are not confused. | |
184 | |
185 Here we assume that stat.h is included before config.h | |
186 so that we can override it here. | |
187 | |
188 Version 6 of HP-UX has symbolic links. */ | |
189 | |
190 #ifdef HPUX_5 | |
191 #undef S_IFLNK | |
192 #endif | |
193 | |
194 /* Define the BSTRING functions in terms of the sysV functions. | |
1112 | 195 Version 6 of HP-UX supplies these in the BSD library, |
196 but that library has reported bugs in `signal'. */ | |
456 | 197 |
1112 | 198 /* #ifdef HPUX_5 */ |
456 | 199 #define bcopy(a,b,s) memcpy (b,a,s) |
200 #define bzero(a,s) memset (a,0,s) | |
201 #define bcmp memcmp | |
1112 | 202 /* #endif */ |
456 | 203 |
204 /* On USG systems these have different names. | |
1112 | 205 Version 6 of HP-UX supplies these in the BSD library, |
206 which we currently want to avoid using. */ | |
456 | 207 |
1112 | 208 /* #ifdef HPUX_5 */ |
456 | 209 #define index strchr |
210 #define rindex strrchr | |
1112 | 211 /* #endif */ |
456 | 212 |
213 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300 | |
214 * Emacs to run on both 68010 and 68020 based hp-ux's. | |
215 * | |
216 * Define OLD_HP_ASSEMBLER if you have an ancient assembler | |
217 * | |
218 * Define HPUX_68010 if you are using the new assembler but | |
219 * compiling for a s200 (upgraded) or s310. 68010 based | |
220 * processor without 68881. | |
221 */ | |
222 | |
223 /* These switches increase the size of some internal C compiler tables. | |
224 They are required for compiling the X11 interface files. */ | |
225 | |
226 #ifndef HPUX_5 | |
227 #ifndef __GNUC__ | |
228 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000 | |
229 #endif | |
230 #endif | |
231 | |
232 /* Define NEED_BSDTTY if you have such. */ | |
233 | |
234 #ifndef NOMULTIPLEJOBS | |
235 #define NEED_BSDTTY | |
236 #endif | |
237 | |
1112 | 238 #endif /* not BSD4_3 */ |