428
+ − 1 /* machine description file for Power PC
+ − 2 Copyright (C) 1987, 1994 Free Software Foundation, Inc.
+ − 3 Copyright (C) 1995 Board of Trustees, University of Illinois
+ − 4
+ − 5 This file is part of XEmacs.
+ − 6
+ − 7 XEmacs is free software; you can redistribute it and/or modify
+ − 8 it under the terms of the GNU General Public License as published by
+ − 9 the Free Software Foundation; either version 2, or (at your option)
+ − 10 any later version.
+ − 11
+ − 12 XEmacs is distributed in the hope that it will be useful,
+ − 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
+ − 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ − 15 GNU General Public License for more details.
+ − 16
+ − 17 You should have received a copy of the GNU General Public License
+ − 18 along with XEmacs; see the file COPYING. If not, write to
+ − 19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ − 20 Boston, MA 02111-1307, USA. */
+ − 21
+ − 22 /* The following line tells the configuration script what sort of
+ − 23 operating system this machine is likely to run.
+ − 24 USUAL-OPSYS="solaris2-5" */
+ − 25
+ − 26 #ifdef NOT_C_CODE
+ − 27 # define POWERPC
+ − 28 #else
+ − 29 # ifndef powerpc
+ − 30 # define powerpc
+ − 31 # endif
+ − 32 #endif
+ − 33
+ − 34 #ifdef __GNUC__
+ − 35 # define C_OPTIMIZE_SWITCH "-O"
+ − 36 #else
+ − 37 /* XEmacs change */
+ − 38 # ifdef USE_LCC
+ − 39 # define C_OPTIMIZE_SWITCH "-O4 -Oi"
+ − 40 # else
+ − 41 /* This level of optimization is reported to work. */
+ − 42 # define C_OPTIMIZE_SWITCH "-O2"
+ − 43 # endif
+ − 44 #endif
+ − 45
+ − 46 #ifndef __linux__
+ − 47 /* Data type of load average, as read out of kmem. */
+ − 48
+ − 49 #define LOAD_AVE_TYPE long
+ − 50
+ − 51 /* Convert that into an integer that is 100 for a load average of 1.0 */
+ − 52
+ − 53 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
+ − 54 #else /* mklinux */
+ − 55
+ − 56 /* Define addresses, macros, change some setup for dump */
+ − 57
+ − 58 #define NO_REMAP
+ − 59
+ − 60 #define N_BADMAG(x) BADMAG(x)
+ − 61 #define N_TXTOFF(x) A_TEXTPOS(x)
+ − 62 #define N_SYMOFF(x) A_SYMPOS(x)
+ − 63 /* #define A_TEXT_OFFSET(HDR) sizeof(HDR) */
+ − 64 /* #define ADJUST_EXEC_HEADER \
+ − 65 unexec_text_start += sizeof(hdr); \
+ − 66 unexec_data_start = ohdr.a_dbase
+ − 67 */
+ − 68 #undef ADDR_CORRECT
+ − 69 #define ADDR_CORRECT(x) ((int)(x))
+ − 70
+ − 71 /* Specify the font for X to use.
+ − 72 This used to be Rom14.500; that's nice on the X server shipped with
+ − 73 the RS/6000, but it's not available on other servers. */
+ − 74 #define X_DEFAULT_FONT "fixed"
+ − 75
+ − 76 /* Here override various assumptions in ymakefile */
+ − 77
+ − 78 /* #undef START_FILES */
+ − 79 /* #define HAVE_SYSVIPC */
+ − 80
+ − 81 /* Don't try to include sioctl.h or ptem.h. */
+ − 82 #undef NEED_SIOCTL
+ − 83 #undef NEED_PTEM_H
+ − 84
+ − 85 #define ORDINARY_LINK
+ − 86 /*#define LD_SWITCH_MACHINE -T ${srcdir}/src/ppc.ldscript*/
+ − 87 #endif