0
|
1 /* Machine description file for Acorn RISCiX machines.
|
|
2 Copyright (C) 1994 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
|
|
8 the Free Software Foundation; either version 2, or (at your option)
|
|
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 XEmacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
|
20
|
|
21 /* Synched up with: FSF 19.31. */
|
|
22
|
|
23 /* Define WORD_MACHINE if addresses and such have
|
|
24 * to be corrected before they can be used as byte counts. */
|
|
25
|
|
26 #undef WORD_MACHINE
|
|
27
|
|
28 /* Define how to take a char and sign-extend into an int.
|
|
29 On machines where char is signed, this is a no-op. */
|
|
30
|
|
31 /* ARM note - The RISCiX Norcroft C Compiler has ALL
|
|
32 non-32-bit types as unsigned */
|
|
33
|
|
34 #define SIGN_EXTEND_CHAR(c) (((int)(c) << 24) >> 24)
|
|
35
|
|
36 /* Now define a symbol for the cpu type, if your compiler
|
|
37 does not define it automatically:
|
|
38 Ones defined so far include vax, m68000, ns16000, pyramid,
|
|
39 orion, tahoe, APOLLO and many others */
|
|
40
|
|
41 /* ARM note - this is done by the Norcroft compiler - symbol is `__arm' */
|
|
42
|
|
43 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
|
|
44 the bit field into an int. In other words, if bit fields
|
|
45 are always unsigned.
|
|
46
|
|
47 If you use NO_UNION_TYPE, this flag does not matter. */
|
|
48
|
|
49 #define EXPLICIT_SIGN_EXTEND
|
|
50
|
|
51 #ifdef LDAV_SYMBOL
|
|
52 #undef LDAV_SYMBOL
|
|
53 #endif
|
|
54
|
|
55 #define LDAV_SYMBOL "_iavenrun"
|
|
56
|
|
57
|
|
58 /* Data type of load average, as read out of kmem. */
|
|
59
|
|
60 #define LOAD_AVE_TYPE long
|
|
61
|
|
62 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
63
|
|
64 /*
|
|
65 * Scale factor for scaled integers used to count
|
|
66 * %cpu time and load averages.
|
|
67 */
|
|
68
|
|
69 /* FSHIFT and FSCALE are defined in param.h, but are required by
|
|
70 LOAD_AVE_CVT, so they need to be defined here. */
|
|
71
|
|
72 #ifndef FSHIFT
|
|
73 #define FSHIFT 8 /* bits to right of fixed binary point */
|
|
74 #endif
|
|
75
|
|
76 #ifndef FSCALE
|
|
77 #define FSCALE (1<<FSHIFT)
|
|
78 #endif
|
|
79
|
|
80 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
|
|
81
|
|
82 /* Define CANNOT_DUMP on machines where unexec does not work.
|
|
83 Then the function dump-emacs will not be defined
|
|
84 and temacs will do (load "loadup") automatically unless told otherwise. */
|
|
85
|
|
86 #undef CANNOT_DUMP
|
|
87
|
|
88 /* Define VIRT_ADDR_VARIES if the virtual addresses of
|
|
89 pure and impure space as loaded can vary, and even their
|
|
90 relative order cannot be relied on.
|
|
91
|
|
92 Otherwise Emacs assumes that text space precedes data space,
|
|
93 numerically. */
|
|
94
|
|
95 #undef VIRT_ADDR_VARIES
|
|
96
|
|
97 /* This prevents Emacs dumping an unsqueezed binary with the
|
|
98 SQUEEZE bit set in the magic number. */
|
|
99
|
|
100 #define ADJUST_EXEC_HEADER {hdr.a_magic &= ~MF_SQUEEZED;}
|
|
101
|
|
102 /* Define C_ALLOCA if this machine does not support a true alloca
|
|
103 and the one written in C should be used instead.
|
|
104 Define HAVE_ALLOCA to say that the system provides a properly
|
|
105 working alloca function and it should be used.
|
|
106 Define neither one if an assembler-language alloca
|
|
107 in the file alloca.s should be used. */
|
|
108
|
|
109 #ifdef __GNUC__
|
|
110
|
|
111 /* Use builtin alloca. Also be sure that no other ones are tried out. */
|
|
112 #define alloca __builtin_alloca
|
|
113 #define HAVE_ALLOCA
|
|
114
|
|
115 /* Keep gcc/RISCiX happy - it uses __gccmain where other versions of
|
|
116 gcc use __main, because of a library routine name clash. */
|
|
117 #define __main __gccmain
|
|
118
|
|
119 #else
|
|
120 #define C_ALLOCA
|
|
121 #undef HAVE_ALLOCA
|
|
122 #endif /* __GNUC__ */
|
|
123
|
|
124 /* Define NO_REMAP if memory segmentation makes it not work well
|
|
125 to change the boundary between the text section and data section
|
|
126 when Emacs is dumped. If you define this, the preloaded Lisp
|
|
127 code will not be sharable; but that's better than failing completely. */
|
|
128
|
|
129 #define NO_REMAP
|
|
130
|
|
131
|
|
132 #ifndef NOT_C_CODE
|
|
133 #define TEXT_START 0x8000
|
|
134 #define DATA_END &_edata
|
|
135 extern int _edata;
|
|
136 #define etext _etext
|
|
137 #endif
|
|
138
|
|
139 /* Avoid debugging library */
|
|
140 #define LIBS_DEBUG
|
|
141
|
|
142 /* Avoid sharing libc */
|
|
143 #define LIB_STANDARD -lc_n
|
|
144
|
|
145 /* Avoid sharing libX11 */
|
|
146 #define LIB_X11_LIB -lX11_n
|
|
147
|
|
148 /* All kinds of symbol definitions, so as to avoid multiply defined symbol
|
|
149 errors from the RISCiX linker. */
|
|
150
|
|
151 #ifdef __GNUC__
|
|
152 #define C_DEBUG_SWITCH
|
|
153
|
|
154 #define C_OPTIMIZE_SWITCH -O1 -fomit-frame-pointer -w -g -Dgetopt=gnu_getopt -Dopterr=gnu_opterr -Doptind=gnu_optind -Doptarg=gnu_optarg -Dcfree=gnu_cfree -D___type=
|
|
155
|
|
156 #else
|
|
157 #define C_DEBUG_SWITCH -O -w -g -Dgetopt=gnu_getopt -Dopterr=gnu_opterr -Doptind=gnu_optind -Doptarg=gnu_optarg -Dcfree=gnu_cfree
|
|
158 #endif
|
|
159
|
|
160 /* Turn this on to avoid the emacs malloc and use standard one */
|
|
161
|
|
162 #undef SYSTEM_MALLOC
|
|
163
|
|
164 /* For the portable alloca */
|
|
165 #define STACK_DIRECTION -1
|
|
166
|
|
167 #ifdef NO_REMAP
|
|
168 /* CRT0_O is defined in s/riscix1-1.h or s/riscix1-2.h, as appropriate. */
|
|
169 #define START_FILES pre-crt0.o CRT0_O
|
|
170 #else
|
|
171 Cannot
|
|
172 do
|
|
173 this
|
|
174 yet
|
|
175 #endif
|