From 48cc05ccf20b597914bc40cd07a0314592089b70 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 3 Mar 1987 11:11:39 +0000 Subject: [PATCH] *** empty log message *** --- mach/mantra/libsys/head_em.s | 7 ++++--- mach/pmds/libsys/head_em.s | 5 ++--- mach/pmds4/libsys/head_em.s | 6 ++---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/mach/mantra/libsys/head_em.s b/mach/mantra/libsys/head_em.s index d8ce66df1..149b1ec93 100644 --- a/mach/mantra/libsys/head_em.s +++ b/mach/mantra/libsys/head_em.s @@ -10,7 +10,7 @@ -! EM runtime start-off for the Bleasdale 68000 system +! EM runtime start-off for the Mantra 68000 system LINO_AD = 0 @@ -27,7 +27,7 @@ EBADGTO = 27 .sect .text begtext: - ! Bleasdale puts the argument and environment vectors + ! Mantra puts the argument and environment vectors ! themselves on top of the stack, instead of POINTERS ! to these vectors. We get things right here. move.l 4(sp),a0 @@ -53,7 +53,8 @@ begtext: jsr _m_a_i_n add #012,sp EXIT: - jsr __exit + move.l d0,-(sp) + jsr _exit .sect .data begdata: diff --git a/mach/pmds/libsys/head_em.s b/mach/pmds/libsys/head_em.s index 6e410b2de..00dc17083 100644 --- a/mach/pmds/libsys/head_em.s +++ b/mach/pmds/libsys/head_em.s @@ -35,12 +35,11 @@ ECASE = 20 .sect .text begtext: add.l #2,sp !convert argc from 4-byte to 2-byte - pea endbss - jsr _brk - add.l #4,sp jsr _m_a_i_n add #010,sp EXIT: + move.w d0,-(sp) + jsr _exit .sect .data begdata: diff --git a/mach/pmds4/libsys/head_em.s b/mach/pmds4/libsys/head_em.s index c3d67cc66..730c7b39e 100644 --- a/mach/pmds4/libsys/head_em.s +++ b/mach/pmds4/libsys/head_em.s @@ -34,14 +34,12 @@ ECASE = 20 .sect .text begtext: - pea endbss - jsr _brk - add.l #4,sp jsr _m_a_i_n add #012,sp EXIT: - jsr __exit + move.l d0,-(sp) + jsr _exit ! As a temporary measure jsr .trp -- 2.34.1