comparison src/m/powerpc.h @ 247:e70b3a057e12 r20-5b22

Import from CVS: tag r20-5b22
author cvs
date Mon, 13 Aug 2007 10:18:21 +0200
parents 0132846995bd
children 966663fcf606
comparison
equal deleted inserted replaced
246:cf2a77a48c1c 247:e70b3a057e12
45 45
46 /* XINT must explicitly sign-extend */ 46 /* XINT must explicitly sign-extend */
47 47
48 #define EXPLICIT_SIGN_EXTEND 48 #define EXPLICIT_SIGN_EXTEND
49 49
50 #ifndef __linux__
50 /* Data type of load average, as read out of kmem. */ 51 /* Data type of load average, as read out of kmem. */
51 52
52 #define LOAD_AVE_TYPE long 53 #define LOAD_AVE_TYPE long
53 54
54 /* Convert that into an integer that is 100 for a load average of 1.0 */ 55 /* Convert that into an integer that is 100 for a load average of 1.0 */
55 56
56 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) 57 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
58 #else /* mklinux */
59 #if 0
60 /* The following line tells the configuration script what sort of
61 operating system this machine is likely to run.
62 USUAL-OPSYS="linux" */
63
64 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
65 is the most significant byte. */
66
67 #define WORDS_BIG_ENDIAN
68 #endif
69
70 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
71 * group of arguments and treat it as an array of the arguments. */
72
73 #define NO_ARG_ARRAY
74
75 #if 0
76 /* Now define a symbol for the cpu type, if your compiler
77 does not define it automatically. */
78
79 /* #define IBMR2AIX */
80
81 /* Use type int rather than a union, to represent Lisp_Object */
82 /* This is desirable for most machines. */
83
84 /* #define NO_UNION_TYPE */
85
86 /* Define CANNOT_DUMP on machines where unexec does not work.
87 Then the function dump-emacs will not be defined
88 and temacs will do (load "loadup") automatically unless told otherwise. */
89
90 /* #define CANNOT_DUMP */
91
92 #define UNEXEC unexelf.o
93 #endif
94
95 /* Define addresses, macros, change some setup for dump */
96
97 #define NO_REMAP
98
99 #if 0
100 #define TEXT_START 0x00001000
101 #define TEXT_END 0
102 #define DATA_START 0x01000000
103 #define DATA_END 0
104
105 /* The data segment in this machine always starts at address 0x10000000.
106 An address of data cannot be stored correctly in a Lisp object;
107 we always lose the high bits. We must tell XPNTR to add them back. */
108
109 #define DATA_SEG_BITS 0x10000000
110 #endif
111
112 /* Use type int rather than a union, to represent Lisp_Object */
113
114 /* #define NO_UNION_TYPE */
115
116 #ifdef CANNOT_DUMP
117 /* Define shared memory segment symbols */
118
119 #define PURE_SEG_BITS 0x30000000
120
121 /* Use shared memory. */
122 /* This is turned off because it does not always work. See etc/AIX.DUMP. */
123 /* #define HAVE_SHM */
124 #define SHMKEY 5305035 /* used for shared memory code segments */
125 #endif /* CANNOT_DUMP */
126
127 #define N_BADMAG(x) BADMAG(x)
128 #define N_TXTOFF(x) A_TEXTPOS(x)
129 #define N_SYMOFF(x) A_SYMPOS(x)
130 /* #define A_TEXT_OFFSET(HDR) sizeof(HDR) */
131 /* #define ADJUST_EXEC_HEADER \
132 unexec_text_start += sizeof(hdr); \
133 unexec_data_start = ohdr.a_dbase
134 */
135 #undef ADDR_CORRECT
136 #define ADDR_CORRECT(x) ((int)(x))
137
138 /* Define C_ALLOCA if this machine does not support a true alloca
139 and the one written in C should be used instead.
140 Define HAVE_ALLOCA to say that the system provides a properly
141 working alloca function and it should be used.
142 Define neither one if an assembler-language alloca
143 in the file alloca.s should be used. */
144
145 #define HAVE_ALLOCA
146
147 /* Specify the font for X to use.
148 This used to be Rom14.500; that's nice on the X server shipped with
149 the RS/6000, but it's not available on other servers. */
150 #define X_DEFAULT_FONT "fixed"
151
152 /* Here override various assumptions in ymakefile */
153
154 #define START_FILES
155 /* #define HAVE_SYSVIPC */
156 /* #define HAVE_GETWD */
157
158 /* Don't try to include sioctl.h or ptem.h. */
159 #undef NEED_SIOCTL
160 #undef NEED_PTEM_H
161
162 #define ORDINARY_LINK
163 #define LD_SWITCH_MACHINE -T ppc.ldscript
164 #endif