Mercurial > hg > xemacs-beta
annotate src/m/intel386.h @ 5159:cb303ff63e76
merge
| author | Ben Wing <ben@xemacs.org> |
|---|---|
| date | Fri, 19 Mar 2010 17:02:11 -0500 |
| parents | aa5ed11f473b |
| children | 308d34e9f07d 861f2601a38b |
| rev | line source |
|---|---|
| 428 | 1 /* Machine description file for intel 386. |
| 2 Copyright (C) 1987 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 2, 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 XEmacs; see the file COPYING. If not, write to | |
| 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
| 19 Boston, MA 02111-1307, USA. */ | |
| 20 | |
| 21 /* Synched up with: FSF 19.31. */ | |
| 22 | |
| 23 /* The following line tells the configuration script what sort of | |
| 24 operating system this machine is likely to run. | |
| 25 USUAL-OPSYS="note" | |
| 26 | |
| 27 NOTE-START | |
| 28 Intel 386 (-machine=intel386 or -machine=is386.h) | |
| 29 | |
|
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
30 The possibilities for -opsystem are: bsd4-2, usg5-4, usg5-4-2, and linux. |
| 428 | 31 |
| 32 18.58 should support a wide variety of operating systems. | |
| 33 Use linux for Linux. | |
| 34 It isn't clear what to do on an SCO system. | |
| 35 | |
| 36 Cubix QBx/386 (-machine=intel386 -opsystem=usg5-3) | |
| 37 | |
| 38 Changes merged in 19.1. Systems before 2/A/0 may fail to compile etags.c | |
| 39 due to a compiler bug. | |
| 40 NOTE-END */ | |
| 41 | |
| 42 /* Now define a symbol for the cpu type, if your compiler | |
| 43 does not define it automatically: | |
| 44 Ones defined so far include vax, m68000, ns16000, pyramid, | |
| 45 orion, tahoe, APOLLO and many others */ | |
| 46 | |
| 47 #define INTEL386 | |
| 48 | |
| 49 /* crt0.c, if it is used, should use the i386-bsd style of entry. | |
|
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
50 with no extra dummy args. On USG, NO_REMAP says this isn't used. */ |
| 428 | 51 |
| 52 /* Mly 16-Jan-96 16:38:32: this is part of a prototype -- same bug present in | |
| 53 other m*.h files */ | |
| 54 #define CRT0_DUMMIES int bogus_fp, | |
| 55 | |
| 56 /* crt0.c should define a symbol `start' and do .globl with a dot. */ | |
| 57 | |
| 58 #define DOT_GLOBAL_START | |
| 59 | |
| 60 #ifdef SOLARIS2 | |
| 61 /* Data type of load average, as read out of kmem. */ | |
| 62 #define LOAD_AVE_TYPE long | |
| 63 | |
| 64 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
| 65 /* This is totally uncalibrated. */ | |
| 66 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | |
| 67 | |
| 68 /* configure thinks solaris X86 has gethostname, but it does not work, | |
| 69 so undefine it. */ | |
| 70 #undef HAVE_GETHOSTNAME | |
| 71 | |
| 72 #else /* not SOLARIS2 */ | |
| 73 #ifdef USG5_4 /* Older USG systems do not support the load average. */ | |
| 74 /* Data type of load average, as read out of kmem. */ | |
| 75 | |
| 76 #define LOAD_AVE_TYPE long | |
| 77 | |
| 78 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
| 79 /* This is totally uncalibrated. */ | |
| 80 | |
| 81 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | |
| 82 #define FSCALE 256.0 | |
| 83 #endif | |
| 84 #endif /* not SOLARIS2 */ | |
| 85 | |
| 86 #ifdef USG | |
| 87 #define NO_REMAP | |
| 88 #define TEXT_START 0 | |
| 89 #endif /* USG */ | |
| 90 | |
| 91 #ifdef linux | |
| 92 /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */ | |
| 93 /* we cannot get the maximum address for brk */ | |
| 94 #define ULIMIT_BREAK_VALUE (32*1024*1024) | |
| 95 | |
| 96 #define SEGMENT_MASK ((SEGMENT_SIZE)-1) | |
| 97 #endif |
