Mercurial > emacs
annotate src/m/hp9000s300.h @ 84378:3c9ba55f960b
Comment style.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 07 Sep 2007 19:46:59 +0000 |
parents | 49b363c28dce |
children | f27b84de02cf 424b655804ca |
rev | line source |
---|---|
456 | 1 /* machine description file for hp9000 series 200 or 300 on either HPUX or BSD. |
75227
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
2 Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005, |
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
3 2006, 2007 Free Software Foundation, Inc. |
456 | 4 |
5 This file is part of GNU Emacs. | |
6 | |
7 GNU Emacs is free software; you can redistribute it and/or modify | |
8 it under the terms of the GNU General Public License as published by | |
78258
6aba169c4b1f
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75227
diff
changeset
|
9 the Free Software Foundation; either version 3, or (at your option) |
456 | 10 any later version. |
11 | |
12 GNU Emacs is distributed in the hope that it will be useful, | |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 GNU General Public License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with GNU Emacs; see the file COPYING. If not, write to | |
64083 | 19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 Boston, MA 02110-1301, USA. */ | |
456 | 21 |
22 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
44601
diff
changeset
|
23 /* The following line tells the configuration script what sort of |
456 | 24 operating system this machine is likely to run. |
25 USUAL-OPSYS="note" | |
26 | |
27 NOTE-START | |
28 HP 9000 series 200 or 300 (-machine=hp9000s300) | |
29 | |
30 These machines are 68000-series CPUs running HP-UX | |
31 (a derivative of sysV with some BSD features) or BSD 4.3 ported by Utah. | |
32 | |
33 If you're running HP-UX, specify `-opsystem=hpux'. | |
1112 | 34 If you're running BSD, specify `-opsystem=bsd4-3'. |
456 | 35 NOTE-END */ |
36 | |
1128 | 37 /* I don't understand why we have to do this at all! -JimB */ |
38 #if 0 | |
39 | |
1112 | 40 /* Do this here at the top of the file; including sys/wait.h may |
41 include <endian.h>, which defines BIG_ENDIAN, which will conflict | |
42 with our definition of BIG_ENDIAN if we do this at the bottom. */ | |
43 #ifndef NOT_C_CODE | |
44 #ifndef NO_SHORTNAMES | |
45 #include <sys/wait.h> | |
46 #define WAITTYPE int | |
47 #endif | |
48 #define WRETCODE(w) (((w) >> 8) & 0377) | |
49 #endif | |
50 | |
1128 | 51 #endif |
52 | |
1112 | 53 /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5. */ |
456 | 54 |
55 /* #define NOMULTIPLEJOBS */ | |
56 | |
57 /* Define this symbol if you are running a version of HP-UX | |
58 which predates version 6.01 */ | |
59 | |
60 /* #define HPUX_5 */ | |
61 | |
78499 | 62 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word |
9095
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
63 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
|
64 |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
65 #define WORDS_BIG_ENDIAN |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
66 |
456 | 67 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
68 * group of arguments and treat it as an array of the arguments. */ | |
69 | |
70 /* #define NO_ARG_ARRAY */ | |
71 | |
72 /* Define WORD_MACHINE if addresses and such have | |
73 * to be corrected before they can be used as byte counts. */ | |
74 | |
75 /* #define WORD_MACHINE */ | |
76 | |
77 /* Now define a symbol for the cpu type, if your compiler | |
78 does not define it automatically. */ | |
79 | |
80 #ifndef hp9000s300 | |
81 #define hp9000s300 | |
82 #endif | |
83 | |
84 /* Use type int rather than a union, to represent Lisp_Object */ | |
85 /* This is desirable for most machines. */ | |
86 | |
87 #define NO_UNION_TYPE | |
88 | |
89 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend | |
90 the 24-bit bit field into an int. In other words, if bit fields | |
91 are always unsigned. | |
92 | |
93 If you use NO_UNION_TYPE, this flag does not matter. */ | |
94 | |
95 #define EXPLICIT_SIGN_EXTEND | |
96 | |
97 /* Define CANNOT_DUMP on machines where unexec does not work. | |
98 Then the function dump-emacs will not be defined | |
99 and temacs will do (load "loadup") automatically unless told otherwise. */ | |
100 | |
101 /* #define CANNOT_DUMP */ | |
102 | |
103 /* Define VIRT_ADDR_VARIES if the virtual addresses of | |
104 pure and impure space as loaded can vary, and even their | |
105 relative order cannot be relied on. | |
106 | |
107 Otherwise Emacs assumes that text space precedes data space, | |
108 numerically. */ | |
109 | |
110 /* #define VIRT_ADDR_VARIES */ | |
111 | |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
1128
diff
changeset
|
112 /* For University of Utah 4.3bsd implementation on HP300s. |
456 | 113 The #ifndef __GNUC__ definitions are required for the "standard" cc, |
114 a very old, brain-dead version of PCC. */ | |
115 | |
116 #ifdef BSD4_3 | |
1112 | 117 |
456 | 118 /* Tell crt0.c that this is an ordinary 68020. */ |
119 #undef hp9000s300 | |
1112 | 120 #define m68000 |
121 | |
456 | 122 #define CRT0_DUMMIES bogus_a6, |
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 | |
152 /* This library is needed with -g, on the 200/300 only. */ | |
153 | |
154 #if !defined(__GNUC__) || defined(__HPUX_ASM__) | |
155 #define LIBS_DEBUG /usr/lib/end.o | |
156 #endif | |
157 | |
4240
7a33be8c3192
(TEXT_START) [__GNUC__]: Define as 0.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
158 /* 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
|
159 #ifdef __GNUC__ |
7a33be8c3192
(TEXT_START) [__GNUC__]: Define as 0.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
160 #define TEXT_START 0 |
7a33be8c3192
(TEXT_START) [__GNUC__]: Define as 0.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
161 #endif |
7a33be8c3192
(TEXT_START) [__GNUC__]: Define as 0.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
162 |
456 | 163 /* The symbol FIONREAD is defined, but the feature does not work |
164 on the 200/300. */ | |
165 | |
166 #define BROKEN_FIONREAD | |
167 | |
168 /* In older versions of hpux, for unknown reasons, S_IFLNK is defined | |
169 even though symbolic links do not exist. | |
170 Make sure our conditionals based on S_IFLNK are not confused. | |
171 | |
172 Here we assume that stat.h is included before config.h | |
173 so that we can override it here. | |
174 | |
175 Version 6 of HP-UX has symbolic links. */ | |
176 | |
177 #ifdef HPUX_5 | |
178 #undef S_IFLNK | |
179 #endif | |
180 | |
181 /* Define the BSTRING functions in terms of the sysV functions. | |
1112 | 182 Version 6 of HP-UX supplies these in the BSD library, |
183 but that library has reported bugs in `signal'. */ | |
456 | 184 |
1112 | 185 /* #ifdef HPUX_5 */ |
456 | 186 #define bcopy(a,b,s) memcpy (b,a,s) |
187 #define bzero(a,s) memset (a,0,s) | |
188 #define bcmp memcmp | |
1112 | 189 /* #endif */ |
456 | 190 |
191 /* On USG systems these have different names. | |
1112 | 192 Version 6 of HP-UX supplies these in the BSD library, |
193 which we currently want to avoid using. */ | |
456 | 194 |
1112 | 195 /* #ifdef HPUX_5 */ |
456 | 196 #define index strchr |
197 #define rindex strrchr | |
1112 | 198 /* #endif */ |
456 | 199 |
200 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300 | |
201 * Emacs to run on both 68010 and 68020 based hp-ux's. | |
202 * | |
203 * Define OLD_HP_ASSEMBLER if you have an ancient assembler | |
204 * | |
205 * Define HPUX_68010 if you are using the new assembler but | |
206 * compiling for a s200 (upgraded) or s310. 68010 based | |
207 * processor without 68881. | |
208 */ | |
209 | |
210 /* These switches increase the size of some internal C compiler tables. | |
211 They are required for compiling the X11 interface files. */ | |
212 | |
213 #ifndef HPUX_5 | |
214 #ifndef __GNUC__ | |
215 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000 | |
216 #endif | |
217 #endif | |
218 | |
219 /* Define NEED_BSDTTY if you have such. */ | |
220 | |
221 #ifndef NOMULTIPLEJOBS | |
222 #define NEED_BSDTTY | |
223 #endif | |
224 | |
1112 | 225 #endif /* not BSD4_3 */ |
52401 | 226 |
227 /* arch-tag: 6e0001a5-ed62-4258-9235-204348f6bdb9 | |
228 (do not change this comment) */ |