BSD 4_3 release
[unix-history] / usr / src / lib / libc / vax / gen / setjmp.s
index 32fe210..b3f3d9a 100644 (file)
@@ -4,9 +4,9 @@
  * specifies the terms and conditions for redistribution.
  */
 
  * specifies the terms and conditions for redistribution.
  */
 
-#ifndef lint
-       .asciz  "@(#)setjmp.s   5.2 (Berkeley) %G%"
-#endif not lint
+#ifdef LIBC_SCCS
+       .asciz  "@(#)setjmp.s   5.5 (Berkeley) 3/9/86"
+#endif LIBC_SCCS
 
 /*
  * C library -- setjmp, longjmp
 
 /*
  * C library -- setjmp, longjmp
@@ -27,7 +27,7 @@ ENTRY(setjmp, R6)
        pushl   sp                      # get current values
        pushl   $0                      # no new values
        calls   $3,_sigstack            # pop args plus signal stack value
        pushl   sp                      # get current values
        pushl   $0                      # no new values
        calls   $3,_sigstack            # pop args plus signal stack value
-       movl    *(sp)+,(r6)+            # save onsigstack status of caller
+       movl    (sp)+,(r6)+             # save onsigstack status of caller
        pushl   $0
        calls   $1,_sigblock            # get signal mask
        movl    r0,(r6)+                # save signal mask of caller
        pushl   $0
        calls   $1,_sigblock            # get signal mask
        movl    r0,(r6)+                # save signal mask of caller
@@ -87,12 +87,5 @@ done:
        calls   $1,_sigreturn           # restore previous context
                                        # we should never return
 botch:
        calls   $1,_sigreturn           # restore previous context
                                        # we should never return
 botch:
-       pushl   $msgend-msg
-       pushl   $msg
-       pushl   $2
-       calls   $3,_write
+       calls   $0,_longjmperror
        halt
        halt
-
-       .data
-msg:   .ascii  "longjmp botch\n"
-msgend: