diff options
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: |