Mercurial > hg > xemacs-beta
annotate src/m/powerpc.h @ 5409:c36f065c3090
Convert part of root folder to GPLv3.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Thu, 21 Oct 2010 00:19:13 +0200 |
parents | 308d34e9f07d |
children | 1f0b15040456 |
rev | line source |
---|---|
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 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
7 XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
8 under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
9 Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
10 option) any later version. |
428 | 11 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
15 for more details. |
428 | 16 |
17 You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
2367
diff
changeset
|
18 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
428 | 19 |
20 /* The following line tells the configuration script what sort of | |
21 operating system this machine is likely to run. | |
22 USUAL-OPSYS="solaris2-5" */ | |
23 | |
24 #ifdef NOT_C_CODE | |
25 # define POWERPC | |
26 #else | |
27 # ifndef powerpc | |
28 # define powerpc | |
29 # endif | |
30 #endif | |
31 | |
32 #ifdef __GNUC__ | |
33 # define C_OPTIMIZE_SWITCH "-O" | |
34 #else | |
35 /* XEmacs change */ | |
36 # ifdef USE_LCC | |
37 # define C_OPTIMIZE_SWITCH "-O4 -Oi" | |
38 # else | |
39 /* This level of optimization is reported to work. */ | |
40 # define C_OPTIMIZE_SWITCH "-O2" | |
41 # endif | |
42 #endif | |
43 | |
44 #ifndef __linux__ | |
45 /* Data type of load average, as read out of kmem. */ | |
46 | |
47 #define LOAD_AVE_TYPE long | |
48 | |
49 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
50 | |
51 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | |
52 #else /* mklinux */ | |
53 | |
54 /* Define addresses, macros, change some setup for dump */ | |
55 | |
56 #define NO_REMAP | |
57 | |
58 #define N_BADMAG(x) BADMAG(x) | |
59 #define N_TXTOFF(x) A_TEXTPOS(x) | |
60 #define N_SYMOFF(x) A_SYMPOS(x) | |
61 /* #define A_TEXT_OFFSET(HDR) sizeof(HDR) */ | |
62 /* #define ADJUST_EXEC_HEADER \ | |
63 unexec_text_start += sizeof(hdr); \ | |
64 unexec_data_start = ohdr.a_dbase | |
65 */ | |
66 #undef ADDR_CORRECT | |
67 #define ADDR_CORRECT(x) ((int)(x)) | |
68 | |
69 /* Specify the font for X to use. | |
70 This used to be Rom14.500; that's nice on the X server shipped with | |
71 the RS/6000, but it's not available on other servers. */ | |
72 #define X_DEFAULT_FONT "fixed" | |
73 | |
74 /* Here override various assumptions in ymakefile */ | |
75 | |
76 /* #undef START_FILES */ | |
77 /* #define HAVE_SYSVIPC */ | |
78 | |
79 /* Don't try to include sioctl.h or ptem.h. */ | |
80 #undef NEED_SIOCTL | |
81 #undef NEED_PTEM_H | |
82 | |
83 #define ORDINARY_LINK | |
84 /*#define LD_SWITCH_MACHINE -T ${srcdir}/src/ppc.ldscript*/ | |
85 #endif |