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