root/trunk/src/m/elxsi.h
| Revision 4220, 4.3 kB (checked in by miyoshi, 8 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | /* machine description file for Elxsi machine (running enix). |
| 2 | Copyright (C) 1986, 1992, 2001, 2002, 2003, 2004, |
| 3 | 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 4 | Adapted by John Salmon |
| 5 | |
| 6 | This file is part of GNU Emacs. |
| 7 | |
| 8 | GNU Emacs is free software; you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation; either version 3, or (at your option) |
| 11 | any later version. |
| 12 | |
| 13 | GNU Emacs is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with GNU Emacs; see the file COPYING. If not, write to |
| 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 | Boston, MA 02110-1301, USA. */ |
| 22 | |
| 23 | /* The following line tells the configuration script what sort of |
| 24 | operating system this machine is likely to run. |
| 25 | USUAL-OPSYS="usg5-2" */ |
| 26 | |
| 27 | /* This file was modified by Matt Crawford <matt@tank.uchicago.edu> |
| 28 | to work under Elxsi's 12.0 release of BSD unix. */ |
| 29 | |
| 30 | /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word |
| 31 | is the most significant byte. */ |
| 32 | |
| 33 | #undef WORDS_BIG_ENDIAN |
| 34 | |
| 35 | /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
| 36 | * group of arguments and treat it as an array of the arguments. */ |
| 37 | |
| 38 | /*#define NO_ARG_ARRAY */ |
| 39 | |
| 40 | /* Define WORD_MACHINE if addresses and such have |
| 41 | * to be corrected before they can be used as byte counts. */ |
| 42 | |
| 43 | /*#define WORD_MACHINE */ |
| 44 | |
| 45 | /* Now define a symbol for the cpu type, if your compiler |
| 46 | does not define it automatically: |
| 47 | vax, m68000, ns16000, pyramid, orion, tahoe and APOLLO |
| 48 | are the ones defined so far. */ |
| 49 | |
| 50 | #ifndef elxsi |
| 51 | #define elxsi |
| 52 | #endif |
| 53 | |
| 54 | /* Use type int rather than a union, to represent Lisp_Object */ |
| 55 | /* This is desirable for most machines. */ |
| 56 | |
| 57 | #define NO_UNION_TYPE |
| 58 | |
| 59 | /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend |
| 60 | the 24-bit bit field into an int. In other words, if bit fields |
| 61 | are always unsigned. |
| 62 | |
| 63 | If you use NO_UNION_TYPE, this flag does not matter. */ |
| 64 | |
| 65 | #define EXPLICIT_SIGN_EXTEND |
| 66 | |
| 67 | |
| 68 | /* Name of kernel load average variable */ |
| 69 | |
| 70 | #undef LDAV_SYMBOL |
| 71 | #define LDAV_SYMBOL "avenrun" |
| 72 | |
| 73 | /* Data type of load average, as read out of kmem. */ |
| 74 | |
| 75 | #define LOAD_AVE_TYPE double |
| 76 | |
| 77 | /* Convert that into an integer that is 100 for a load average of 1.0 */ |
| 78 | |
| 79 | #define LOAD_AVE_CVT(x) (int) ((x) * 100.0) |
| 80 | |
| 81 | /* Define CANNOT_DUMP on machines where unexec does not work. |
| 82 | Then the function dump-emacs will not be defined |
| 83 | and temacs will do (load "loadup") automatically unless told otherwise. |
| 84 | |
| 85 | Earlier versions couldn't dump. |
| 86 | Changes for 12.0 release are in 19.1. |
| 87 | Dumping should work now. */ |
| 88 | |
| 89 | /* #define CANNOT_DUMP */ |
| 90 | |
| 91 | /* Define VIRT_ADDR_VARIES if the virtual addresses of |
| 92 | pure and impure space as loaded can vary, and even their |
| 93 | relative order cannot be relied on. |
| 94 | |
| 95 | Otherwise Emacs assumes that text space precedes data space, |
| 96 | numerically. */ |
| 97 | |
| 98 | /* #define VIRT_ADDR_VARIES */ |
| 99 | |
| 100 | /* Define C_ALLOCA if this machine does not support a true alloca |
| 101 | and the one written in C should be used instead. |
| 102 | Define HAVE_ALLOCA to say that the system provides a properly |
| 103 | working alloca function and it should be used. |
| 104 | Define neither one if an assembler-language alloca |
| 105 | in the file alloca.s should be used. */ |
| 106 | |
| 107 | #define C_ALLOCA |
| 108 | /*#define HAVE_ALLOCA */ |
| 109 | |
| 110 | /* Define NO_REMAP if memory segmentation makes it not work well |
| 111 | to change the boundary between the text section and data section |
| 112 | when Emacs is dumped. If you define this, the preloaded Lisp |
| 113 | code will not be sharable; but that's better than failing completely. */ |
| 114 | /*#define NO_REMAP*/ |
| 115 | |
| 116 | /* This is a guess for an alternate solution to whatever |
| 117 | problem motivated defining _sobuf in sysdep,c with extern char *_sobuf. */ |
| 118 | #define _sobuf xsobuf |
| 119 | |
| 120 | /* Address of start of text segment as loaded. */ |
| 121 | |
| 122 | #define TEXT_START 0x800 |
| 123 | |
| 124 | /* Tell crt0.c not to define environ. */ |
| 125 | |
| 126 | #define DONT_NEED_ENVIRON |
| 127 | |
| 128 | /* The elxsi has no debugger, so might as well optimize instead |
| 129 | of trying to make a symbol table. */ |
| 130 | |
| 131 | #define C_DEBUG_SWITCH -O |
| 132 | |
| 133 | /* Elxsi uses COFF under both Sys V and BSD environments */ |
| 134 | |
| 135 | #define COFF |
| 136 | |
| 137 | #define ADJUST_EXEC_HEADER {\ |
| 138 | extern int _init_brk;\ |
| 139 | _init_brk = bss_start;\ |
| 140 | } |
Note: See TracBrowser for help on using the browser.
