]> code.delx.au - gnu-emacs/blob - src/m/intel386.h
(right_overwritten): Doc fix
[gnu-emacs] / src / m / intel386.h
1 /* Machine description file for intel 386.
2 Copyright (C) 1987, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3 2008 Free Software Foundation, Inc.
4
5 This file is part of GNU Emacs.
6
7 GNU Emacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
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)
27
28 The possibilities for -opsystem are: bsd4-2, usg5-2-2, usg5-3,
29 isc2-2, 386-ix, and linux.
30
31 18.58 should support a wide variety of operating systems.
32 Use linux for Linux.
33 It isn't clear what to do on an SCO system.
34
35 NOTE-END */
36
37 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
38 is the most significant byte. */
39
40 #undef WORDS_BIG_ENDIAN
41
42 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
43 * group of arguments and treat it as an array of the arguments. */
44
45 /* #define NO_ARG_ARRAY */
46
47 /* crt0.c, if it is used, should use the i386-bsd style of entry.
48 with no extra dummy args. On USG and XENIX,
49 NO_REMAP says this isn't used. */
50
51 #define CRT0_DUMMIES bogus_fp,
52
53 /* crt0.c should define a symbol `start' and do .globl with a dot. */
54
55 #define DOT_GLOBAL_START
56
57 #ifdef SOLARIS2
58 /* Data type of load average, as read out of kmem. */
59 #define LOAD_AVE_TYPE long
60
61 /* Convert that into an integer that is 100 for a load average of 1.0 */
62 /* This is totally uncalibrated. */
63 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
64
65 /* J.W.Hawtin@lut.ac.uk say Solaris 2.4 as well as Solaris 2.1 on X86
66 requires -lkvm as well.
67 And handa@etl.gov.jp says that -lkvm needs -llelf, at least on 2.5. */
68 #define LIBS_MACHINE -lkvm -lelf
69
70 /* configure thinks solaris X86 has gethostname, but it does not work,
71 so undefine it. */
72 #undef HAVE_GETHOSTNAME
73
74 #else /* not SOLARIS2 */
75 #ifdef USG5_4 /* Older USG systems do not support the load average. */
76 /* Data type of load average, as read out of kmem. */
77
78 #define LOAD_AVE_TYPE long
79
80 /* Convert that into an integer that is 100 for a load average of 1.0 */
81 /* This is totally uncalibrated. */
82
83 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
84 #define FSCALE 256.0
85 #endif /* USG5_4 */
86 #endif /* not SOLARIS2 */
87
88 #ifdef USG
89 #define TEXT_START 0
90 #endif /* USG */
91
92 #ifdef MSDOS
93 #define NO_REMAP
94 #endif
95
96 #ifdef WINDOWSNT
97 #define VIRT_ADDR_VARIES
98 #define DATA_START get_data_start ()
99 #define NO_ARG_ARRAY
100 #endif
101
102 #ifdef GNU_LINUX
103 /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */
104 /* we cannot get the maximum address for brk */
105 #define ULIMIT_BREAK_VALUE (32*1024*1024)
106
107 #define SEGMENT_MASK ((SEGMENT_SIZE)-1)
108 #endif
109
110 #if defined (MAC_OSX) || defined (DARWIN)
111 #ifdef _LP64
112 /* For Intel Mac, with CC='gcc -arch x86_64'. */
113 #define NO_ARG_ARRAY
114 #endif
115 #endif
116
117 /* arch-tag: 746338f0-cb7b-4f49-a98c-cb50817cf2ec
118 (do not change this comment) */