0
|
1 /* machine description file for Power PC
|
|
2 Copyright (C) 1987, 1994 Free Software Foundation, Inc.
|
|
3 Copyright (C) 1995 Board of Trustees, University of Illinois
|
|
4
|
|
5 This file is part of XEmacs.
|
|
6
|
|
7 XEmacs is free software; you can redistribute it and/or modify
|
|
8 it under the terms of the GNU General Public License as published by
|
|
9 the Free Software Foundation; either version 2, or (at your option)
|
|
10 any later version.
|
|
11
|
|
12 XEmacs 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 XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* The following line tells the configuration script what sort of
|
|
23 operating system this machine is likely to run.
|
|
24 USUAL-OPSYS="solaris2-5" */
|
|
25
|
|
26 #ifdef NOT_C_CODE
|
|
27 # define POWERPC
|
|
28 #else
|
|
29 # ifndef powerpc
|
|
30 # define powerpc
|
|
31 # endif
|
|
32 #endif
|
|
33
|
|
34 #ifdef __GNUC__
|
163
|
35 # define C_OPTIMIZE_SWITCH "-O"
|
0
|
36 #else
|
|
37 /* XEmacs change */
|
|
38 # ifdef USE_LCC
|
163
|
39 # define C_OPTIMIZE_SWITCH "-O4 -Oi"
|
0
|
40 # else
|
|
41 /* This level of optimization is reported to work. */
|
163
|
42 # define C_OPTIMIZE_SWITCH "-O2"
|
0
|
43 # endif
|
|
44 #endif
|
|
45
|
|
46 /* XINT must explicitly sign-extend */
|
|
47
|
|
48 #define EXPLICIT_SIGN_EXTEND
|
|
49
|
247
|
50 #ifndef __linux__
|
0
|
51 /* Data type of load average, as read out of kmem. */
|
|
52
|
|
53 #define LOAD_AVE_TYPE long
|
|
54
|
|
55 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
56
|
|
57 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
|
247
|
58 #else /* mklinux */
|
|
59
|
|
60 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
|
|
61 * group of arguments and treat it as an array of the arguments. */
|
|
62
|
|
63 #define NO_ARG_ARRAY
|
|
64
|
|
65 /* Define addresses, macros, change some setup for dump */
|
|
66
|
|
67 #define NO_REMAP
|
|
68
|
|
69 #if 0
|
|
70 #define TEXT_START 0x00001000
|
|
71 #define TEXT_END 0
|
|
72 #define DATA_START 0x01000000
|
|
73 #define DATA_END 0
|
|
74
|
|
75 /* The data segment in this machine always starts at address 0x10000000.
|
|
76 An address of data cannot be stored correctly in a Lisp object;
|
|
77 we always lose the high bits. We must tell XPNTR to add them back. */
|
|
78
|
|
79 #define DATA_SEG_BITS 0x10000000
|
|
80 #endif
|
|
81
|
|
82 /* Use type int rather than a union, to represent Lisp_Object */
|
|
83
|
|
84 /* #define NO_UNION_TYPE */
|
|
85
|
|
86 #ifdef CANNOT_DUMP
|
|
87 /* Define shared memory segment symbols */
|
|
88
|
|
89 #define PURE_SEG_BITS 0x30000000
|
|
90
|
|
91 /* Use shared memory. */
|
|
92 /* This is turned off because it does not always work. See etc/AIX.DUMP. */
|
|
93 /* #define HAVE_SHM */
|
|
94 #define SHMKEY 5305035 /* used for shared memory code segments */
|
|
95 #endif /* CANNOT_DUMP */
|
|
96
|
|
97 #define N_BADMAG(x) BADMAG(x)
|
|
98 #define N_TXTOFF(x) A_TEXTPOS(x)
|
|
99 #define N_SYMOFF(x) A_SYMPOS(x)
|
|
100 /* #define A_TEXT_OFFSET(HDR) sizeof(HDR) */
|
|
101 /* #define ADJUST_EXEC_HEADER \
|
|
102 unexec_text_start += sizeof(hdr); \
|
|
103 unexec_data_start = ohdr.a_dbase
|
|
104 */
|
|
105 #undef ADDR_CORRECT
|
|
106 #define ADDR_CORRECT(x) ((int)(x))
|
|
107
|
|
108 /* Define C_ALLOCA if this machine does not support a true alloca
|
|
109 and the one written in C should be used instead.
|
|
110 Define HAVE_ALLOCA to say that the system provides a properly
|
|
111 working alloca function and it should be used.
|
|
112 Define neither one if an assembler-language alloca
|
|
113 in the file alloca.s should be used. */
|
|
114
|
|
115 #define HAVE_ALLOCA
|
|
116
|
|
117 /* Specify the font for X to use.
|
|
118 This used to be Rom14.500; that's nice on the X server shipped with
|
|
119 the RS/6000, but it's not available on other servers. */
|
|
120 #define X_DEFAULT_FONT "fixed"
|
|
121
|
|
122 /* Here override various assumptions in ymakefile */
|
|
123
|
274
|
124 /* #undef START_FILES */
|
247
|
125 /* #define HAVE_SYSVIPC */
|
|
126 /* #define HAVE_GETWD */
|
|
127
|
|
128 /* Don't try to include sioctl.h or ptem.h. */
|
|
129 #undef NEED_SIOCTL
|
|
130 #undef NEED_PTEM_H
|
|
131
|
|
132 #define ORDINARY_LINK
|
272
|
133 /*#define LD_SWITCH_MACHINE -T ${srcdir}/src/ppc.ldscript*/
|
247
|
134 #endif
|