Fixed copying of N_TXTADDR() from the system version in the previous

revision.  N_TXTADDR() was 0x20 too high in the usual case.

Reported by:	luoqi@watermarkgroup.com (Luoqi Chen)
This commit is contained in:
bde 1998-01-16 08:46:50 +00:00
parent 356127f254
commit 4859a7febe

View File

@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
(N_GETMAGIC(x) == OMAGIC || N_GETMAGIC(x) == NMAGIC \ (N_GETMAGIC(x) == OMAGIC || N_GETMAGIC(x) == NMAGIC \
|| N_GETMAGIC(x) == ZMAGIC \ || N_GETMAGIC(x) == ZMAGIC \
? ((x).a_entry < (x).a_text ? 0 : (x).a_entry & ~TARGET_PAGE_SIZE) \ ? ((x).a_entry < (x).a_text ? 0 : (x).a_entry & ~TARGET_PAGE_SIZE) \
: TARGET_PAGE_SIZE + sizeof(struct external_exec)) : TARGET_PAGE_SIZE)
#define N_TXTOFF(x) \ #define N_TXTOFF(x) \
(N_GETMAGIC(x) == ZMAGIC ? TARGET_PAGE_SIZE \ (N_GETMAGIC(x) == ZMAGIC ? TARGET_PAGE_SIZE \
: (N_GETMAGIC(x) == QMAGIC || N_GETMAGIC_NET(x) == ZMAGIC) ? 0 \ : (N_GETMAGIC(x) == QMAGIC || N_GETMAGIC_NET(x) == ZMAGIC) ? 0 \