Mercurial > emacs
comparison src/m/ibmps2-aix.h @ 456:c0335c02f1d7
Initial revision
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Fri, 13 Dec 1991 18:49:49 +0000 |
parents | |
children | 593af70322f0 |
comparison
equal
deleted
inserted
replaced
455:12af79cf16ee | 456:c0335c02f1d7 |
---|---|
1 /* machine description file for ibm ps/2 aix386. | |
2 Copyright (C) 1989 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 1, 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 GNU Emacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | |
20 | |
21 /* The following line tells the configuration script what sort of | |
22 operating system this machine is likely to run. | |
23 USUAL-OPSYS="note" | |
24 | |
25 NOTE-START | |
26 Use -opsystem=usg5-3 on AIX 1.2. | |
27 -opsystem=usg5-2-2 should work on either AIX 1.1 or 1.2, but may not | |
28 work with certain new X window managers, and may be suboptimal. | |
29 NOTE-END */ | |
30 | |
31 /* The following three symbols give information on | |
32 the size of various data types. */ | |
33 | |
34 #define SHORTBITS 16 /* Number of bits in a short */ | |
35 | |
36 #define INTBITS 32 /* Number of bits in an int */ | |
37 | |
38 #define LONGBITS 32 /* Number of bits in a long */ | |
39 | |
40 /* i386 is not big-endian: lowest numbered byte is least significant. */ | |
41 | |
42 /* #undef BIG_ENDIAN */ | |
43 | |
44 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a | |
45 * group of arguments and treat it as an array of the arguments. */ | |
46 | |
47 /* #define NO_ARG_ARRAY */ | |
48 | |
49 /* Define WORD_MACHINE if addresses and such have | |
50 * to be corrected before they can be used as byte counts. */ | |
51 | |
52 /* #define WORD_MACHINE */ | |
53 | |
54 /* Define how to take a char and sign-extend into an int. | |
55 On machines where char is signed, this is a no-op. */ | |
56 | |
57 #define SIGN_EXTEND_CHAR(c) ((signed char) (c)) | |
58 | |
59 /* Now define a symbol for the cpu type, if your compiler | |
60 does not define it automatically: | |
61 Ones defined so far include vax, m68000, ns16000, pyramid, | |
62 orion, tahoe, APOLLO and many others */ | |
63 | |
64 #define INTEL386 | |
65 #define aix386 | |
66 #undef SYSTEM_TYPE | |
67 #define SYSTEM_TYPE "ibm-aix-386" | |
68 | |
69 #define IBMAIX | |
70 | |
71 /* Use type int rather than a union, to represent Lisp_Object */ | |
72 | |
73 #define NO_UNION_TYPE | |
74 | |
75 /* crt0.c, if it is used, should use the i386-bsd style of entry. | |
76 with no extra dummy args. On USG and XENIX, | |
77 NO_REMAP says this isn't used. */ | |
78 | |
79 #define CRT0_DUMMIES bogus_fp, | |
80 | |
81 /* crt0.c should define a symbol `start' and do .globl with a dot. */ | |
82 | |
83 #define DOT_GLOBAL_START | |
84 | |
85 /* USG systems do not actually support the load average, | |
86 so disable it for them. */ | |
87 | |
88 /* Define CANNOT_DUMP on machines where unexec does not work. | |
89 Then the function dump-emacs will not be defined | |
90 and temacs will do (load "loadup") automatically unless told otherwise. */ | |
91 | |
92 /* #define CANNOT_DUMP */ | |
93 | |
94 /* Define VIRT_ADDR_VARIES if the virtual addresses of | |
95 pure and impure space as loaded can vary, and even their | |
96 relative order cannot be relied on. | |
97 | |
98 Otherwise Emacs assumes that text space precedes data space, | |
99 numerically. */ | |
100 | |
101 /* #define VIRT_ADDR_VARIES */ | |
102 | |
103 /* Define addresses, macros, change some setup for dump */ | |
104 | |
105 #define NO_REMAP | |
106 #undef static | |
107 /* Since NO_REMAP, problem with statics doesn't exist */ | |
108 | |
109 #ifdef USG5_3 | |
110 #define TEXT_START 0x00000000 | |
111 #else | |
112 #define TEXT_START 0x00400000 | |
113 #define TEXT_END 0 | |
114 #define DATA_START 0x00800000 | |
115 #define DATA_END 0 | |
116 | |
117 /* The data segment in this machine always starts at address 0x00800000. | |
118 An address of data cannot be stored correctly in a Lisp object; | |
119 we always lose the high bits. We must tell XPNTR to add them back. */ | |
120 | |
121 #define DATA_SEG_BITS 0x00800000 | |
122 #endif | |
123 | |
124 #if 0 /* I refuse to promulgate a recommendation that would make | |
125 users unable to debug - RMS. */ | |
126 /* delete the following line to foil optimization, enable debugging */ | |
127 #define C_DEBUG_SWITCH -O | |
128 #endif | |
129 | |
130 #define BSTRING | |
131 #define HAVE_DUP2 | |
132 #define HAVE_GETTIMEOFDAY | |
133 #define HAVE_SELECT | |
134 #define HAVE_TIMEVAL | |
135 #define HAVE_VFORK | |
136 | |
137 /* | |
138 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir | |
139 * library functions. Almost, but not quite the same as | |
140 * the 4.2 functions | |
141 */ | |
142 #define SYSV_SYSTEM_DIR | |
143 | |
144 /* | |
145 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
146 * The 4.2 opendir, etc., library functions. | |
147 */ | |
148 #undef NONSYSTEM_DIR_LIBRARY | |
149 | |
150 /* But don't use utimes() -- it causes SIGSEGV! Use utime() instead. */ | |
151 #define USE_UTIME | |
152 | |
153 /* AIX defines FIONREAD, but it does not work. */ | |
154 #define BROKEN_FIONREAD | |
155 | |
156 /* Data type of load average, as read out of kmem. */ | |
157 | |
158 #define LOAD_AVE_TYPE long /* For AIX (sysV) */ | |
159 | |
160 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
161 | |
162 #define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0) | |
163 | |
164 /* This page was added in June 1990. It may be incorrect for some versions | |
165 of aix, so delete it if it causes trouble. */ | |
166 | |
167 /* AIX has sigsetmask() */ | |
168 #undef sigsetmask | |
169 | |
170 /* AIX386 has BSD4.3 PTYs */ | |
171 | |
172 #define HAVE_PTYS | |
173 | |
174 /* AIX has IPC. It also has sockets, and either can be used for client/server. | |
175 I would suggest the client/server code be changed to use HAVE_SOCKETS rather | |
176 than BSD as the conditional if sockets provide any advantages. */ | |
177 | |
178 #define HAVE_SYSVIPC | |
179 | |
180 /* AIX has sockets */ | |
181 | |
182 #define HAVE_SOCKETS | |
183 /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */ | |
184 | |
185 /* Specify the font for X to use. */ | |
186 | |
187 #define X_DEFAULT_FONT "8x13" | |
188 | |
189 /* AIX has a wait.h. */ | |
190 | |
191 #define HAVE_WAIT_HEADER | |
192 | |
193 /* sioctl.h should not be included, says bytheway@cs.utah.edu. */ | |
194 #undef NEED_SIOCTL | |
195 /* I'm guessing that that means it doesn't want ptem.h either. */ | |
196 #undef NEED_PTEM_H | |
197 | |
198 /* aix has `union wait' */ | |
199 #define HAVE_UNION_WAIT | |
200 | |
201 /* Here override various assumptions in ymakefile */ | |
202 | |
203 /* Define C_ALLOCA if this machine does not support a true alloca | |
204 and the one written in C should be used instead. | |
205 Define HAVE_ALLOCA to say that the system provides a properly | |
206 working alloca function and it should be used. | |
207 Define neither one if an assembler-language alloca | |
208 in the file alloca.s should be used. */ | |
209 | |
210 #ifdef __GNUC__ | |
211 #define HAVE_ALLOCA | |
212 #define alloca(n) __builtin_alloca(n) | |
213 #define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc | |
214 /* -g fails to work, so it is omitted. */ | |
215 /* tranle says that -fstrength-reduce does not help. */ | |
216 #define C_DEBUG_SWITCH -O -fwritable-strings | |
217 #else | |
218 #define C_ALLOCA | |
219 #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */ | |
220 #define LIBS_MACHINE -lbsd -lrts | |
221 #endif | |
222 | |
223 #define OBJECTS_MACHINE hftctl.o | |
224 #define LD_SWITCH_MACHINE -T0x00400000 -K -e start | |
225 | |
226 #ifdef USG5_3 | |
227 #define XICCC | |
228 #define HAVE_GETWD | |
229 #define HAVE_RENAME | |
230 #undef LD_SWITCH_MACHINE | |
231 #define LD_SWITCH_MACHINE -T0x0 -K -e start | |
232 | |
233 /* Things defined in s-usg5-3.h that need to be overridden. */ | |
234 #undef NOMULTIPLEJOBS | |
235 #undef BROKEN_TIOCGETC | |
236 #undef LIBX10_SYSTEM | |
237 #undef LIBX11_SYSTEM | |
238 #endif |