*** empty log message ***
[emacs.git] / src / m / ibmrt.h
blob2cf372a278dab173a74db17d5ea7f8f60264c9c0
1 /* RTPC machine dependent defines
2 Copyright (C) 1986, 2001, 2002, 2003, 2004, 2005,
3 2006, 2007 Free Software Foundation, Inc.
5 This file is part of GNU Emacs.
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 2, or (at your option)
10 any later version.
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.
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., 51 Franklin Street, Fifth Floor,
20 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="bsd4-2" */
27 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
28 is the most significant byte. */
30 #define WORDS_BIG_ENDIAN
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. */
35 #define NO_ARG_ARRAY
37 /* Define WORD_MACHINE if addresses and such have
38 * to be corrected before they can be used as byte counts. */
40 #define WORD_MACHINE
42 /* Now define a symbol for the cpu type, if your compiler
43 does not define it automatically. */
45 #define ibmrt
46 #define romp /* unfortunately old include files are hanging around. */
48 /* Use type int rather than a union, to represent Lisp_Object */
49 /* This is desirable for most machines. */
51 #define NO_UNION_TYPE
53 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
54 the bit field into an int. In other words, if bit fields
55 are always unsigned.
57 If you use NO_UNION_TYPE, this flag does not matter. */
59 #define EXPLICIT_SIGN_EXTEND
61 /* Data type of load average, as read out of kmem. */
63 #define LOAD_AVE_TYPE double /* For AIS (sysV) */
65 /* Convert that into an integer that is 100 for a load average of 1.0 */
67 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0)
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. */
73 /* #define CANNOT_DUMP */
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.
79 Otherwise Emacs assumes that text space precedes data space,
80 numerically. */
82 #undef VIRT_ADDR_VARIES
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. */
88 #define DATA_SEG_BITS 0x10000000
89 #define DATA_START 0x10000000
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
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 */
99 #define NEED_ERRNO
101 #define SKTPAIR
103 /* BSD has BSTRING. */
105 #define BSTRING
107 /* Special switches to give the C compiler. */
109 #ifndef __GNUC__
110 #define C_SWITCH_MACHINE -Dalloca=_Alloca
111 #endif
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. */
117 #define NO_REMAP
119 /* Use the bitmap files that come with Emacs. */
120 #define EMACS_BITMAP_FILES
122 /* arch-tag: 89aa7e7d-593e-432c-966a-3db6aa2ad665
123 (do not change this comment) */