Mercurial > emacs
comparison src/m/intel386.h @ 108091:992e676c0285
Simplify m/intel386.h.
* m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
user: ecrt0.c.
(SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
(USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
the only user: s/unixware.h.
* ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
from m/intel386.h.
* s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
moved here from m/intel386.h.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 23 Apr 2010 15:14:14 -0700 |
parents | ca372bf64063 |
children | 641672d44942 |
comparison
equal
deleted
inserted
replaced
108090:b8f821937636 | 108091:992e676c0285 |
---|---|
42 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a | 42 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
43 * group of arguments and treat it as an array of the arguments. */ | 43 * group of arguments and treat it as an array of the arguments. */ |
44 | 44 |
45 /* #define NO_ARG_ARRAY */ | 45 /* #define NO_ARG_ARRAY */ |
46 | 46 |
47 /* crt0.c, if it is used, should use the i386-bsd style of entry. | |
48 with no extra dummy args. On USG and XENIX, | |
49 NO_REMAP says this isn't used. */ | |
50 | |
51 #define CRT0_DUMMIES bogus_fp, | |
52 | |
53 #ifdef SOLARIS2 | |
54 /* Data type of load average, as read out of kmem. */ | |
55 #define LOAD_AVE_TYPE long | |
56 | |
57 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
58 /* This is totally uncalibrated. */ | |
59 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | |
60 | |
61 /* J.W.Hawtin@lut.ac.uk say Solaris 2.4 as well as Solaris 2.1 on X86 | |
62 requires -lkvm as well. | |
63 And handa@etl.gov.jp says that -lkvm needs -llelf, at least on 2.5. */ | |
64 #define LIBS_MACHINE -lkvm -lelf | |
65 | |
66 /* configure thinks solaris X86 has gethostname, but it does not work, | |
67 so undefine it. */ | |
68 #undef HAVE_GETHOSTNAME | |
69 | |
70 #else /* not SOLARIS2 */ | |
71 #ifdef USG5_4 /* Older USG systems do not support the load average. */ | |
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 /* This is totally uncalibrated. */ | |
78 | |
79 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | |
80 #define FSCALE 256.0 | |
81 #endif /* USG5_4 */ | |
82 #endif /* not SOLARIS2 */ | |
83 | |
84 #ifdef USG | 47 #ifdef USG |
85 #define TEXT_START 0 | 48 #define TEXT_START 0 |
86 #endif /* USG */ | 49 #endif /* USG */ |
87 | 50 |
88 #ifdef WINDOWSNT | 51 #ifdef WINDOWSNT |