From a8e086dbc313f1bf5c4911c6a939c14b0d09cc75 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 10 Jul 1987 11:57:45 +0000 Subject: [PATCH] yet another bug fix: the brk systemcall destroyed d1 --- mach/mantra/int/mloop9 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mach/mantra/int/mloop9 b/mach/mantra/int/mloop9 index d92cc4b58..c0ee927c9 100644 --- a/mach/mantra/int/mloop9 +++ b/mach/mantra/int/mloop9 @@ -179,9 +179,11 @@ str_s0: move.l d6,d0 ; move.b (a3)+,d0 bcc 3f !break cmp.l tblmax,d1 ; bcs 4f 5: move.l d1,hp ; jmp (a4) -3: move.l d1,-(sp) ; add.l #1280,(sp) +3: move.l d1,-(sp) + move.l d1,-(sp) ; add.l #1280,(sp) bsr _Xbreak ; testen (sp)+ -4: bne e_heap ; bra 5b +4: bne e_heap ; + move.l (sp)+,d1 ; bra 5b !---------------------------------------------------------------------------- rck_z: mov (sp)+,d0 ; bra 0f -- 2.34.1