comparison 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
comparison
equal deleted inserted replaced
5919:2800105fcc9f 5920:0f2338afbabf
1 /* Machine description file for intel 386.
2 Copyright (C) 1987 Free Software Foundation, Inc.
3
4 This file is part of XEmacs.
5
6 XEmacs is free software: you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation, either version 3 of the License, or (at your
9 option) any later version.
10
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */
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
28 The possibilities for -opsystem are: bsd4-2, usg5-4, usg5-4-2, and linux.
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.
48 with no extra dummy args. On USG, NO_REMAP says this isn't used. */
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
60 #ifdef ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF
61
62 /* Data type of load average, as read out of kmem. */
63 #define LOAD_AVE_TYPE long
64
65 /* Convert that into an integer that is 100 for a load average of 1.0 */
66 /* This is totally uncalibrated. */
67 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
68
69 #endif /* ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF */
70
71 /* configure thinks solaris X86 has gethostname, but it does not work,
72 so undefine it. */
73 #undef HAVE_GETHOSTNAME
74
75 #else /* not SOLARIS2 */
76 #ifdef USG5_4 /* Older USG systems do not support the load average. */
77 /* Data type of load average, as read out of kmem. */
78
79 #ifdef ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF
80
81 #define LOAD_AVE_TYPE long
82
83 /* Convert that into an integer that is 100 for a load average of 1.0 */
84 /* This is totally uncalibrated. */
85
86 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
87 #define FSCALE 256.0
88
89 #endif /* ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF */
90
91 #endif
92 #endif /* not SOLARIS2 */
93
94 #ifdef USG
95 #define NO_REMAP
96 #define TEXT_START 0
97 #endif /* USG */
98
99 #ifdef linux
100 /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */
101 /* we cannot get the maximum address for brk */
102 #define ULIMIT_BREAK_VALUE (32*1024*1024)
103
104 #define SEGMENT_MASK ((SEGMENT_SIZE)-1)
105 #endif