diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-21 20:00:31 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-10-21 20:00:31 +0000 |
commit | f0d607329e0b62996b73178514beb6730a4e969f (patch) | |
tree | e473bb14a18d74f1bed25cf6283caa035a719c50 /lib/libc/arch | |
parent | 409daa0344bb5c7ec3bae6e23f61299b86bb3179 (diff) |
deal w/ longjmp(, 0)
Diffstat (limited to 'lib/libc/arch')
-rw-r--r-- | lib/libc/arch/hppa/gen/setjmp.S | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/arch/hppa/gen/setjmp.S b/lib/libc/arch/hppa/gen/setjmp.S index c97e1f1e621..973d420d192 100644 --- a/lib/libc/arch/hppa/gen/setjmp.S +++ b/lib/libc/arch/hppa/gen/setjmp.S @@ -1,4 +1,4 @@ -/* $OpenBSD: setjmp.S,v 1.3 2002/02/08 16:35:15 mickey Exp $ */ +/* $OpenBSD: setjmp.S,v 1.4 2002/10/21 20:00:30 mickey Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -44,7 +44,7 @@ #if defined(LIBC_SCCS) && !defined(lint) .text - .asciz "$OpenBSD: setjmp.S,v 1.3 2002/02/08 16:35:15 mickey Exp $" + .asciz "$OpenBSD: setjmp.S,v 1.4 2002/10/21 20:00:30 mickey Exp $" .align 4 #endif /* LIBC_SCCS and not lint */ @@ -197,6 +197,8 @@ _longjmp$restores /* restore the rest */ ldw 12(%arg0), %sp ldw 20(%arg0), %rp /* check the priv level */ + sub,<> %arg1, %r0, %r0 + ldo 1(%arg1), %arg1 bv %r0(%rp) copy %arg1, %ret0 EXIT(_longjmp) |