(with-selected-window): Add closing paren.
[emacs.git] / src / m / ia64.h
bloba765fab154310ac4a7c7e1c01ee51bd7051d10b3
1 /* machine description file for the IA-64 architecture.
2 Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
3 Contributed by David Mosberger <davidm@hpl.hp.com>
5 This file is part of GNU Emacs.
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 2, or (at your option)
10 any later version.
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.
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 #define BITS_PER_LONG 64
23 #define BITS_PER_EMACS_INT 64
25 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
26 is the most significant byte. */
28 #undef WORDS_BIG_ENDIAN
30 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
31 group of arguments and treat it as an array of the arguments. */
33 #define NO_ARG_ARRAY
35 /* Define WORD_MACHINE if addresses and such have
36 to be corrected before they can be used as byte counts. */
38 /* #define WORD_MACHINE */
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 */
45 /* __ia64__ defined automatically */
48 /* Use type EMACS_INT rather than a union, to represent Lisp_Object */
49 /* This is desirable for most machines. */
51 #define NO_UNION_TYPE
53 /* Define the type to use. */
54 #define EMACS_INT long
55 #define EMACS_UINT unsigned long
56 #define SPECIAL_EMACS_INT
58 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
59 the 24-bit bit field into an int. In other words, if bit fields
60 are always unsigned.
62 If you use NO_UNION_TYPE, this flag does not matter. */
64 #define EXPLICIT_SIGN_EXTEND
66 /* Data type of load average, as read out of kmem. */
68 #define LOAD_AVE_TYPE long
70 /* Convert that into an integer that is 100 for a load average of 1.0 */
72 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
74 /* Define CANNOT_DUMP on machines where unexec does not work.
75 Then the function dump-emacs will not be defined
76 and temacs will do (load "loadup") automatically unless told otherwise. */
77 #if 0
78 #define CANNOT_DUMP
79 #endif
81 /* Define VIRT_ADDR_VARIES if the virtual addresses of
82 pure and impure space as loaded can vary, and even their
83 relative order cannot be relied on.
85 Otherwise Emacs assumes that text space precedes data space,
86 numerically. */
88 /* #define VIRT_ADDR_VARIES */
90 /* Define the following if GNU malloc and the relocating allocator do
91 not work together with X. */
93 /* #define SYSTEM_MALLOC */
95 /* Define NO_REMAP if memory segmentation makes it not work well
96 to change the boundary between the text section and data section
97 when Emacs is dumped. If you define this, the preloaded Lisp
98 code will not be sharable; but that's better than failing completely. */
100 /* #define NO_REMAP */
102 /* Some really obscure 4.2-based systems (like Sequent DYNIX) do not
103 support asynchronous I/O (using SIGIO) on sockets, even though it
104 works fine on tty's. If you have one of these systems, define the
105 following, and then use it in config.h (or elsewhere) to decide
106 when (not) to use SIGIO.
108 You'd think this would go in an operating-system description file,
109 but since it only occurs on some, but not all, BSD systems, the
110 reasonable place to select for it is in the machine description
111 file. */
113 /* #define NO_SOCK_SIGIO */
115 #ifdef __ELF__
116 #undef UNEXEC
117 #define UNEXEC unexelf.o
118 #endif
120 #define PNTR_COMPARISON_TYPE unsigned long
122 /* On the 64 bit architecture, we can use 60 bits for addresses */
124 #define VALBITS 60
126 /* Define XINT and XUINT so that they can take arguments of type int */
128 #define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
129 #define XUINT(a) ((long) (a) & VALMASK)
131 #ifndef NOT_C_CODE
133 #ifdef REL_ALLOC
134 #ifndef _MALLOC_INTERNAL
135 /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it
136 is allowed to prototype these as "void *" so we don't prototype in
137 that case. You're right: it stinks! */
138 extern char *r_alloc (), *r_re_alloc ();
139 extern void r_alloc_free ();
140 #endif /* not _MALLOC_INTERNAL */
141 #endif /* REL_ALLOC */
143 #endif /* not NOT_C_CODE */
145 #define DATA_SEG_BITS 0x6000000000000000
147 #define HAVE_TEXT_START