Mercurial > hg > xemacs-beta
annotate src/m/x86_64.h @ 5920:0f2338afbabf cygwin
Minimum necessary to get started:
sufficient to compile OK, run -nw, but not with window
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Mon, 21 Apr 2014 11:42:50 +0100 |
parents | |
children |
rev | line source |
---|---|
5920
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
1 /* Machine description file for intel 386. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
2 Copyright (C) 1987 Free Software Foundation, Inc. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
3 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
4 This file is part of XEmacs. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
5 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
6 XEmacs is free software: you can redistribute it and/or modify it |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
7 under the terms of the GNU General Public License as published by the |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
8 Free Software Foundation, either version 3 of the License, or (at your |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
9 option) any later version. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
10 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
14 for more details. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
15 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
16 You should have received a copy of the GNU General Public License |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
17 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
18 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
19 /* Synched up with: FSF 19.31. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
20 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
21 /* The following line tells the configuration script what sort of |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
22 operating system this machine is likely to run. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
23 USUAL-OPSYS="note" |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
24 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
25 NOTE-START |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
26 Intel 386 (-machine=intel386 or -machine=is386.h) |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
27 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
28 The possibilities for -opsystem are: bsd4-2, usg5-4, usg5-4-2, and linux. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
29 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
30 18.58 should support a wide variety of operating systems. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
31 Use linux for Linux. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
32 It isn't clear what to do on an SCO system. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
33 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
34 Cubix QBx/386 (-machine=intel386 -opsystem=usg5-3) |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
35 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
36 Changes merged in 19.1. Systems before 2/A/0 may fail to compile etags.c |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
37 due to a compiler bug. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
38 NOTE-END */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
39 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
40 /* Now define a symbol for the cpu type, if your compiler |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
41 does not define it automatically: |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
42 Ones defined so far include vax, m68000, ns16000, pyramid, |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
43 orion, tahoe, APOLLO and many others */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
44 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
45 #define INTEL386 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
46 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
47 /* crt0.c, if it is used, should use the i386-bsd style of entry. |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
48 with no extra dummy args. On USG, NO_REMAP says this isn't used. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
49 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
50 /* Mly 16-Jan-96 16:38:32: this is part of a prototype -- same bug present in |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
51 other m*.h files */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
52 #define CRT0_DUMMIES int bogus_fp, |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
53 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
54 /* crt0.c should define a symbol `start' and do .globl with a dot. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
55 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
56 #define DOT_GLOBAL_START |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
57 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
58 #ifdef SOLARIS2 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
59 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
60 #ifdef ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
61 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
62 /* Data type of load average, as read out of kmem. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
63 #define LOAD_AVE_TYPE long |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
64 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
65 /* Convert that into an integer that is 100 for a load average of 1.0 */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
66 /* This is totally uncalibrated. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
67 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
68 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
69 #endif /* ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
70 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
71 /* configure thinks solaris X86 has gethostname, but it does not work, |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
72 so undefine it. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
73 #undef HAVE_GETHOSTNAME |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
74 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
75 #else /* not SOLARIS2 */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
76 #ifdef USG5_4 /* Older USG systems do not support the load average. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
77 /* Data type of load average, as read out of kmem. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
78 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
79 #ifdef ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
80 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
81 #define LOAD_AVE_TYPE long |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
82 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
83 /* Convert that into an integer that is 100 for a load average of 1.0 */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
84 /* This is totally uncalibrated. */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
85 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
86 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
87 #define FSCALE 256.0 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
88 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
89 #endif /* ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
90 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
91 #endif |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
92 #endif /* not SOLARIS2 */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
93 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
94 #ifdef USG |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
95 #define NO_REMAP |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
96 #define TEXT_START 0 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
97 #endif /* USG */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
98 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
99 #ifdef linux |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
100 /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
101 /* we cannot get the maximum address for brk */ |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
102 #define ULIMIT_BREAK_VALUE (32*1024*1024) |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
103 |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
104 #define SEGMENT_MASK ((SEGMENT_SIZE)-1) |
0f2338afbabf
Minimum necessary to get started:
Henry Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
105 #endif |