annotate src/m/powerpc.h @ 400:a86b2b5e0111 r21-2-30

Import from CVS: tag r21-2-30
author cvs
date Mon, 13 Aug 2007 11:14:34 +0200
parents ca9a9ec9c1c1
children 697ef44129c6
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
247
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
46 #ifndef __linux__
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 /* Data type of load average, as read out of kmem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #define LOAD_AVE_TYPE long
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 /* 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
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
247
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
54 #else /* mklinux */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
55
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
56 /* 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
57 * group of arguments and treat it as an array of the arguments. */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
58
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
59 #define NO_ARG_ARRAY
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
60
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
61 /* Define addresses, macros, change some setup for dump */
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_REMAP
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 /* Use type int rather than a union, to represent Lisp_Object */
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_UNION_TYPE */
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 #ifdef CANNOT_DUMP
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
70
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
71 #endif /* CANNOT_DUMP */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
72
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
73 #define N_BADMAG(x) BADMAG(x)
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
74 #define N_TXTOFF(x) A_TEXTPOS(x)
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
75 #define N_SYMOFF(x) A_SYMPOS(x)
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
76 /* #define A_TEXT_OFFSET(HDR) sizeof(HDR) */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
77 /* #define ADJUST_EXEC_HEADER \
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
78 unexec_text_start += sizeof(hdr); \
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
79 unexec_data_start = ohdr.a_dbase
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
80 */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
81 #undef ADDR_CORRECT
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
82 #define ADDR_CORRECT(x) ((int)(x))
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 C_ALLOCA if this machine does not support a true alloca
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
85 and the one written in C should be used instead.
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
86 Define HAVE_ALLOCA to say that the system provides a properly
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
87 working alloca function and it should be used.
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
88 Define neither one if an assembler-language alloca
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
89 in the file alloca.s should be used. */
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 #define HAVE_ALLOCA
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
92
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
93 /* Specify the font for X to use.
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
94 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
95 the RS/6000, but it's not available on other servers. */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
96 #define X_DEFAULT_FONT "fixed"
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
97
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
98 /* Here override various assumptions in ymakefile */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
99
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
100 /* #undef START_FILES */
247
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
101 /* #define HAVE_SYSVIPC */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
102 /* #define HAVE_GETWD */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
103
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
104 /* Don't try to include sioctl.h or ptem.h. */
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
105 #undef NEED_SIOCTL
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
106 #undef NEED_PTEM_H
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 ORDINARY_LINK
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 267
diff changeset
109 /*#define LD_SWITCH_MACHINE -T ${srcdir}/src/ppc.ldscript*/
247
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents: 163
diff changeset
110 #endif