101108
|
1 /* Machine description file for the alpha chip.
|
94714
|
2 Copyright (C) 1994, 1997, 1999, 2001, 2002, 2003, 2004, 2005, 2006,
|
100951
|
3 2007, 2008, 2009 Free Software Foundation, Inc.
|
8836
|
4
|
101108
|
5 Author: Rainer Schoepf
|
|
6 (according to authors.el)
|
|
7
|
8836
|
8 This file is part of GNU Emacs.
|
|
9
|
94714
|
10 GNU Emacs is free software: you can redistribute it and/or modify
|
8836
|
11 it under the terms of the GNU General Public License as published by
|
94714
|
12 the Free Software Foundation, either version 3 of the License, or
|
|
13 (at your option) any later version.
|
8836
|
14
|
|
15 GNU Emacs is distributed in the hope that it will be useful,
|
|
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
18 GNU General Public License for more details.
|
|
19
|
|
20 You should have received a copy of the GNU General Public License
|
94714
|
21 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
8836
|
22
|
|
23
|
49600
|
24 /* The following line tells the configuration script what sort of
|
8836
|
25 operating system this machine is likely to run.
|
|
26 USUAL-OPSYS="note"
|
|
27
|
|
28 NOTE-START
|
|
29 Use -opsystem=osf1
|
|
30 NOTE-END
|
|
31
|
|
32 */
|
|
33
|
28647
|
34 #ifndef _LP64
|
29912
|
35 #define _LP64 /* This doesn't appear to be necessary
|
|
36 on OSF 4/5 -- fx. */
|
28647
|
37 #endif
|
8836
|
38
|
78499
|
39 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
|
9095
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
40 is the most significant byte. */
|
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
41
|
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
42 #undef WORDS_BIG_ENDIAN
|
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
diff
changeset
|
43
|
8836
|
44 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
|
|
45 * group of arguments and treat it as an array of the arguments. */
|
|
46
|
|
47 #define NO_ARG_ARRAY
|
|
48
|
|
49 /* Now define a symbol for the cpu type, if your compiler
|
96732
|
50 does not define it automatically. */
|
8836
|
51
|
|
52 /* __alpha defined automatically */
|
|
53
|
|
54
|
|
55 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
|
|
56 the 24-bit bit field into an int. In other words, if bit fields
|
|
57 are always unsigned.
|
|
58
|
96602
|
59 This flag only matters if you use USE_LISP_UNION_TYPE. */
|
8836
|
60
|
|
61 #define EXPLICIT_SIGN_EXTEND
|
|
62
|
|
63 /* Data type of load average, as read out of kmem. */
|
|
64
|
|
65 #define LOAD_AVE_TYPE long
|
|
66
|
|
67 /* Convert that into an integer that is 100 for a load average of 1.0 */
|
|
68
|
|
69 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
|
|
70
|
|
71 /* GNU malloc and the relocating allocator do not work together
|
11979
|
72 with X. [Who wrote that?] */
|
|
73
|
|
74 /* May 1995: reportedly [Rainer Schoepf <schoepf@uni-mainz.de>] both the
|
|
75 system and the gnu malloc system work with "alpha-dec-osf3.0" and
|
|
76 "alpha-dec-osf3.2". */
|
|
77
|
|
78 /* May 1995: it seems to me [Morten Welinder <terra@diku.dk>] that both
|
|
79 mallocs work with "alpha-dec-osf2.0", but I daren't break anything
|
|
80 right now. Feel free to play if you want. */
|
8836
|
81
|
12301
|
82 /* #define SYSTEM_MALLOC */
|
8836
|
83
|
15850
|
84 #ifdef __ELF__
|
|
85 /* With ELF, make sure that all common symbols get allocated to in the
|
|
86 data section. Otherwise, the dump of temacs may miss variables in
|
|
87 the shared library that have been initialized. For example, with
|
|
88 GNU libc, __malloc_initialized would normally be resolved to the
|
|
89 shared library's .bss section, which is fatal. */
|
|
90 # ifdef __GNUC__
|
|
91 # define C_SWITCH_MACHINE -fno-common
|
|
92 # else
|
|
93 # error What gives? Fix me if DEC Unix supports ELF now.
|
|
94 # endif
|
|
95
|
15851
|
96 #undef UNEXEC
|
16119
|
97 #define UNEXEC unexelf.o
|
96643
|
98 #ifndef GNU_LINUX
|
46651
|
99 #define DATA_START 0x140000000
|
15851
|
100 #endif
|
96643
|
101
|
|
102 #if (defined (__NetBSD__) || defined (__OpenBSD__))
|
|
103 #define HAVE_TEXT_START
|
47512
|
104 #endif
|
15851
|
105
|
96643
|
106 #else /* not __ELF__ */
|
15850
|
107
|
8836
|
108 /* Describe layout of the address space in an executing process. */
|
|
109
|
|
110 #define TEXT_START 0x120000000
|
|
111 #define DATA_START 0x140000000
|
|
112
|
15850
|
113 /* The program to be used for unexec. */
|
|
114
|
|
115 #define UNEXEC unexalpha.o
|
|
116
|
96643
|
117 #endif /* __ELF__ */
|
15850
|
118
|
96948
|
119 #if defined (GNU_LINUX) && __GNU_LIBRARY__ - 0 < 6
|
|
120 /* This controls a conditional in main. */
|
|
121 #define LINUX_SBRK_BUG
|
|
122 #endif
|
|
123
|
15850
|
124 /* On the Alpha it's best to avoid including TERMIO since struct
|
|
125 termio and struct termios are mutually incompatible. */
|
12827
|
126 #define NO_TERMIO
|
|
127
|
96643
|
128 #if defined (GNU_LINUX) || defined (__NetBSD__) || defined (__OpenBSD__)
|
15850
|
129 # ifndef __ELF__
|
|
130 # define COFF
|
|
131 # endif /* notdef __ELF__ */
|
12827
|
132 #endif
|
20031
|
133
|
20201
|
134 /* Many Alpha implementations (e.g. gas 2.8) can't handle DBL_MIN:
|
|
135 they generate code that uses a signaling NaN instead of DBL_MIN.
|
|
136 Define DBL_MIN_REPLACEMENT to be the next value larger than DBL_MIN:
|
|
137 this avoids the assembler bug. */
|
|
138 #define DBL_MIN_REPLACEMENT 2.2250738585072019e-308
|
52401
|
139
|
|
140 /* arch-tag: 978cb578-1e25-4a60-819b-adae0972aa78
|
|
141 (do not change this comment) */
|