Added EXIT, WRITE and BRK entry point
authorceriel <none@none>
Tue, 30 Jun 1992 17:06:10 +0000 (17:06 +0000)
committerceriel <none@none>
Tue, 30 Jun 1992 17:06:10 +0000 (17:06 +0000)
mach/vax4/libbsd4_1a/head_em.s
mach/vax4/libbsd4_2/head_em.s
mach/vax4/libsysV_2/head_em.s

index 24808a8..05d288a 100644 (file)
@@ -9,6 +9,7 @@
 .define        .limhp
 .define        .trppc
 .define        .trpim
+.define EXIT, BRK, WRITE
 
        ! run time startoff
        .data2  0
        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
index 861c0d2..3f49aad 100644 (file)
@@ -9,6 +9,7 @@
 .define        .limhp
 .define        .trppc
 .define        .trpim
+.define EXIT,WRITE,BRK
 
        ! run time startoff
        .data2  0
        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
index 24808a8..4731648 100644 (file)
@@ -9,6 +9,7 @@
 .define        .limhp
 .define        .trppc
 .define        .trpim
+.define EXIT,WRITE,BRK
 
        ! run time startoff
        .data2  0
        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