From 105c7e6009c45bd70286650895c099b5b4f2581d Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 13 Jul 1988 16:55:48 +0000 Subject: [PATCH] fixed --- mach/xenix3/libsys/head_em.s | 7 +++++++ mach/xenix3/libsys/wait.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mach/xenix3/libsys/head_em.s b/mach/xenix3/libsys/head_em.s index bc2cd918e..2949f0594 100644 --- a/mach/xenix3/libsys/head_em.s +++ b/mach/xenix3/libsys/head_em.s @@ -48,7 +48,14 @@ begtext: shr bx,cl shl bx,cl call grow + xor cx,cx + push cx + call _sbrk + mov (.limhp),ax + mov (.reghp),ax ! on Xenix, heap begins above stack! + pop ax call _m_a_i_n + push ax call __exit .sect .data begdata: diff --git a/mach/xenix3/libsys/wait.c b/mach/xenix3/libsys/wait.c index fb2c181f4..0a76175da 100644 --- a/mach/xenix3/libsys/wait.c +++ b/mach/xenix3/libsys/wait.c @@ -6,6 +6,6 @@ wait(p) long l = _wait(); if (l == -1) return -1; - if (*p) *p = (l >> 16); + if (p) *p = (l >> 16); return (int) l; } -- 2.34.1