428
|
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 /* Now define a symbol for the cpu type, if your compiler
|
|
24 does not define it automatically:
|
|
25 Ones defined so far include vax, m68000, ns16000, pyramid,
|
|
26 orion, tahoe, APOLLO and many others */
|
|
27
|
|
28 /* ARM note - this is done by the Norcroft compiler - symbol is `__arm' */
|
|
29
|
|
30 #ifdef LDAV_SYMBOL
|
|
31 #undef LDAV_SYMBOL
|
|
32 #endif
|
|
33
|
|
34 #define LDAV_SYMBOL "_iavenrun"
|
|
35
|
|
36
|
|
37 /* Data type of load average, as read out of kmem. */
|
|
38
|
|
39 #define LOAD_AVE_TYPE long
|
|
40
|
|
41 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
42
|
|
43 /*
|
|
44 * Scale factor for scaled integers used to count
|
|
45 * %cpu time and load averages.
|
|
46 */
|
|
47
|
|
48 /* FSHIFT and FSCALE are defined in param.h, but are required by
|
|
49 LOAD_AVE_CVT, so they need to be defined here. */
|
|
50
|
|
51 #ifndef FSHIFT
|
|
52 #define FSHIFT 8 /* bits to right of fixed binary point */
|
|
53 #endif
|
|
54
|
|
55 #ifndef FSCALE
|
|
56 #define FSCALE (1<<FSHIFT)
|
|
57 #endif
|
|
58
|
|
59 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
|
|
60
|
|
61 /* This prevents Emacs dumping an unsqueezed binary with the
|
|
62 SQUEEZE bit set in the magic number. */
|
|
63
|
|
64 #define ADJUST_EXEC_HEADER {hdr.a_magic &= ~MF_SQUEEZED;}
|
|
65
|
|
66 #ifdef __GNUC__
|
|
67
|
|
68 /* Keep gcc/RISCiX happy - it uses __gccmain where other versions of
|
|
69 gcc use __main, because of a library routine name clash. */
|
|
70 #define __main __gccmain
|
|
71
|
|
72 #endif /* __GNUC__ */
|
|
73
|
|
74 /* Define NO_REMAP if memory segmentation makes it not work well
|
|
75 to change the boundary between the text section and data section
|
|
76 when Emacs is dumped. If you define this, the preloaded Lisp
|
|
77 code will not be sharable; but that's better than failing completely. */
|
|
78
|
|
79 #define NO_REMAP
|
|
80
|
|
81
|
|
82 #ifndef NOT_C_CODE
|
|
83 #define TEXT_START 0x8000
|
|
84 extern int _edata;
|
|
85 #define etext _etext
|
|
86 #endif
|
|
87
|
|
88 /* Avoid debugging library */
|
|
89 #define LIBS_DEBUG
|
|
90
|
|
91 /* Avoid sharing libc */
|
|
92 #define LIB_STANDARD "-lc_n"
|
|
93
|
|
94 /* Avoid sharing libX11 */
|
|
95 #define LIB_X11_LIB "-lX11_n"
|
|
96
|
|
97 /* All kinds of symbol definitions, so as to avoid multiply defined symbol
|
|
98 errors from the RISCiX linker. */
|
|
99
|
|
100 #ifdef __GNUC__
|
|
101 #define C_DEBUG_SWITCH
|
|
102
|
|
103 #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="
|
|
104
|
|
105 #else
|
|
106 #define C_DEBUG_SWITCH "-O -w -g -Dgetopt=gnu_getopt -Dopterr=gnu_opterr -Doptind=gnu_optind -Doptarg=gnu_optarg -Dcfree=gnu_cfree"
|
|
107 #endif
|
|
108
|
|
109 /* Turn this on to avoid the emacs malloc and use standard one */
|
|
110
|
|
111 #undef SYSTEM_MALLOC
|
|
112
|
|
113 #ifdef NO_REMAP
|
|
114 /* CRT0_O is defined in s/riscix1-1.h or s/riscix1-2.h, as appropriate. */
|
|
115 #define START_FILES "pre-crt0.o CRT0_O"
|
|
116 #else
|
|
117 Cannot
|
|
118 do
|
|
119 this
|
|
120 yet
|
|
121 #endif
|