comparison src/m/mips.h @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 697ef44129c6
children
comparison
equal deleted inserted replaced
423:28d9c139be4c 424:11054d720c21
61 61
62 /* Convert that into an integer that is 100 for a load average of 1.0 */ 62 /* Convert that into an integer that is 100 for a load average of 1.0 */
63 63
64 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0) 64 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0)
65 65
66 #ifndef linux
66 /* CDC EP/IX 1.4.3 uses /unix */ 67 /* CDC EP/IX 1.4.3 uses /unix */
67 68
68 #undef KERNEL_FILE 69 #undef KERNEL_FILE
69 #define KERNEL_FILE "/unix" 70 #define KERNEL_FILE "/unix"
71 #endif /* ! linux */
70 72
71 /* Define CANNOT_DUMP on machines where unexec does not work. 73 /* Define CANNOT_DUMP on machines where unexec does not work.
72 Then the function dump-emacs will not be defined 74 Then the function dump-emacs will not be defined
73 and temacs will do (load "loadup") automatically unless told otherwise. */ 75 and temacs will do (load "loadup") automatically unless told otherwise. */
74 76
104 #define NO_REMAP 106 #define NO_REMAP
105 107
106 /* This machine requires completely different unexec code 108 /* This machine requires completely different unexec code
107 which lives in a separate file. Specify the file name. */ 109 which lives in a separate file. Specify the file name. */
108 110
111 #ifndef linux
109 #define UNEXEC "unexmips.o" 112 #define UNEXEC "unexmips.o"
110 113 #endif /* !linux */
111 /* Describe layout of the address space in an executing process. */ 114 /* Describe layout of the address space in an executing process. */
112 115
116 #ifdef linux
117 #define TEXT_START 0x00400000
118 #define DATA_START 0x10000000
119 #define DATA_SEG_BITS 0x10000000
120 #else /* !linux */
113 #define TEXT_START 0x400000 121 #define TEXT_START 0x400000
114 #define DATA_START 0x800000 122 #define DATA_START 0x800000
123 #endif /* linux */
115 124
116 /* Alter some of the options used when linking. */ 125 /* Alter some of the options used when linking. */
117 126
118 #ifndef NEWSOS5 127 #if !defined(NEWSOS5) && !defined(linux)
119 #ifdef BSD 128 #ifdef BSD
120 129
121 /* DECstations don't have this library. */ 130 /* DECstations don't have this library. */
122 /* #define LIBS_MACHINE "-lmld" */ 131 /* #define LIBS_MACHINE "-lmld" */
123 132
136 145
137 #define C_SWITCH_MACHINE "-I/usr/include/bsd" 146 #define C_SWITCH_MACHINE "-I/usr/include/bsd"
138 #define C_DEBUG_SWITCH "-O -g3" 147 #define C_DEBUG_SWITCH "-O -g3"
139 148
140 #endif /* not BSD */ 149 #endif /* not BSD */
141 #endif /* not NEWSOS5 */ 150 #endif /* !NEWSOS5 && !linux */
142 151
143 #ifndef NEWSOS5 152 #if !defined(NEWSOS5) && !defined(linux)
144 #ifdef USG 153 #ifdef USG
145 154
146 /* Don't try to use SIGIO even though it is defined. */ 155 /* Don't try to use SIGIO even though it is defined. */
147 #define BROKEN_SIGIO 156 #define BROKEN_SIGIO
148 157
165 #ifdef BSD 174 #ifdef BSD
166 #define COFF 175 #define COFF
167 #define TERMINFO 176 #define TERMINFO
168 #undef MAIL_USE_FLOCK /* Someone should check this. */ 177 #undef MAIL_USE_FLOCK /* Someone should check this. */
169 #endif /* BSD */ 178 #endif /* BSD */
170 #endif /* not NEWSOS5 */ 179 #endif /* !NEWSOS5 && !linux */