diff options
author | Kenneth G Raeburn <raeburn@mit.edu> | 1991-03-21 06:36:40 +0000 |
---|---|---|
committer | Kenneth G Raeburn <raeburn@mit.edu> | 1991-03-21 06:36:40 +0000 |
commit | 16c29d7e7618604112d56b1d4ea19ef264f92b0b (patch) | |
tree | 32cac209a8f0883439dc0a496433e9cdc41ddbca | |
parent | 001b42bd857c150b5a47543df83ba53542923bbd (diff) |
Added more machine-specific definitions.
New macro "adjust_size" tells how to find size of data section.
-rw-r--r-- | zhm/zhm.h | 30 |
1 files changed, 26 insertions, 4 deletions
@@ -7,9 +7,9 @@ * * $Source$ * $Author$ - * $Header$ + * $Zephyr: /mit/zephyr/src.rw/zhm/RCS/zhm.h,v 1.13 90/10/19 07:11:48 raeburn Exp $ * - * Copyright (c) 1987 by the Massachusetts Institute of Technology. + * Copyright (c) 1987, 1991 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file * "mit-copyright.h". */ @@ -49,11 +49,13 @@ extern void init_queue(), retransmit_queue(); #ifdef vax #define MACHINE "vax" +#define use_etext #define ok #endif /* vax */ #ifdef ibm032 #define MACHINE "rt" +#define adjust_size(size) size -= 0x10000000 #define ok #endif /* ibm032 */ @@ -62,6 +64,7 @@ extern void init_queue(), retransmit_queue(); #define ok #endif /* NeXT */ +#ifdef sun #ifdef SUN2_ARCH #define MACHINE "sun2" #define ok @@ -72,24 +75,43 @@ extern void init_queue(), retransmit_queue(); #define ok #endif /* SUN3_ARCH */ -#ifdef SUN4_ARCH +#if defined (SUN4_ARCH) || defined (sparc) #define MACHINE "sun4" +#define use_etext #define ok #endif /* SUN4_ARCH */ +#ifndef ok +#if defined (m68k) +#define MACHINE "sun (unknown 68k)" +#else +#define MACHINE "sun (unknown)" +#endif +#define ok +#endif /* ! ok */ +#endif /* sun */ + #if defined(ultrix) && defined(mips) #define MACHINE "decmips" +#define adjust_size(size) size -= 0x10000000 #define ok #endif /* ultrix && mips */ #if defined(AIX) && defined(i386) #define MACHINE "ps2" +#define adjust_size(size) size -= 0x800000 #define ok #endif +#ifdef use_etext +extern int etext; +#define adjust_size(size) size -= (unsigned int) &etext; +#undef use_etext +#endif + #ifndef ok #define MACHINE "unknown" #endif #undef ok -#endif !__HM_H__ +#endif |