1 /* machine description file for Elxsi machine (running enix).
2 Copyright (C) 1986, 1992, 2001, 2002, 2003, 2004,
3 2005, 2006, 2007 Free Software Foundation, Inc.
6 This file is part of GNU Emacs.
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)
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.
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. */
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" */
27 /* This file was modified by Matt Crawford <matt@tank.uchicago.edu>
28 to work under Elxsi's 12.0 release of BSD unix. */
30 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
31 is the most significant byte. */
33 #undef WORDS_BIG_ENDIAN
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. */
38 /*#define NO_ARG_ARRAY */
40 /* Define WORD_MACHINE if addresses and such have
41 * to be corrected before they can be used as byte counts. */
43 /*#define WORD_MACHINE */
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. */
54 /* Use type int rather than a union, to represent Lisp_Object */
55 /* This is desirable for most machines. */
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
63 If you use NO_UNION_TYPE, this flag does not matter. */
65 #define EXPLICIT_SIGN_EXTEND
68 /* Name of kernel load average variable */
71 #define LDAV_SYMBOL "avenrun"
73 /* Data type of load average, as read out of kmem. */
75 #define LOAD_AVE_TYPE double
77 /* Convert that into an integer that is 100 for a load average of 1.0 */
79 #define LOAD_AVE_CVT(x) (int) ((x) * 100.0)
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.
85 Earlier versions couldn't dump.
86 Changes for 12.0 release are in 19.1.
87 Dumping should work now. */
89 /* #define CANNOT_DUMP */
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.
95 Otherwise Emacs assumes that text space precedes data space,
98 /* #define VIRT_ADDR_VARIES */
100 /* Define NO_REMAP if memory segmentation makes it not work well
101 to change the boundary between the text section and data section
102 when Emacs is dumped. If you define this, the preloaded Lisp
103 code will not be sharable; but that's better than failing completely. */
106 /* This is a guess for an alternate solution to whatever
107 problem motivated defining _sobuf in sysdep,c with extern char *_sobuf. */
108 #define _sobuf xsobuf
110 /* Address of start of text segment as loaded. */
112 #define TEXT_START 0x800
114 /* Tell crt0.c not to define environ. */
116 #define DONT_NEED_ENVIRON
118 /* The elxsi has no debugger, so might as well optimize instead
119 of trying to make a symbol table. */
121 #define C_DEBUG_SWITCH -O
123 /* Elxsi uses COFF under both Sys V and BSD environments */
127 #define ADJUST_EXEC_HEADER {\
128 extern int _init_brk;\
129 _init_brk = bss_start;\
132 /* arch-tag: 73bf1120-a994-4c29-8d60-af425d8bf10c
133 (do not change this comment) */