Mercurial > hg > xemacs-beta
annotate src/m/mips.h @ 5475:248176c74e6b
Merge with trunk.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Sat, 23 Apr 2011 23:47:13 +0200 |
parents | 308d34e9f07d |
children | 1f0b15040456 |
rev | line source |
---|---|
428 | 1 /* m- file for Mips machines. |
2 Copyright (C) 1987, 1992 Free Software Foundation, Inc. | |
3 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
4 This file is part of XEmacs. |
428 | 5 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
6 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:
4759
diff
changeset
|
7 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:
4759
diff
changeset
|
8 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:
4759
diff
changeset
|
9 option) any later version. |
428 | 10 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
11 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:
4759
diff
changeset
|
12 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:
4759
diff
changeset
|
13 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:
4759
diff
changeset
|
14 for more details. |
428 | 15 |
16 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:
4759
diff
changeset
|
17 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
428 | 18 |
19 /* Synched up with: FSF 19.31. */ | |
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 m-mips4.h for RISCOS version 4; use s-bsd4-3.h with the BSD world. | |
27 Note that the proper m- file for the Decstation is m-pmax.h. | |
28 NOTE-END */ | |
29 | |
30 /* Now define a symbol for the cpu type, if your compiler | |
31 does not define it automatically: | |
32 Ones defined so far include vax, m68000, ns16000, pyramid, | |
33 orion, tahoe, APOLLO and many others */ | |
34 #ifndef mips | |
35 # define mips | |
36 #endif | |
37 | |
38 /* Data type of load average, as read out of kmem. */ | |
39 | |
40 #define LOAD_AVE_TYPE long | |
41 | |
42 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
43 | |
44 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0) | |
45 | |
46 #ifndef linux | |
47 /* CDC EP/IX 1.4.3 uses /unix */ | |
48 | |
49 #undef KERNEL_FILE | |
50 #define KERNEL_FILE "/unix" | |
51 #endif /* ! linux */ | |
52 | |
53 /* Define NO_REMAP if memory segmentation makes it not work well | |
54 to change the boundary between the text section and data section | |
55 when Emacs is dumped. If you define this, the preloaded Lisp | |
56 code will not be sharable; but that's better than failing completely. */ | |
57 | |
58 #define NO_REMAP | |
59 | |
60 /* This machine requires completely different unexec code | |
61 which lives in a separate file. Specify the file name. */ | |
62 | |
63 #ifndef linux | |
64 #define UNEXEC "unexmips.o" | |
65 #endif /* !linux */ | |
66 /* Describe layout of the address space in an executing process. */ | |
67 | |
68 #ifdef linux | |
69 #define TEXT_START 0x00400000 | |
70 #define DATA_START 0x10000000 | |
71 #else /* !linux */ | |
72 #define TEXT_START 0x400000 | |
73 #define DATA_START 0x800000 | |
74 #endif /* linux */ | |
75 | |
76 /* Alter some of the options used when linking. */ | |
77 | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
78 #if !defined(linux) |
428 | 79 #ifdef BSD |
80 | |
81 /* DECstations don't have this library. */ | |
82 /* #define LIBS_MACHINE "-lmld" */ | |
83 | |
84 #define LD_SWITCH_MACHINE "-D 800000" | |
85 #define LIBS_DEBUG | |
86 | |
87 #define LINKER "/bsd43/bin/ld" | |
88 | |
89 #else /* not BSD */ | |
90 | |
91 #undef LIBS_MACHINE | |
92 #define LD_SWITCH_MACHINE "-D 800000 -g3" | |
93 #define START_FILES "pre-crt0.o /usr/lib/crt1.o" | |
94 #define LIB_STANDARD "-lbsd -lc /usr/lib/crtn.o" | |
95 #define LIBS_TERMCAP "-lcurses" | |
96 | |
97 #define C_SWITCH_MACHINE "-I/usr/include/bsd" | |
98 #define C_DEBUG_SWITCH "-O -g3" | |
99 | |
100 #endif /* not BSD */ | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
101 #endif /* !linux */ |
428 | 102 |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
103 #if !defined(linux) |
428 | 104 #ifdef USG |
105 | |
106 /* Don't try to use SIGIO even though it is defined. */ | |
107 #define BROKEN_SIGIO | |
108 | |
109 /* Describe special kernel features. */ | |
110 | |
111 #if defined(emacs) && !defined(INHIBIT_BSD_TIME) | |
112 #include <bsd/sys/time.h> | |
113 #endif | |
114 | |
115 /* The `select' in the system won't work for pipes, so don't use it. */ | |
116 #undef HAVE_SELECT /* override configuration decision */ | |
117 | |
118 /* ??? */ | |
119 #define IRIS | |
120 | |
121 #endif /* USG */ | |
122 | |
123 #ifdef BSD | |
124 #define COFF | |
125 #define TERMINFO | |
126 #undef MAIL_USE_FLOCK /* Someone should check this. */ | |
127 #endif /* BSD */ | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
128 #endif /* !linux */ |