diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-04-16 13:35:15 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-04-16 13:35:15 +0000 |
commit | c8c7211d033e50b91f085b6ea79edf2c12ca7761 (patch) | |
tree | 4523611dae05b4ed155638e4c6874c21dfceea74 /lib/libc | |
parent | 8c9ba2481c4f9305f2c8e34f9beac9d8f11344be (diff) |
Always return nonzero from _longjmp too.
ok jsg@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/arch/aarch64/gen/_setjmp.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/arch/aarch64/gen/_setjmp.S b/lib/libc/arch/aarch64/gen/_setjmp.S index 220ef839a97..29f7196a716 100644 --- a/lib/libc/arch/aarch64/gen/_setjmp.S +++ b/lib/libc/arch/aarch64/gen/_setjmp.S @@ -1,4 +1,4 @@ -/* $OpenBSD: _setjmp.S,v 1.1 2017/01/11 18:09:24 patrick Exp $ */ +/* $OpenBSD: _setjmp.S,v 1.2 2017/04/16 13:35:14 kettenis Exp $ */ /*- * Copyright (c) 2014 Andrew Turner * Copyright (c) 2014 The FreeBSD Foundation @@ -91,7 +91,8 @@ ENTRY(_longjmp) #endif /* Load the return value */ - mov x0, x1 + cmp w1, #0 + csinc w0, w1, wzr, ne ret botch: |