[!MULTI_FRAME] (FOR_EACH_FRAME): Fix Lisp_Object vs. int problems.
[bpt/emacs.git] / src / m / iris5d.h
CommitLineData
4ef37be4
JB
1/* machine description file for Iris-4D machines. Use with s-iris3-6.h
2 Copyright (C) 1987 Free Software Foundation, Inc.
3
4This file is part of GNU Emacs.
5
6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
17385adc 8the Free Software Foundation; either version 2, or (at your option)
4ef37be4
JB
9any later version.
10
11GNU Emacs is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20
21/* The following line tells the configuration script what sort of
22 operating system this machine is likely to run.
23 USUAL-OPSYS="irix3-3" */
24
25/* The following three symbols give information on
26 the size of various data types. */
27
28#define SHORTBITS 16 /* Number of bits in a short */
29
30#define INTBITS 32 /* Number of bits in an int */
31
32#define LONGBITS 32 /* Number of bits in a long */
33
4ef37be4
JB
34/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
35 * group of arguments and treat it as an array of the arguments. */
36
37#define NO_ARG_ARRAY
38
39/* Define WORD_MACHINE if addresses and such have
40 * to be corrected before they can be used as byte counts. */
41
42#undef WORD_MACHINE
43
44/* Now define a symbol for the cpu type, if your compiler
45 does not define it automatically:
46 Ones defined so far include vax, m68000, ns16000, pyramid,
47 orion, tahoe, APOLLO and many others */
48
49#ifndef mips
50#define mips
51#endif
52
53#ifndef IRIS_4D
54#define IRIS_4D
55#endif
56
57/* Use type int rather than a union, to represent Lisp_Object */
58/* This is desirable for most machines. */
59
60#define NO_UNION_TYPE
61
62/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
63 the 24-bit bit field into an int. In other words, if bit fields
64 are always unsigned.
65
66 If you use NO_UNION_TYPE, this flag does not matter. */
67
68#define EXPLICIT_SIGN_EXTEND
69
70/* Data type of load average, as read out of kmem. */
71
72#define LOAD_AVE_TYPE long /* This doesn't quite work on the 4D */
73
74/* Convert that into an integer that is 100 for a load average of 1.0 */
75
76#define LOAD_AVE_CVT(x) (int)(((double)(x)*100)/1024.0)
77
78/* s-iris3-6.h uses /vmunix */
79
80#undef KERNEL_FILE
81#define KERNEL_FILE "/unix"
82
83/* Define CANNOT_DUMP on machines where unexec does not work.
84 Then the function dump-emacs will not be defined
85 and temacs will do (load "loadup") automatically unless told otherwise. */
86
87#undef CANNOT_DUMP
88
89/* Define VIRT_ADDR_VARIES if the virtual addresses of
90 pure and impure space as loaded can vary, and even their
91 relative order cannot be relied on.
92
93 Otherwise Emacs assumes that text space precedes data space,
94 numerically. */
95
96/* #define VIRT_ADDR_VARIES */
97
98/* Define C_ALLOCA if this machine does not support a true alloca
99 and the one written in C should be used instead.
100 Define HAVE_ALLOCA to say that the system provides a properly
101 working alloca function and it should be used.
102 Define neither one if an assembler-language alloca
103 in the file alloca.s should be used. */
104
105#define C_ALLOCA
106/* #define HAVE_ALLOCA */
107
108/* Define NO_REMAP if memory segmentation makes it not work well
109 to change the boundary between the text section and data section
110 when Emacs is dumped. If you define this, the preloaded Lisp
111 code will not be sharable; but that's better than failing completely. */
112
113#define NO_REMAP
114
115/* This machine requires completely different unexec code
116 which lives in a separate file. Specify the file name. */
117
7260e339
JB
118#ifdef UNEXEC
119#undef UNEXEC
120#endif
121#define UNEXEC unexelfsgi.o
4ef37be4
JB
122
123#define TEXT_START 0x400000
124
125/*
126 * DATA_SEG_BITS forces that bit to be or'd in with any pointers which
127 * are trying to access pure strings (as gnu-emacs only allows 24 bits
128 * for the value field of a LISP_OBJECT).
129 */
130
131#define DATA_START 0x10000000
132#define DATA_SEG_BITS 0x10000000
133
134#undef LIBS_MACHINE
135/* -lsun in case using Yellow Pages for passwords. */
136#define LIBS_MACHINE -lsun -lmld
137#define LIBS_DEBUG
138
139/* Define this if you have a fairly recent system,
140 in which crt1.o and crt1.n should be used. */
141#define HAVE_CRTN
142
143#ifdef HAVE_CRTN
144/* Must define START-FILES so that the linker can find /usr/lib/crt0.o. */
145#define START_FILES pre-crt0.o /usr/lib/crt1.o
146#define LIB_STANDARD -lbsd -lc /usr/lib/crtn.o
147#else
148#define START_FILES pre-crt0.o /usr/lib/crt0.o
149/* The entry-point label (start of text segment) is `start', not `__start'. */
150#define DEFAULT_ENTRY_ADDRESS start
151#define LIB_STANDARD -lbsd -lc
152#endif
153\f
154/* Use terminfo instead of termcap. */
155
156#define TERMINFO
157
158/* sioctl.h should be included where appropriate. */
159
160#define NEED_SIOCTL
161
162/* Letter to use in finding device name of first pty,
163 if system supports pty's. 'a' means it is /dev/ptya0 */
164
165#undef FIRST_PTY_LETTER
166#define FIRST_PTY_LETTER 'q'
167
168/* Define STACK_DIRECTION for alloca.c */
169
170#define STACK_DIRECTION -1
171\f
172/* The standard definitions of these macros would work ok,
173 but these are faster because the constants are short. */
174
175#define XUINT(a) (((unsigned)(a) << INTBITS-VALBITS) >> INTBITS-VALBITS)
176
177#define XSET(var, type, ptr) \
178 ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << INTBITS-VALBITS) >> INTBITS-VALBITS))
179
180#define XSETINT(a, b) XSET(a, XTYPE(a), b)
181#define XSETUINT(a, b) XSET(a, XTYPE(a), b)
182#define XSETPNTR(a, b) XSET(a, XTYPE(a), b)
183
184#define XMARKBIT(a) ((a) < 0)
185#define XSETMARKBIT(a,b) ((a) = ((a) & ~MARKBIT) | ((b) ? MARKBIT : 0))
186#define XUNMARK(a) ((a) = (((unsigned)(a) << INTBITS-GCTYPEBITS-VALBITS) >> INTBITS-GCTYPEBITS-VALBITS))
187
94823a5e 188#ifndef __GNUC__
4ef37be4
JB
189/* Turn off some "helpful" error checks for type mismatches
190 that we can't fix without breaking other machines. */
191#define C_SWITCH_MACHINE -cckr
94823a5e 192#endif