(terminal-composition-base-character-p): New
[emacs.git] / src / m / mips-siemens.h
blob1fa475e95d7dd5c55c9b01b195ef4c4db2c5cc91
1 /* m- file for Mips machines.
2 Copyright (C) 1987, 1992, 1993, 1995, 2001, 2002, 2003, 2004, 2005,
3 2006, 2007, 2008 Free Software Foundation, Inc.
5 This file contains some changes for our SVR4 based SINIX-Mips 5.4.
6 I hope this is helpful to port the emacs to our RM?00 series and
7 maybe to the DC/OSx (Mips-based) machines of Pyramid Inc.
8 (Marco.Walther@mch.sni.de)
10 This file is part of GNU Emacs.
12 GNU Emacs is free software: you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation, either version 3 of the License, or
15 (at your option) any later version.
17 GNU Emacs is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
26 /* The following line tells the configuration script what sort of
27 operating system this machine is likely to run.
28 USUAL-OPSYS="note"
30 NOTE-START
31 Use m-mips4.h for RISCOS version 4; use s-bsd4-3.h with the BSD world.
32 Note that the proper m- file for the Decstation is m-pmax.h.
33 This is the m- file for SNI RM*00 machines. Use s- sinix5-4.h file!
34 With this the file mips-siemens.h is obsolete.
35 NOTE-END */
37 /* Define BIG_ENDIAN if lowest-numbered byte in a word
38 is the most significant byte. */
40 #define BIG_ENDIAN
42 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
43 * group of arguments and treat it as an array of the arguments. */
45 #define NO_ARG_ARRAY
47 /* Define WORD_MACHINE if addresses and such have
48 * to be corrected before they can be used as byte counts. */
50 #undef WORD_MACHINE
52 /* Define how to take a char and sign-extend into an int.
53 On machines where char is signed, this is a no-op. */
55 #define SIGN_EXTEND_CHAR(c) ((signed char)(c))
57 /* Now define a symbol for the cpu type, if your compiler
58 does not define it automatically:
59 Ones defined so far include vax, m68000, ns16000, pyramid,
60 orion, tahoe, APOLLO and many others */
61 #ifndef mips
62 # define mips
63 #endif
65 /* Use type int rather than a union, to represent Lisp_Object */
66 /* This is desirable for most machines. */
68 #define NO_UNION_TYPE
70 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
71 the 24-bit bit field into an int. In other words, if bit fields
72 are always unsigned.
74 If you use NO_UNION_TYPE, this flag does not matter. */
76 #define EXPLICIT_SIGN_EXTEND
78 /* Data type of load average, as read out of kmem. */
80 #define LOAD_AVE_TYPE long
82 /* Convert that into an integer that is 100 for a load average of 1.0 */
84 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0)
86 /* CDC EP/IX 1.4.3 uses /unix */
88 #undef KERNEL_FILE
89 #define KERNEL_FILE "/unix"
91 /* Define CANNOT_DUMP on machines where unexec does not work.
92 Then the function dump-emacs will not be defined
93 and temacs will do (load "loadup") automatically unless told otherwise. */
95 #undef CANNOT_DUMP
97 /* Define VIRT_ADDR_VARIES if the virtual addresses of
98 pure and impure space as loaded can vary, and even their
99 relative order cannot be relied on.
101 Otherwise Emacs assumes that text space precedes data space,
102 numerically. */
104 /* #define VIRT_ADDR_VARIES */
106 /* Define NO_REMAP if memory segmentation makes it not work well
107 to change the boundary between the text section and data section
108 when Emacs is dumped. If you define this, the preloaded Lisp
109 code will not be sharable; but that's better than failing completely. */
111 #define NO_REMAP
113 /* Describe layout of the address space in an executing process. */
114 /* MARCO ???
116 #define TEXT_START 0x400000
118 #define DATA_START 0x10000000
119 #define DATA_SEG_BITS 0x10000000
121 #ifdef UNEXEC
122 #undef UNEXEC
123 #endif
124 #define UNEXEC unexsni.o
126 #undef ORDINARY_LINK
128 #undef LIBS_DEBUG
130 /* Alter some of the options used when linking. */
132 #define LIBS_MACHINE -lmld
133 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xt.o
135 #ifdef LIB_STANDARD
136 #undef LIB_STANDARD
137 #endif
138 #define LIB_STANDARD -lc /usr/ccs/lib/crtn.o
140 #ifdef __GNUC__
141 #define C_DEBUG_SWITCH
142 #define LD_SWITCH_MACHINE
143 #else
144 #define C_DEBUG_SWITCH -DSYSV
145 #define C_OPTIMIZE_SWITCH -DSYSV
146 #define LD_SWITCH_MACHINE
147 #endif
150 /* The standard definitions of these macros would work ok,
151 but these are faster because the constants are short. */
153 #define XUINT(a) (((unsigned)(a) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS))
155 #define XSET(var, type, ptr) \
156 ((var) = \
157 ((int)(type) << VALBITS) \
158 + (((unsigned) (ptr) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS)))
160 /* arch-tag: a4f5c090-0bd5-48f0-9724-b7d531f9b6c8
161 (do not change this comment) */