From: ceriel Date: Tue, 30 Jun 1992 17:06:10 +0000 (+0000) Subject: Added EXIT, WRITE and BRK entry point X-Git-Tag: release-5-5~433 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8e4ee3ec1a63b6d33977a8a2fa9f7194002ba57e;p=ack.git Added EXIT, WRITE and BRK entry point --- diff --git a/mach/vax4/libbsd4_1a/head_em.s b/mach/vax4/libbsd4_1a/head_em.s index 24808a8e6..05d288a95 100644 --- a/mach/vax4/libbsd4_1a/head_em.s +++ b/mach/vax4/libbsd4_1a/head_em.s @@ -9,6 +9,7 @@ .define .limhp .define .trppc .define .trpim +.define EXIT, BRK, WRITE ! run time startoff .data2 0 @@ -29,11 +30,36 @@ pushl r2 pushl r1 calls $3,__m_a_i_n +EXIT: movl $Im2,ap movl r0,6(ap) chmk (ap)+ halt +break = 17 + +.align 1 +BRK: + .data2 0x0000 + chmk $break + bcc 1f + jmp errmon +1: + movl 4(ap),.limhp + clrl r0 + ret + +write = 4 + +.align 1 +WRITE: + .data2 0x0000 + chmk $write + bcc 1f + jmp errmon +1: + ret + .sect .data Im2: .data2 1 diff --git a/mach/vax4/libbsd4_2/head_em.s b/mach/vax4/libbsd4_2/head_em.s index 861c0d23c..3f49aad35 100644 --- a/mach/vax4/libbsd4_2/head_em.s +++ b/mach/vax4/libbsd4_2/head_em.s @@ -9,6 +9,7 @@ .define .limhp .define .trppc .define .trpim +.define EXIT,WRITE,BRK ! run time startoff .data2 0 @@ -29,11 +30,32 @@ pushl r2 pushl r1 calls $3,__m_a_i_n +EXIT: movl $Im2,ap movl r0,6(ap) chmk (ap)+ halt +DEFINE(WRITE) + chmk $SYS_write + bcs 1f + ret +1: + jmp cerror + +DEFINE(BRK) + cmpl 4(ap),$endbss + bgeq 1f + movl $endbss,4(ap) +1: + chmk $17 + bcs 1f + movl 4(ap),.limhp + clrl r0 + ret +1: + jmp cerror + .sect .data Im2: .data2 1 diff --git a/mach/vax4/libsysV_2/head_em.s b/mach/vax4/libsysV_2/head_em.s index 24808a8e6..473164834 100644 --- a/mach/vax4/libsysV_2/head_em.s +++ b/mach/vax4/libsysV_2/head_em.s @@ -9,6 +9,7 @@ .define .limhp .define .trppc .define .trpim +.define EXIT,WRITE,BRK ! run time startoff .data2 0 @@ -29,11 +30,34 @@ pushl r2 pushl r1 calls $3,__m_a_i_n +EXIT: movl $Im2,ap movl r0,6(ap) chmk (ap)+ halt +write = 4 +WRITE: + .data2 0x0000 + chmk $write + bcc 1f + jmp cerror +1: + ret + + +break = 17 + +BRK: + .data2 0x0000 + chmk $break + bcc 1f + jmp cerror +1: + movl 4(ap),.limhp + clrl r0 + ret + .sect .data Im2: .data2 1