annotate src/m/powerpc.h @ 282:c42ec1d1cded r21-0b39

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