annotate src/m/hp9000s300.h @ 266:18d185df8c54

Added tag r20-5b31 for changeset 8efd647ea9ca
author cvs
date Mon, 13 Aug 2007 10:25:39 +0200
parents 0132846995bd
children a86b2b5e0111
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* machine description file for hp9000 series 200 or 300 on either HPUX or BSD.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1985, 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /* The following line tells the configuration script what sort of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 operating system this machine is likely to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 USUAL-OPSYS="note"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 NOTE-START
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 HP 9000 series 200 or 300 (-machine=hp9000s300)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 These machines are 68000-series CPUs running HP-UX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (a derivative of sysV with some BSD features) or BSD 4.3 ported by Utah.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 If you're running HP-UX, specify `-opsystem=hpux'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 If you're running BSD, specify `-opsystem=bsd4-3'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 NOTE-END */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 /* Define this symbol if you are running a version of HP-UX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 which predates version 6.01 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 /* #define HPUX_5 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 /* Define WORD_MACHINE if addresses and such have
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 * to be corrected before they can be used as byte counts. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 /* #define WORD_MACHINE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 /* Now define a symbol for the cpu type, if your compiler
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 does not define it automatically. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 #ifndef hp9000s300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 #define hp9000s300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 the bit field into an int. In other words, if bit fields
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 are always unsigned.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 If you use NO_UNION_TYPE, this flag does not matter. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 #define EXPLICIT_SIGN_EXTEND
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 /* Define CANNOT_DUMP on machines where unexec does not work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 Then the function dump-emacs will not be defined
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 and temacs will do (load "loadup") automatically unless told otherwise. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 /* #define CANNOT_DUMP */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 /* Define VIRT_ADDR_VARIES if the virtual addresses of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 pure and impure space as loaded can vary, and even their
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 relative order cannot be relied on.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 Otherwise Emacs assumes that text space precedes data space,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 numerically. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 /* #define VIRT_ADDR_VARIES */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 /* XEmacs: Richard Cognot <cognot@ensg.u-nancy.fr> says we need this for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 HPUX; but eeide@asylum.cs.utah.edu (Eric Eide) says it loses on BSD. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 #ifndef BSD
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
80 # define UNEXEC "unexhp9k3.o"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 /* For University of Utah 4.3bsd implementation on HP300s.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 The #ifndef __GNUC__ definitions are required for the "standard" cc,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 a very old, brain-dead version of PCC. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 #ifdef BSD4_3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /* Tell crt0.c that this is an ordinary 68020. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 #undef hp9000s300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #define m68000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 #define CRT0_DUMMIES bogus_a6,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 #define HAVE_ALLOCA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 #ifndef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 #define LIBS_DEBUG /* don't have -lg that works */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 #define C_DEBUG_SWITCH /* don't support -g */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 #undef LOAD_AVE_TYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 #undef LOAD_AVE_CVT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 #define LOAD_AVE_TYPE long
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 #endif /* BSD4_3 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 #ifndef BSD4_3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 /* The following definitions are for HPUX only. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 /* The symbol in the kernel where the load average is found
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 is named _avenrun on this machine. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 #define LDAV_SYMBOL "_avenrun"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 /* Data type of load average, as read out of kmem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 #define LOAD_AVE_TYPE double
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 /* Convert that into an integer that is 100 for a load average of 1.0 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 #define HAVE_ALLOCA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 /* This library is needed with -g, on the 200/300 only. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 #if !defined(__GNUC__) || defined(__HPUX_ASM__)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
133 #define LIBS_DEBUG "/usr/lib/end.o"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 /* Need a TEXT_START. On the HP9000/s300 that is 0. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 #define TEXT_START 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 /* In older versions of hpux, for unknown reasons, S_IFLNK is defined
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 even though symbolic links do not exist.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 Make sure our conditionals based on S_IFLNK are not confused.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 Here we assume that stat.h is included before config.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 so that we can override it here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 Version 6 of HP-UX has symbolic links. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 #ifdef HPUX_5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 #undef S_IFLNK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 * Emacs to run on both 68010 and 68020 based hp-ux's.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 *
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 * Define OLD_HP_ASSEMBLER if you have an ancient assembler
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 *
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 * Define HPUX_68010 if you are using the new assembler but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 * compiling for a s200 (upgraded) or s310. 68010 based
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 * processor without 68881.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 /* These switches increase the size of some internal C compiler tables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 They are required for compiling the X11 interface files. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 #ifndef HPUX_5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 #ifndef __GNUC__
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
169 #define C_SWITCH_MACHINE "-Wc,-Nd4000,-Ns3000"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 /* Define NEED_BSDTTY if you have such. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 #define NEED_BSDTTY
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 #endif /* not BSD4_3 */