diff --git a/mach/mantra/libsys/head_em.s b/mach/mantra/libsys/head_em.s index d8ce66df..149b1ec9 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 6e410b2d..00dc1708 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 c3d67cc6..730c7b39 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