Mercurial > hg > xemacs-beta
annotate src/m/intel386.h @ 5450:8c406331e77e
Copyright and license to src/s/sol2.h.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Thu, 06 Jan 2011 01:31:43 +0100 |
parents | 308d34e9f07d |
children | 1f0b15040456 |
rev | line source |
---|---|
428 | 1 /* Machine description file for intel 386. |
2 Copyright (C) 1987 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 Intel 386 (-machine=intel386 or -machine=is386.h) | |
27 | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
28 The possibilities for -opsystem are: bsd4-2, usg5-4, usg5-4-2, and linux. |
428 | 29 |
30 18.58 should support a wide variety of operating systems. | |
31 Use linux for Linux. | |
32 It isn't clear what to do on an SCO system. | |
33 | |
34 Cubix QBx/386 (-machine=intel386 -opsystem=usg5-3) | |
35 | |
36 Changes merged in 19.1. Systems before 2/A/0 may fail to compile etags.c | |
37 due to a compiler bug. | |
38 NOTE-END */ | |
39 | |
40 /* Now define a symbol for the cpu type, if your compiler | |
41 does not define it automatically: | |
42 Ones defined so far include vax, m68000, ns16000, pyramid, | |
43 orion, tahoe, APOLLO and many others */ | |
44 | |
45 #define INTEL386 | |
46 | |
47 /* crt0.c, if it is used, should use the i386-bsd style of entry. | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
48 with no extra dummy args. On USG, NO_REMAP says this isn't used. */ |
428 | 49 |
50 /* Mly 16-Jan-96 16:38:32: this is part of a prototype -- same bug present in | |
51 other m*.h files */ | |
52 #define CRT0_DUMMIES int bogus_fp, | |
53 | |
54 /* crt0.c should define a symbol `start' and do .globl with a dot. */ | |
55 | |
56 #define DOT_GLOBAL_START | |
57 | |
58 #ifdef SOLARIS2 | |
59 /* Data type of load average, as read out of kmem. */ | |
60 #define LOAD_AVE_TYPE long | |
61 | |
62 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
63 /* This is totally uncalibrated. */ | |
64 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | |
65 | |
66 /* configure thinks solaris X86 has gethostname, but it does not work, | |
67 so undefine it. */ | |
68 #undef HAVE_GETHOSTNAME | |
69 | |
70 #else /* not SOLARIS2 */ | |
71 #ifdef USG5_4 /* Older USG systems do not support the load average. */ | |
72 /* Data type of load average, as read out of kmem. */ | |
73 | |
74 #define LOAD_AVE_TYPE long | |
75 | |
76 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
77 /* This is totally uncalibrated. */ | |
78 | |
79 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | |
80 #define FSCALE 256.0 | |
81 #endif | |
82 #endif /* not SOLARIS2 */ | |
83 | |
84 #ifdef USG | |
85 #define NO_REMAP | |
86 #define TEXT_START 0 | |
87 #endif /* USG */ | |
88 | |
89 #ifdef linux | |
90 /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */ | |
91 /* we cannot get the maximum address for brk */ | |
92 #define ULIMIT_BREAK_VALUE (32*1024*1024) | |
93 | |
94 #define SEGMENT_MASK ((SEGMENT_SIZE)-1) | |
95 #endif |