1/* machine description file for ibm ps/2 aix386. 2 Copyright (C) 1989, 2001, 2002, 2003, 2004, 2005, 3 2006, 2007 Free Software Foundation, Inc. 4 5This file is part of GNU Emacs. 6 7GNU Emacs is free software; you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 9the Free Software Foundation; either version 2, or (at your option) 10any later version. 11 12GNU Emacs is distributed in the hope that it will be useful, 13but WITHOUT ANY WARRANTY; without even the implied warranty of 14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15GNU General Public License for more details. 16 17You should have received a copy of the GNU General Public License 18along with GNU Emacs; see the file COPYING. If not, write to 19the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20Boston, MA 02110-1301, USA. */ 21 22 23/* The following line tells the configuration script what sort of 24 operating system this machine is likely to run. 25 USUAL-OPSYS="note" 26 27NOTE-START 28 Use -opsystem=usg5-3 on AIX 1.2. 29 -opsystem=usg5-2-2 should work on either AIX 1.1 or 1.2, but may not 30 work with certain new X window managers, and may be suboptimal. 31NOTE-END */ 32 33/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word 34 is the most significant byte. */ 35 36#undef WORDS_BIG_ENDIAN 37 38/* Define NO_ARG_ARRAY if you cannot take the address of the first of a 39 * group of arguments and treat it as an array of the arguments. */ 40 41/* #define NO_ARG_ARRAY */ 42 43/* Define WORD_MACHINE if addresses and such have 44 * to be corrected before they can be used as byte counts. */ 45 46/* #define WORD_MACHINE */ 47 48/* Now define a symbol for the cpu type, if your compiler 49 does not define it automatically: 50 Ones defined so far include vax, m68000, ns16000, pyramid, 51 orion, tahoe, APOLLO and many others */ 52 53#define INTEL386 54#define aix386 55 56#define IBMAIX 57 58/* Use type int rather than a union, to represent Lisp_Object */ 59 60#define NO_UNION_TYPE 61 62/* crt0.c, if it is used, should use the i386-bsd style of entry. 63 with no extra dummy args. On USG and XENIX, 64 NO_REMAP says this isn't used. */ 65 66#define CRT0_DUMMIES bogus_fp, 67 68/* crt0.c should define a symbol `start' and do .globl with a dot. */ 69 70#define DOT_GLOBAL_START 71 72/* USG systems do not actually support the load average, 73so disable it for them. */ 74 75/* Define CANNOT_DUMP on machines where unexec does not work. 76 Then the function dump-emacs will not be defined 77 and temacs will do (load "loadup") automatically unless told otherwise. */ 78 79/* #define CANNOT_DUMP */ 80 81/* Define VIRT_ADDR_VARIES if the virtual addresses of 82 pure and impure space as loaded can vary, and even their 83 relative order cannot be relied on. 84 85 Otherwise Emacs assumes that text space precedes data space, 86 numerically. */ 87 88/* #define VIRT_ADDR_VARIES */ 89 90/* Define addresses, macros, change some setup for dump */ 91 92#define NO_REMAP 93#undef static 94 /* Since NO_REMAP, problem with statics doesn't exist */ 95 96#ifdef USG5_3 97#define TEXT_START 0x00000000 98#else 99#define TEXT_START 0x00400000 100#define TEXT_END 0 101#define DATA_START 0x00800000 102#define DATA_END 0 103 104/* The data segment in this machine always starts at address 0x00800000. 105 An address of data cannot be stored correctly in a Lisp object; 106 we always lose the high bits. We must tell XPNTR to add them back. */ 107 108#define DATA_SEG_BITS 0x00800000 109#endif 110 111#if 0 /* I refuse to promulgate a recommendation that would make 112 users unable to debug - RMS. */ 113/* delete the following line to foil optimization, enable debugging */ 114#define C_DEBUG_SWITCH -O 115#endif 116 117#define BSTRING 118#undef HAVE_TERMIO 119#define HAVE_TERMIOS 120 121/* Send signals to subprocesses by "typing" special chars at them. */ 122 123#define SIGNALS_VIA_CHARACTERS 124 125/* 126 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir 127 * library functions. Almost, but not quite the same as 128 * the 4.2 functions 129 */ 130#define SYSV_SYSTEM_DIR 131 132/* 133 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate 134 * The 4.2 opendir, etc., library functions. 135 */ 136#undef NONSYSTEM_DIR_LIBRARY 137 138/* AIX utimes allegedly causes SIGSEGV. */ 139#undef HAVE_UTIMES /* override configuration decision */ 140 141/* AIX defines FIONREAD, but it does not work. */ 142#define BROKEN_FIONREAD 143 144/* Data type of load average, as read out of kmem. */ 145 146#define LOAD_AVE_TYPE long /* For AIX (sysV) */ 147 148/* Convert that into an integer that is 100 for a load average of 1.0 */ 149 150#define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0) 151 152/* This page was added in June 1990. It may be incorrect for some versions 153 of aix, so delete it if it causes trouble. */ 154 155/* AIX has sigsetmask() */ 156#undef sigsetmask 157 158/* AIX386 has BSD4.3 PTYs */ 159 160#define HAVE_PTYS 161 162/* AIX has IPC. It also has sockets, and either can be used for client/server. 163 I would suggest the client/server code be changed to use HAVE_SOCKETS rather 164 than BSD as the conditional if sockets provide any advantages. */ 165 166#define HAVE_SYSVIPC 167 168/* AIX has sockets */ 169 170#define HAVE_SOCKETS 171/* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */ 172 173/* Specify the font for X to use. */ 174 175#define X_DEFAULT_FONT "8x13" 176 177/* AIX has a wait.h. */ 178 179#define HAVE_WAIT_HEADER 180 181/* sioctl.h should not be included, says bytheway@cs.utah.edu. */ 182#undef NEED_SIOCTL 183/* I'm guessing that that means it doesn't want ptem.h either. */ 184#undef NEED_PTEM_H 185 186/* aix has `union wait' */ 187#define HAVE_UNION_WAIT 188 189/* Here override various assumptions in ymakefile */ 190 191#ifdef __GNUC__ 192#define alloca(n) __builtin_alloca(n) 193#if __GNUC__ < 2 194#define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc 195#endif 196/* -g fails to work, so it is omitted. */ 197/* tranle says that -fstrength-reduce does not help. */ 198#define C_DEBUG_SWITCH 199#else 200#define LIBS_MACHINE -lbsd -lrts 201#endif 202 203#define OBJECTS_MACHINE hftctl.o 204#define LD_SWITCH_MACHINE -T0x00400000 -K -e start 205#define LIBS_DEBUG /* no -lg on aix ps/2 */ 206 207#ifdef USG5_3 208#define XICCC 209#undef LD_SWITCH_MACHINE 210#define LD_SWITCH_MACHINE -T0x0 -K -e start 211 212/* Things defined in s-usg5-3.h that need to be overridden. */ 213#undef NOMULTIPLEJOBS 214#undef BROKEN_TIOCGETC 215#undef BROKEN_TIOCGWINSZ 216#undef LIBX10_SYSTEM 217#undef LIBX11_SYSTEM 218#undef LIB_X11_LIB 219#endif 220 221/* Shared libraries are supported in a patch release of ps/2 1.2.1. 222 If the system has them, the user can turn them on, and this code 223 will make them work. */ 224#define USG_SHARED_LIBRARIES /* Assume that by 19's release everyone has this. */ 225 226#ifdef USG_SHARED_LIBRARIES 227#define ORDINARY_LINK 228#undef LIB_STANDARD 229#undef LD_SWITCH_MACHINE 230#if __GNUC__ > 1 231#define LD_SWITCH_MACHINE -shlib 232#endif 233#endif 234 235/* arch-tag: 2e7f44df-6a61-4a47-aa53-f7961bfeff11 236 (do not change this comment) */ 237