1 /* m- file for hp9000 series 200 or 300 2 Copyright (C) 1985 Free Software Foundation, Inc. 3 4 This file is part of GNU Emacs. 5 6 GNU Emacs is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 1, or (at your option) 9 any later version. 10 11 GNU Emacs is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with GNU Emacs; see the file COPYING. If not, write to 18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 20 21 22 /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5. */ 23 24 /* #define NOMULTIPLEJOBS */ 25 26 /* Define this symbol if you are running a version of HP-UX 27 which predates version 6.01 */ 28 29 /* #define HPUX_5 */ 30 31 /* The following three symbols give information on 32 the size of various data types. */ 33 34 #define SHORTBITS 16 /* Number of bits in a short */ 35 36 #define INTBITS 32 /* Number of bits in an int */ 37 38 #define LONGBITS 32 /* Number of bits in a long */ 39 40 /* Define BIG_ENDIAN iff lowest-numbered byte in a word 41 is the most significant byte. */ 42 43 #ifndef BIG_ENDIAN 44 #define BIG_ENDIAN 45 #endif 46 47 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a 48 * group of arguments and treat it as an array of the arguments. */ 49 50 /* #define NO_ARG_ARRAY */ 51 52 /* Define WORD_MACHINE if addresses and such have 53 * to be corrected before they can be used as byte counts. */ 54 55 /* #define WORD_MACHINE */ 56 57 /* Define how to take a char and sign-extend into an int. 58 On machines where char is signed, this is a no-op. */ 59 60 #define SIGN_EXTEND_CHAR(c) (c) 61 62 /* Now define a symbol for the cpu type, if your compiler 63 does not define it automatically. */ 64 65 #ifndef hp9000s300 66 #define hp9000s300 67 #endif 68 69 /* Use type int rather than a union, to represent Lisp_Object */ 70 /* This is desirable for most machines. */ 71 72 #define NO_UNION_TYPE 73 74 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend 75 the 24-bit bit field into an int. In other words, if bit fields 76 are always unsigned. 77 78 If you use NO_UNION_TYPE, this flag does not matter. */ 79 80 #define EXPLICIT_SIGN_EXTEND 81 82 /* Data type of load average, as read out of kmem. */ 83 84 #define LOAD_AVE_TYPE double 85 86 /* Convert that into an integer that is 100 for a load average of 1.0 */ 87 88 #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) 89 90 /* Define CANNOT_DUMP on machines where unexec does not work. 91 Then the function dump-emacs will not be defined 92 and temacs will do (load "loadup") automatically unless told otherwise. */ 93 94 /* #define CANNOT_DUMP */ 95 96 /* Define VIRT_ADDR_VARIES if the virtual addresses of 97 pure and impure space as loaded can vary, and even their 98 relative order cannot be relied on. 99 100 Otherwise Emacs assumes that text space precedes data space, 101 numerically. */ 102 103 /* #define VIRT_ADDR_VARIES */ 104 105 /* For University of Utah 4.3bsd and standard 4.4bsd on HP300s. */ 106 107 #ifdef BSD4_3 108 /* Tell crt0.c that this is an ordinary 68020. */ 109 #undef hp9000s300 110 #define CRT0_DUMMIES bogus_a6, 111 112 #define HAVE_ALLOCA 113 114 #ifndef HAVE_GETLOADAVG 115 #undef LOAD_AVE_TYPE 116 #undef LOAD_AVE_CVT 117 #define LOAD_AVE_TYPE long 118 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0)) 119 #endif 120 121 #endif /* BSD4_3 */ 122 123 #ifndef BSD4_3 124 /* The following definitions are for HPUX only. */ 125 126 /* The symbol in the kernel where the load average is found 127 is named _avenrun on this machine. */ 128 129 #define LDAV_SYMBOL "_avenrun" 130 131 /* This library is needed with -g, on the 200/300 only. */ 132 133 #if !defined(__GNUC__) || defined(__HPUX_ASM__) 134 #define LIBS_DEBUG /usr/lib/end.o 135 #endif 136 137 /* The symbol FIONREAD is defined, but the feature does not work 138 on the 200/300. */ 139 140 #define BROKEN_FIONREAD 141 142 /* In older versions of hpux, for unknown reasons, S_IFLNK is defined 143 even though symbolic links do not exist. 144 Make sure our conditionals based on S_IFLNK are not confused. 145 146 Here we assume that stat.h is included before config.h 147 so that we can override it here. 148 149 Version 6 of HP-UX has symbolic links. */ 150 151 #ifdef HPUX_5 152 #undef S_IFLNK 153 #endif 154 155 /* Define the BSTRING functions in terms of the sysV functions. 156 Version 6 of HP-UX supplies these in the BSD library, 157 but that library has reported bugs in `signal'. */ 158 159 /* #ifdef HPUX_5 */ 160 #define bcopy(a,b,s) memcpy (b,a,s) 161 #define bzero(a,s) memset (a,0,s) 162 #define bcmp memcmp 163 /* #endif */ 164 165 /* On USG systems these have different names. 166 Version 6 of HP-UX supplies these in the BSD library, 167 which we currently want to avoid using. */ 168 169 /* #ifdef HPUX_5 */ 170 #define index strchr 171 #define rindex strrchr 172 /* #endif */ 173 174 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300 175 * Emacs to run on both 68010 and 68020 based hp-ux's. 176 * 177 * Define OLD_HP_ASSEMBLER if you have an ancient assembler 178 * 179 * Define HPUX_68010 if you are using the new assembler but 180 * compiling for a s200 (upgraded) or s310. 68010 based 181 * processor without 68881. 182 */ 183 184 /* These switches increase the size of some internal C compiler tables. 185 They are required for compiling the X11 interface files. */ 186 187 #ifndef HPUX_5 188 #ifndef __GNUC__ 189 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000 190 #endif 191 #endif 192 193 /* Define NEED_BSDTTY if you have such. */ 194 195 #ifndef NOMULTIPLEJOBS 196 #define NEED_BSDTTY 197 #endif 198 199 #endif /* not BSD4_3 */ 200