break longjmp botch out into a separate routine, so programs can exit gracefully
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 10 Jan 1986 07:54:20 +0000 (23:54 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 10 Jan 1986 07:54:20 +0000 (23:54 -0800)
SCCS-vsn: lib/libc/vax/gen/_setjmp.s 5.3
SCCS-vsn: lib/libc/vax/gen/setjmp.s 5.4

usr/src/lib/libc/vax/gen/_setjmp.s
usr/src/lib/libc/vax/gen/setjmp.s

index f1c7806..339dae0 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-       .asciz  "@(#)_setjmp.s  5.2 (Berkeley) %G%"
+       .asciz  "@(#)_setjmp.s  5.3 (Berkeley) %G%"
 #endif not lint
 
 
 #endif not lint
 
 
@@ -68,13 +68,5 @@ done:
        jmp     *4(r1)                  # done, return....
 
 botch:
        jmp     *4(r1)                  # done, return....
 
 botch:
-       pushl   $msgend-msg
-       pushl   $msg
-       pushl   $2
-       calls   $3,_write
+       calls   $0,_longjmperror
        halt
        halt
-
-       .data
-msg:   .ascii  "_longjmp botch\n"
-msgend:
-reiins:        rei
index dfdd6c3..db0551b 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-       .asciz  "@(#)setjmp.s   5.3 (Berkeley) %G%"
+       .asciz  "@(#)setjmp.s   5.4 (Berkeley) %G%"
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -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: