diff options
| author | Andreas Schwab | 2000-08-04 08:48:52 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2000-08-04 08:48:52 +0000 |
| commit | 2dad51cce68f8a19632f3c572410d97ca344b95b (patch) | |
| tree | 55b08f7da30ceed9b4786f4950b4a99b23eb7598 /src/m | |
| parent | 7bff37dc163fc8bf7ee8adb9c8ee402e19827640 (diff) | |
| download | emacs-2dad51cce68f8a19632f3c572410d97ca344b95b.tar.gz emacs-2dad51cce68f8a19632f3c572410d97ca344b95b.zip | |
* m/ia64.h: Moved from s/ia64.h.
Diffstat (limited to 'src/m')
| -rw-r--r-- | src/m/ia64.h | 196 |
1 files changed, 196 insertions, 0 deletions
diff --git a/src/m/ia64.h b/src/m/ia64.h new file mode 100644 index 00000000000..14a060ca30f --- /dev/null +++ b/src/m/ia64.h | |||
| @@ -0,0 +1,196 @@ | |||
| 1 | /* machine description file for the IA-64 architecture. | ||
| 2 | Copyright (C) 2000 Free Software Foundation, Inc. | ||
| 3 | Contributed by David Mosberger <davidm@hpl.hp.com> | ||
| 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 1, or (at your option) | ||
| 10 | 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; 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. */ | ||
| 21 | |||
| 22 | #define BITS_PER_LONG 64 | ||
| 23 | #define BITS_PER_EMACS_INT 64 | ||
| 24 | |||
| 25 | /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word | ||
| 26 | is the most significant byte. */ | ||
| 27 | |||
| 28 | #undef WORDS_BIG_ENDIAN | ||
| 29 | |||
| 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. */ | ||
| 32 | |||
| 33 | #define NO_ARG_ARRAY | ||
| 34 | |||
| 35 | /* Define WORD_MACHINE if addresses and such have | ||
| 36 | to be corrected before they can be used as byte counts. */ | ||
| 37 | |||
| 38 | /* #define WORD_MACHINE */ | ||
| 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 | /* __ia64__ defined automatically */ | ||
| 46 | |||
| 47 | |||
| 48 | /* Use type EMACS_INT rather than a union, to represent Lisp_Object */ | ||
| 49 | /* This is desirable for most machines. */ | ||
| 50 | |||
| 51 | #define NO_UNION_TYPE | ||
| 52 | |||
| 53 | /* Define the type to use. */ | ||
| 54 | #define EMACS_INT long | ||
| 55 | #define EMACS_UINT unsigned long | ||
| 56 | #define SPECIAL_EMACS_INT | ||
| 57 | |||
| 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. | ||
| 61 | |||
| 62 | If you use NO_UNION_TYPE, this flag does not matter. */ | ||
| 63 | |||
| 64 | #define EXPLICIT_SIGN_EXTEND | ||
| 65 | |||
| 66 | /* Data type of load average, as read out of kmem. */ | ||
| 67 | |||
| 68 | #define LOAD_AVE_TYPE long | ||
| 69 | |||
| 70 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 71 | |||
| 72 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | ||
| 73 | |||
| 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 | ||
| 80 | |||
| 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. | ||
| 84 | |||
| 85 | Otherwise Emacs assumes that text space precedes data space, | ||
| 86 | numerically. */ | ||
| 87 | |||
| 88 | /* #define VIRT_ADDR_VARIES */ | ||
| 89 | |||
| 90 | /* Define C_ALLOCA if this machine does not support a true alloca | ||
| 91 | and the one written in C should be used instead. | ||
| 92 | Define HAVE_ALLOCA to say that the system provides a properly | ||
| 93 | working alloca function and it should be used. | ||
| 94 | Define neither one if an assembler-language alloca | ||
| 95 | in the file alloca.s should be used. */ | ||
| 96 | |||
| 97 | #define HAVE_ALLOCA | ||
| 98 | |||
| 99 | /* Define the following if GNU malloc and the relocating allocator do | ||
| 100 | not work together with X. */ | ||
| 101 | |||
| 102 | /* #define SYSTEM_MALLOC */ | ||
| 103 | |||
| 104 | /* Define NO_REMAP if memory segmentation makes it not work well | ||
| 105 | to change the boundary between the text section and data section | ||
| 106 | when Emacs is dumped. If you define this, the preloaded Lisp | ||
| 107 | code will not be sharable; but that's better than failing completely. */ | ||
| 108 | |||
| 109 | /* #define NO_REMAP */ | ||
| 110 | |||
| 111 | /* Some really obscure 4.2-based systems (like Sequent DYNIX) do not | ||
| 112 | support asynchronous I/O (using SIGIO) on sockets, even though it | ||
| 113 | works fine on tty's. If you have one of these systems, define the | ||
| 114 | following, and then use it in config.h (or elsewhere) to decide | ||
| 115 | when (not) to use SIGIO. | ||
| 116 | |||
| 117 | You'd think this would go in an operating-system description file, | ||
| 118 | but since it only occurs on some, but not all, BSD systems, the | ||
| 119 | reasonable place to select for it is in the machine description | ||
| 120 | file. */ | ||
| 121 | |||
| 122 | /* #define NO_SOCK_SIGIO */ | ||
| 123 | |||
| 124 | #ifdef __ELF__ | ||
| 125 | #undef UNEXEC | ||
| 126 | #define UNEXEC unexelf.o | ||
| 127 | #endif | ||
| 128 | |||
| 129 | #define PNTR_COMPARISON_TYPE unsigned long | ||
| 130 | |||
| 131 | /* On the 64 bit architecture, we can use 60 bits for addresses */ | ||
| 132 | |||
| 133 | #define VALBITS 60 | ||
| 134 | |||
| 135 | /* This definition of MARKBIT is necessary because of the comparison of | ||
| 136 | ARRAY_MARK_FLAG and MARKBIT in an #if in lisp.h, which cpp doesn't like. */ | ||
| 137 | |||
| 138 | #define MARKBIT 0x8000000000000000L | ||
| 139 | |||
| 140 | /* Define XINT and XUINT so that they can take arguments of type int */ | ||
| 141 | |||
| 142 | #define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS)) | ||
| 143 | #define XUINT(a) ((long) (a) & VALMASK) | ||
| 144 | |||
| 145 | /* Declare malloc and realloc in a way that is clean. | ||
| 146 | But not in makefiles! */ | ||
| 147 | |||
| 148 | #ifndef NOT_C_CODE | ||
| 149 | /* We need these because pointers are larger than the default ints. */ | ||
| 150 | # if !defined(__NetBSD__) && !defined(__OpenBSD__) | ||
| 151 | # include <alloca.h> | ||
| 152 | # else | ||
| 153 | # include <stdlib.h> | ||
| 154 | # endif | ||
| 155 | |||
| 156 | /* Hack alert! For reasons unknown to mankind the string.h file insists | ||
| 157 | on defining bcopy etc. as taking char pointers as arguments. With | ||
| 158 | Emacs this produces an endless amount of warning which are harmless, | ||
| 159 | but tends to flood the real errors. This hack works around this problem | ||
| 160 | by not prototyping. */ | ||
| 161 | #define bcopy string_h_bcopy | ||
| 162 | #define bzero string_h_bzero | ||
| 163 | #define bcmp string_h_bcmp | ||
| 164 | #include <string.h> | ||
| 165 | #undef bcopy | ||
| 166 | #undef bzero | ||
| 167 | #undef bcmp | ||
| 168 | |||
| 169 | /* We need to prototype these for the lib-src programs even if we don't | ||
| 170 | use the system malloc for the Emacs proper. */ | ||
| 171 | #ifdef _MALLOC_INTERNAL | ||
| 172 | /* These declarations are designed to match the ones in gmalloc.c. */ | ||
| 173 | #if defined (__STDC__) && __STDC__ | ||
| 174 | extern void *malloc (), *realloc (), *calloc (); | ||
| 175 | #else | ||
| 176 | extern char *malloc (), *realloc (), *calloc (); | ||
| 177 | #endif | ||
| 178 | #else /* not _MALLOC_INTERNAL */ | ||
| 179 | extern void *malloc (), *realloc (), *calloc (); | ||
| 180 | #endif /* not _MALLOC_INTERNAL */ | ||
| 181 | |||
| 182 | #ifdef REL_ALLOC | ||
| 183 | #ifndef _MALLOC_INTERNAL | ||
| 184 | /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it | ||
| 185 | is allowed to prototype these as "void *" so we don't prototype in | ||
| 186 | that case. You're right: it stinks! */ | ||
| 187 | extern char *r_alloc (), *r_re_alloc (); | ||
| 188 | extern void r_alloc_free (); | ||
| 189 | #endif /* not _MALLOC_INTERNAL */ | ||
| 190 | #endif /* REL_ALLOC */ | ||
| 191 | |||
| 192 | #endif /* not NOT_C_CODE */ | ||
| 193 | |||
| 194 | #define DATA_SEG_BITS 0x6000000000000000 | ||
| 195 | |||
| 196 | #define HAVE_TEXT_START | ||