artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f19ed38
)
Always return nonzero from _longjmp too.
author
kettenis
<kettenis@openbsd.org>
Sun, 16 Apr 2017 13:35:14 +0000
(13:35 +0000)
committer
kettenis
<kettenis@openbsd.org>
Sun, 16 Apr 2017 13:35:14 +0000
(13:35 +0000)
ok jsg@
lib/libc/arch/aarch64/gen/_setjmp.S
patch
|
blob
|
history
diff --git
a/lib/libc/arch/aarch64/gen/_setjmp.S
b/lib/libc/arch/aarch64/gen/_setjmp.S
index
220ef83
..
29f7196
100644
(file)
--- 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: