diff options
Diffstat (limited to 'src/m')
| -rw-r--r-- | src/m/intel386.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/m/intel386.h b/src/m/intel386.h index a9349be65ef..7b8f5bd4ec6 100644 --- a/src/m/intel386.h +++ b/src/m/intel386.h | |||
| @@ -54,6 +54,7 @@ NOTE-END */ | |||
| 54 | 54 | ||
| 55 | #define DOT_GLOBAL_START | 55 | #define DOT_GLOBAL_START |
| 56 | 56 | ||
| 57 | #ifdef SOLARIS2 | ||
| 57 | /* Data type of load average, as read out of kmem. */ | 58 | /* Data type of load average, as read out of kmem. */ |
| 58 | #define LOAD_AVE_TYPE long | 59 | #define LOAD_AVE_TYPE long |
| 59 | 60 | ||
| @@ -61,16 +62,25 @@ NOTE-END */ | |||
| 61 | /* This is totally uncalibrated. */ | 62 | /* This is totally uncalibrated. */ |
| 62 | #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | 63 | #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) |
| 63 | 64 | ||
| 64 | #ifdef SOLARIS2 | ||
| 65 | /* J.W.Hawtin@lut.ac.uk say Solaris 2.4 as well as Solaris 2.1 on X86 | 65 | /* J.W.Hawtin@lut.ac.uk say Solaris 2.4 as well as Solaris 2.1 on X86 |
| 66 | requires -lkvm as well. | 66 | requires -lkvm as well. |
| 67 | And handa@etl.gov.jp says that -lkvm needs -llelf, at least on 2.5. */ | 67 | And handa@etl.gov.jp says that -lkvm needs -llelf, at least on 2.5. */ |
| 68 | #define LIBS_MACHINE -lkvm -lelf | 68 | #define LIBS_MACHINE -lkvm -lelf |
| 69 | |||
| 69 | /* configure thinks solaris X86 has gethostname, but it does not work, | 70 | /* configure thinks solaris X86 has gethostname, but it does not work, |
| 70 | so undefine it. */ | 71 | so undefine it. */ |
| 71 | #undef HAVE_GETHOSTNAME | 72 | #undef HAVE_GETHOSTNAME |
| 73 | |||
| 72 | #else /* not SOLARIS2 */ | 74 | #else /* not SOLARIS2 */ |
| 73 | #ifdef USG5_4 /* Older USG systems do not support the load average. */ | 75 | #ifdef USG5_4 /* Older USG systems do not support the load average. */ |
| 76 | /* Data type of load average, as read out of kmem. */ | ||
| 77 | |||
| 78 | #define LOAD_AVE_TYPE long | ||
| 79 | |||
| 80 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | ||
| 81 | /* This is totally uncalibrated. */ | ||
| 82 | |||
| 83 | #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) | ||
| 74 | #define FSCALE 256.0 | 84 | #define FSCALE 256.0 |
| 75 | #endif | 85 | #endif |
| 76 | #endif /* not SOLARIS2 */ | 86 | #endif /* not SOLARIS2 */ |