Mercurial > hg > xemacs-beta
annotate src/m/intel386.h @ 5533:11da5b828d10
shell-command and shell-command-on-region API compliant with FSF 23.3.1
| author | Mats Lidell <mats.lidell@cag.se> |
|---|---|
| date | Sun, 31 Jul 2011 01:29:09 +0200 |
| parents | 1f0b15040456 |
| children |
| rev | line source |
|---|---|
| 428 | 1 /* Machine description file for intel 386. |
| 2 Copyright (C) 1987 Free Software Foundation, Inc. | |
| 3 | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
4 This file is part of XEmacs. |
| 428 | 5 |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
6 XEmacs is free software: you can redistribute it and/or modify it |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
7 under the terms of the GNU General Public License as published by the |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
8 Free Software Foundation, either version 3 of the License, or (at your |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
9 option) any later version. |
| 428 | 10 |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
14 for more details. |
| 428 | 15 |
| 16 You should have received a copy of the GNU General Public License | |
|
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
4759
diff
changeset
|
17 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 428 | 18 |
| 19 /* Synched up with: FSF 19.31. */ | |
| 20 | |
| 21 /* The following line tells the configuration script what sort of | |
| 22 operating system this machine is likely to run. | |
| 23 USUAL-OPSYS="note" | |
| 24 | |
| 25 NOTE-START | |
| 26 Intel 386 (-machine=intel386 or -machine=is386.h) | |
| 27 | |
|
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
2367
diff
changeset
|
28 The possibilities for -opsystem are: bsd4-2, usg5-4, usg5-4-2, and linux. |
| 428 | 29 |
| 30 18.58 should support a wide variety of operating systems. | |
| 31 Use linux for Linux. | |
| 32 It isn't clear what to do on an SCO system. | |
| 33 | |
| 34 Cubix QBx/386 (-machine=intel386 -opsystem=usg5-3) | |
| 35 | |
| 36 Changes merged in 19.1. Systems before 2/A/0 may fail to compile etags.c | |
| 37 due to a compiler bug. | |
| 38 NOTE-END */ | |
| 39 | |
| 40 /* Now define a symbol for the cpu type, if your compiler | |
| 41 does not define it automatically: | |
| 42 Ones defined so far include vax, m68000, ns16000, pyramid, | |
| 43 orion, tahoe, APOLLO and many others */ | |
| 44 | |
| 45 #define INTEL386 | |
| 46 | |
| 47 /* 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
|
48 with no extra dummy args. On USG, NO_REMAP says this isn't used. */ |
| 428 | 49 |
| 50 /* Mly 16-Jan-96 16:38:32: this is part of a prototype -- same bug present in | |
| 51 other m*.h files */ | |
| 52 #define CRT0_DUMMIES int bogus_fp, | |
| 53 | |
| 54 /* crt0.c should define a symbol `start' and do .globl with a dot. */ | |
| 55 | |
| 56 #define DOT_GLOBAL_START | |
| 57 | |
| 58 #ifdef SOLARIS2 | |
|
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
59 |
|
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
60 #ifdef ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF |
|
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
61 |
| 428 | 62 /* Data type of load average, as read out of kmem. */ |
| 63 #define LOAD_AVE_TYPE long | |
| 64 | |
| 65 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
| 66 /* This is totally uncalibrated. */ | |
| 67 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | |
| 68 | |
|
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
69 #endif /* ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF */ |
|
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
70 |
| 428 | 71 /* configure thinks solaris X86 has gethostname, but it does not work, |
| 72 so undefine it. */ | |
| 73 #undef HAVE_GETHOSTNAME | |
| 74 | |
| 75 #else /* not SOLARIS2 */ | |
| 76 #ifdef USG5_4 /* Older USG systems do not support the load average. */ | |
| 77 /* Data type of load average, as read out of kmem. */ | |
| 78 | |
|
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
79 #ifdef ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF |
|
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
80 |
| 428 | 81 #define LOAD_AVE_TYPE long |
| 82 | |
| 83 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
| 84 /* This is totally uncalibrated. */ | |
| 85 | |
| 86 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | |
| 87 #define FSCALE 256.0 | |
|
5494
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
88 |
|
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
89 #endif /* ENABLE_SM_FILE_DECLS_OF_LOADAVG_STUFF */ |
|
861f2601a38b
Sync s/ files with GNU 23.1.92, delete obsolete stuff, simplify other stuff
Ben Wing <ben@xemacs.org>
parents:
4759
diff
changeset
|
90 |
| 428 | 91 #endif |
| 92 #endif /* not SOLARIS2 */ | |
| 93 | |
| 94 #ifdef USG | |
| 95 #define NO_REMAP | |
| 96 #define TEXT_START 0 | |
| 97 #endif /* USG */ | |
| 98 | |
| 99 #ifdef linux | |
| 100 /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */ | |
| 101 /* we cannot get the maximum address for brk */ | |
| 102 #define ULIMIT_BREAK_VALUE (32*1024*1024) | |
| 103 | |
| 104 #define SEGMENT_MASK ((SEGMENT_SIZE)-1) | |
| 105 #endif |
