|
|
1.1 ! root 1: /* m- file for Mips machines. ! 2: Copyright (C) 1987 Free Software Foundation, Inc. ! 3: ! 4: This file is part of GNU Emacs. ! 5: ! 6: GNU Emacs is distributed in the hope that it will be useful, ! 7: but WITHOUT ANY WARRANTY. No author or distributor ! 8: accepts responsibility to anyone for the consequences of using it ! 9: or for whether it serves any particular purpose or works at all, ! 10: unless he says so in writing. Refer to the GNU Emacs General Public ! 11: License for full details. ! 12: ! 13: Everyone is granted permission to copy, modify and redistribute ! 14: GNU Emacs, but only under the conditions described in the ! 15: GNU Emacs General Public License. A copy of this license is ! 16: supposed to have been given to you along with GNU Emacs so you ! 17: can know your rights and responsibilities. It should be in a ! 18: file named COPYING. Among other things, the copyright notice ! 19: and this notice must be preserved on all copies. */ ! 20: ! 21: ! 22: /* The following three symbols give information on ! 23: the size of various data types. */ ! 24: ! 25: #define SHORTBITS 16 /* Number of bits in a short */ ! 26: ! 27: #define INTBITS 32 /* Number of bits in an int */ ! 28: ! 29: #define LONGBITS 32 /* Number of bits in a long */ ! 30: ! 31: /* Define BIG_ENDIAN iff lowest-numbered byte in a word ! 32: is the most significant byte. */ ! 33: ! 34: #define BIG_ENDIAN ! 35: ! 36: /* Define NO_ARG_ARRAY if you cannot take the address of the first of a ! 37: * group of arguments and treat it as an array of the arguments. */ ! 38: ! 39: #define NO_ARG_ARRAY ! 40: ! 41: /* Define WORD_MACHINE if addresses and such have ! 42: * to be corrected before they can be used as byte counts. */ ! 43: ! 44: #undef WORD_MACHINE ! 45: ! 46: /* Define how to take a char and sign-extend into an int. ! 47: On machines where char is signed, this is a no-op. */ ! 48: ! 49: #define SIGN_EXTEND_CHAR(c) ((signed char)(c)) ! 50: ! 51: /* Now define a symbol for the cpu type, if your compiler ! 52: does not define it automatically: ! 53: Ones defined so far include vax, m68000, ns16000, pyramid, ! 54: orion, tahoe, APOLLO and many others */ ! 55: #ifndef mips ! 56: # define mips ! 57: #endif ! 58: ! 59: /* Use type int rather than a union, to represent Lisp_Object */ ! 60: /* This is desirable for most machines. */ ! 61: ! 62: #define NO_UNION_TYPE ! 63: ! 64: /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend ! 65: the 24-bit bit field into an int. In other words, if bit fields ! 66: are always unsigned. ! 67: ! 68: If you use NO_UNION_TYPE, this flag does not matter. */ ! 69: ! 70: #define EXPLICIT_SIGN_EXTEND ! 71: ! 72: /* Data type of load average, as read out of kmem. */ ! 73: ! 74: #define LOAD_AVE_TYPE long ! 75: ! 76: /* Convert that into an integer that is 100 for a load average of 1.0 */ ! 77: ! 78: #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0) ! 79: ! 80: /* Define CANNOT_DUMP on machines where unexec does not work. ! 81: Then the function dump-emacs will not be defined ! 82: and temacs will do (load "loadup") automatically unless told otherwise. */ ! 83: ! 84: #undef CANNOT_DUMP ! 85: ! 86: /* Define VIRT_ADDR_VARIES if the virtual addresses of ! 87: pure and impure space as loaded can vary, and even their ! 88: relative order cannot be relied on. ! 89: ! 90: Otherwise Emacs assumes that text space precedes data space, ! 91: numerically. */ ! 92: ! 93: /* #define VIRT_ADDR_VARIES */ ! 94: ! 95: /* Define C_ALLOCA if this machine does not support a true alloca ! 96: and the one written in C should be used instead. ! 97: Define HAVE_ALLOCA to say that the system provides a properly ! 98: working alloca function and it should be used. ! 99: Define neither one if an assembler-language alloca ! 100: in the file alloca.s should be used. */ ! 101: ! 102: #define C_ALLOCA ! 103: /* #define HAVE_ALLOCA */ ! 104: ! 105: /* Define NO_REMAP if memory segmentation makes it not work well ! 106: to change the boundary between the text section and data section ! 107: when Emacs is dumped. If you define this, the preloaded Lisp ! 108: code will not be sharable; but that's better than failing completely. */ ! 109: ! 110: #define NO_REMAP ! 111: ! 112: /* This machine requires completely different unexec code ! 113: which lives in a separate file. Specify the file name. */ ! 114: ! 115: #define UNEXEC unexmips.o ! 116: ! 117: /* Describe layout of the address space in an executing process. */ ! 118: ! 119: #define TEXT_START 0x400000 ! 120: #define DATA_START 0x800000 ! 121: ! 122: /* Alter some of the options used when linking. */ ! 123: ! 124: #ifdef BSD ! 125: ! 126: /* Supposedly the dec machine doesn't have this library. ! 127: #define LIBS_MACHINE -lmld */ ! 128: ! 129: #define LD_SWITCH_MACHINE -D 800000 ! 130: #define LIBS_DEBUG ! 131: ! 132: #else ! 133: ! 134: #define LIBS_MACHINE -lmld ! 135: #define LD_SWITCH_MACHINE -D 800000 -g3 ! 136: #define START_FILES pre-crt0.o /usr/lib/crt1.o ! 137: #define LIB_STANDARD -lbsd -lc /usr/lib/crtn.o ! 138: #define LIBS_TERMCAP -lcurses ! 139: ! 140: #define C_SWITCH_SYSTEM -I/usr/include/bsd ! 141: #define C_DEBUG_SWITCH -O -g3 ! 142: ! 143: #if defined(HAVE_X_WINDOWS) && defined(HAVE_X11) ! 144: #define HAVE_VFORK /* Graciously provided by libX.a */ ! 145: #endif ! 146: ! 147: #endif ! 148: ! 149: /* The standard definitions of these macros would work ok, ! 150: but these are faster because the constants are short. */ ! 151: ! 152: #define XUINT(a) (((unsigned)(a) << INTBITS-VALBITS) >> INTBITS-VALBITS) ! 153: ! 154: #define XSET(var, type, ptr) \ ! 155: ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << INTBITS-VALBITS) >> INTBITS-VALBITS)) ! 156: ! 157: #define XSETINT(a, b) XSET(a, XTYPE(a), b) ! 158: #define XSETUINT(a, b) XSET(a, XTYPE(a), b) ! 159: #define XSETPNTR(a, b) XSET(a, XTYPE(a), b) ! 160: ! 161: #define XUNMARK(a) ((a) = (((unsigned)(a) << INTBITS-GCTYPEBITS-VALBITS) >> INTBITS-GCTYPEBITS-VALBITS)) ! 162: ! 163: #ifdef USG ! 164: ! 165: /* Cancel certain parts of standard sysV.3 support. */ ! 166: #undef SYSV_SYSTEM_DIR ! 167: #undef static ! 168: ! 169: /* Don't try to use SIGIO or FIONREAD even though they are defined. */ ! 170: #undef SIGIO ! 171: #define BROKEN_FIONREAD ! 172: ! 173: /* Describe special kernel features. */ ! 174: ! 175: #define HAVE_SYSVIPC ! 176: ! 177: #define HAVE_TIMEVAL ! 178: #if defined(emacs) ! 179: #include <bsd/sys/time.h> ! 180: #endif ! 181: ! 182: /* #define HAVE_SELECT ! 183: The `select' in the system won't work for pipes, ! 184: so don't use it. */ ! 185: ! 186: #define HAVE_DUP2 ! 187: #define HAVE_GETWD ! 188: #define HAVE_GETTIMEOFDAY ! 189: ! 190: #define HAVE_PTYS ! 191: #define HAVE_SOCKETS ! 192: #define BSTRING ! 193: ! 194: /* ??? */ ! 195: #define IRIS ! 196: ! 197: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.