diff --git a/mach/m68k2/libsys/head_em.s b/mach/m68k2/libsys/head_em.s index a47d8eea..b761b8fe 100644 --- a/mach/m68k2/libsys/head_em.s +++ b/mach/m68k2/libsys/head_em.s @@ -54,6 +54,7 @@ begtext: jsr _m_a_i_n add #010,sp EXIT: + move.w d0,-(sp) jsr __exit .sect .data diff --git a/mach/m68k4/libsys/head_em.s b/mach/m68k4/libsys/head_em.s index d8ce66df..6e08c707 100644 --- a/mach/m68k4/libsys/head_em.s +++ b/mach/m68k4/libsys/head_em.s @@ -53,6 +53,7 @@ begtext: jsr _m_a_i_n add #012,sp EXIT: + move.l d0,-(sp) jsr __exit .sect .data diff --git a/mach/mantra/libsys/head_em.s b/mach/mantra/libsys/head_em.s index 149b1ec9..41ff5208 100644 --- a/mach/mantra/libsys/head_em.s +++ b/mach/mantra/libsys/head_em.s @@ -54,7 +54,7 @@ begtext: add #012,sp EXIT: move.l d0,-(sp) - jsr _exit + jsr __exit .sect .data begdata: diff --git a/mach/pmds/libsys/head_em.s b/mach/pmds/libsys/head_em.s index 00dc1708..6c7f1155 100644 --- a/mach/pmds/libsys/head_em.s +++ b/mach/pmds/libsys/head_em.s @@ -39,7 +39,7 @@ begtext: add #010,sp EXIT: move.w d0,-(sp) - jsr _exit + jsr __exit .sect .data begdata: diff --git a/mach/pmds4/libsys/head_em.s b/mach/pmds4/libsys/head_em.s index 730c7b39..a91e5fb7 100644 --- a/mach/pmds4/libsys/head_em.s +++ b/mach/pmds4/libsys/head_em.s @@ -39,7 +39,7 @@ begtext: EXIT: move.l d0,-(sp) - jsr _exit + jsr __exit ! As a temporary measure jsr .trp