Update years in copyright notice; nfc.
[bpt/emacs.git] / src / m / ibmrt.h
CommitLineData
177c0ea7 1/* RTPC machine dependent defines
aaef169d
TTN
2 Copyright (C) 1986, 2002, 2003, 2004, 2005,
3 2006 Free Software Foundation, Inc.
30fe07a6
JB
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
17385adc 9the Free Software Foundation; either version 2, or (at your option)
30fe07a6
JB
10any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs; see the file COPYING. If not, write to
364c38d3
LK
19the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20Boston, MA 02110-1301, USA. */
30fe07a6
JB
21
22
177c0ea7 23/* The following line tells the configuration script what sort of
30fe07a6
JB
24 operating system this machine is likely to run.
25 USUAL-OPSYS="bsd4-2" */
26
74d3f806
KH
27/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
28 is the most significant byte. */
29
30#define WORDS_BIG_ENDIAN
31
30fe07a6
JB
32/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
33 * group of arguments and treat it as an array of the arguments. */
34
35#define NO_ARG_ARRAY
36
37/* Define WORD_MACHINE if addresses and such have
38 * to be corrected before they can be used as byte counts. */
39
40#define WORD_MACHINE
41
30fe07a6
JB
42/* Now define a symbol for the cpu type, if your compiler
43 does not define it automatically. */
44
45#define ibmrt
46#define romp /* unfortunately old include files are hanging around. */
47
48/* Use type 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 EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
09b3d662 54 the bit field into an int. In other words, if bit fields
30fe07a6
JB
55 are always unsigned.
56
57 If you use NO_UNION_TYPE, this flag does not matter. */
58
59#define EXPLICIT_SIGN_EXTEND
60
61/* Data type of load average, as read out of kmem. */
62
63#define LOAD_AVE_TYPE double /* For AIS (sysV) */
64
65/* Convert that into an integer that is 100 for a load average of 1.0 */
66
67#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0)
68
69/* Define CANNOT_DUMP on machines where unexec does not work.
70 Then the function dump-emacs will not be defined
71 and temacs will do (load "loadup") automatically unless told otherwise. */
72
73/* #define CANNOT_DUMP */
74
75/* Define VIRT_ADDR_VARIES if the virtual addresses of
76 pure and impure space as loaded can vary, and even their
77 relative order cannot be relied on.
78
79 Otherwise Emacs assumes that text space precedes data space,
80 numerically. */
81
82#undef VIRT_ADDR_VARIES
30fe07a6
JB
83\f
84/* The data segment in this machine starts at a fixed address.
85 An address of data cannot be stored correctly in a Lisp object;
86 we always lose the high bits. We must tell XPNTR to add them back. */
87
88#define DATA_SEG_BITS 0x10000000
89#define DATA_START 0x10000000
90
91/* The text segment always starts at a fixed address.
92 This way we don't need to have a label _start defined. */
93#define TEXT_START 0
94
30fe07a6
JB
95/* Taking a pointer to a char casting it as int pointer */
96/* and then taking the int which the int pointer points to */
97/* is practically guaranteed to give erroneous results */
98
99#define NEED_ERRNO
100
101#define SKTPAIR
102
103/* BSD has BSTRING. */
104
105#define BSTRING
106
107/* Special switches to give the C compiler. */
108
2241819f 109#ifndef __GNUC__
30fe07a6 110#define C_SWITCH_MACHINE -Dalloca=_Alloca
2241819f 111#endif
30fe07a6
JB
112
113/* Don't attempt to relabel some of the data as text when dumping.
114 It does not work because their virtual addresses are not consecutive.
115 This enables us to use the standard crt0.o. */
116
117#define NO_REMAP
d5cc6be5 118
5b335fca
RS
119/* Use the bitmap files that come with Emacs. */
120#define EMACS_BITMAP_FILES
ab5796a9
MB
121
122/* arch-tag: 89aa7e7d-593e-432c-966a-3db6aa2ad665
123 (do not change this comment) */