annotate src/m/delta.h @ 159:3bb7ccffb0c0 r20-3b6

Import from CVS: tag r20-3b6
author cvs
date Mon, 13 Aug 2007 09:41:43 +0200
parents ac2d302a0011
children 0132846995bd
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 the Motorola Delta.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Tested on mvme147 board using R3V7 without X. Tested with gcc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 Tested on mvme167 board using R3V7 without X. Tested with cc, gnucc, gcc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 Copyright (C) 1986, 1993, 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 /* The following line tells the configuration script what sort of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 operating system this machine is likely to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 USUAL-OPSYS="usg5-3" */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 /* Define WORD_MACHINE if addresses and such have
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 * to be corrected before they can be used as byte counts. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 /* #define WORD_MACHINE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 /* Now define a symbol for the cpu type, if your compiler
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 does not define it automatically:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 Ones defined so far include vax, m68000, ns16000, pyramid,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 orion, tahoe, APOLLO and many others */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 #define m68000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 #define MOTOROLA_DELTA
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 EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 the bit field into an int. In other words, if bit fields
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 are always unsigned.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 If you use NO_UNION_TYPE, this flag does not matter. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #define EXPLICIT_SIGN_EXTEND
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 /* Data type of load average, as read out of kmem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 /* #define LOAD_AVE_TYPE long */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 /* 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
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 /* #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 /* Define CANNOT_DUMP on machines where unexec does not work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 Then the function dump-emacs will not be defined
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 and temacs will do (load "loadup") automatically unless told otherwise. */
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 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 /* Define VIRT_ADDR_VARIES if the virtual addresses of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 pure and impure space as loaded can vary, and even their
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 relative order cannot be relied on.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 Otherwise Emacs assumes that data space precedes text space,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 numerically. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 /* #define VIRT_ADDR_VARIES */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 /* Define C_ALLOCA if this machine does not support a true alloca
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 and the one written in C should be used instead.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 Define HAVE_ALLOCA to say that the system provides a properly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 working alloca function and it should be used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 Define neither one if an assembler-language alloca
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 in the file alloca.s should be used. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 /* #define C_ALLOCA */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 /* #define HAVE_ALLOCA */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 /* Define NO_REMAP if memory segmentation makes it not work well
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 to change the boundary between the text section and data section
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 when Emacs is dumped. If you define this, the preloaded Lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 code will not be sharable; but that's better than failing completely. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 #define NO_REMAP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /* Some really obscure 4.2-based systems (like Sequent DYNIX)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 * do not support asynchronous I/O (using SIGIO) on sockets,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 * even though it works fine on tty's. If you have one of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 * these systems, define the following, and then use it in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 * config.h (or elsewhere) to decide when (not) to use SIGIO.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 *
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 * You'd think this would go in an operating-system description file,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 * but since it only occurs on some, but not all, BSD systems, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 * reasonable place to select for it is in the machine description
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 * file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 /* #define NO_SOCK_SIGIO */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 /* Machine specific stuff */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 #define HAVE_PTYS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 #define SYSV_PTYS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 #define SIGNALS_VIA_CHARACTERS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 #define BROKEN_CLOSEDIR /* builtin closedir is interruptible */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 #define memmove(t,f,s) safe_bcopy(f,t,s) /* for overlapping copies */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 #undef KERNEL_FILE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 #define KERNEL_FILE "/sysv68"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 #undef LDAV_SYMBOL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 /* The standard C library is -lc881, not -lc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 DO NOT USE -lPW. That version of alloca is broken in versions R3V5,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 R3V6, R3V7. -riku@field.fi -pot@cnuce.cnr.it. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 #define LIB_STANDARD -lc881
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 #define LIB_MATH -lm881
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 #define LIBS_TERMCAP -lcurses
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 #define LIBS_SYSTEM -lbsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 #ifdef HAVE_X_WINDOWS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 # define HAVE_RANDOM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 # define HAVE_XSCREENNUMBEROFSCREEN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 # undef LIB_X11_LIB /* no shared libraries */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 # define LIB_X11_LIB -lX11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 # undef USG_SHARED_LIBRARIES /* once again, no shared libs */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 # undef LIBX11_SYSTEM /* no -lpt as usg5-3.h expects */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 # define LIBX11_SYSTEM -lnls -lnsl_s
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 #endif /* HAVE_X_WINDOWS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 /* Use builtin alloca. Also be sure that no other ones are tried out. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 # define alloca __builtin_alloca
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 # define HAVE_ALLOCA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 /* We are assuming here that the `true' GNU gcc has not been
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 installed, and we are using the gnucc provided by Motorola. No
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 support exists for compiling with GNU gcc, as I do not have it on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 my machine to try it out. -pot@cnuce.cnr.it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 If __STDC__ is defined gnucc has been called without the -traditional
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 option, that is, we are inside configure. If THIS_IS_CONFIGURE is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 not defined, then configure is trying to figure out what the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 option for real compilation are.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 Let us set -traditional, because gmalloc.c includes <stddef.h>, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 we don't have that (as of SYSV68 R3V7). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 # define C_SWITCH_MACHINE -mfp0ret -traditional -Dconst= -fdelayed-branch -fstrength-reduce -fno-inline -fcaller-saves
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 # define LIB_GCC /lib/gnulib881
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 /* Not __GNUC__, use the alloca in alloca.s. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 /* Try to guess if we are using the Green Hills Compiler */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 # if defined mc68000 && defined MC68000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 /* Required only for use with Green Hills compiler:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 -ga Because alloca relies on stack frames. This option forces
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 the Green Hills compiler to create stack frames even for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 functions with few local variables. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 # define C_SWITCH_MACHINE -ga -O
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 # define GAP_USE_BCOPY /* *++to = *++from is inefficient */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 # define BCOPY_UPWARD_SAFE 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 # define BCOPY_DOWNWARD_SAFE 1 /* bcopy does: mov.b (%a1)+,(%a0)+ */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 /* We are using the standard AT&T Portable C Compiler */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 # define SWITCH_ENUM_BUG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 #endif /* not __GNUC__ */
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
171
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
172 #ifdef HAVE_INET_SOCKETS /* this comes from autoconf */
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
173 # define HAVE_SOCKETS /* NSE may or may not have been installed */
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
174 #endif