aarch64: fix setjmp return value
commit22359b54ab9a3ff0a854490f3eb0fcb838e785af
authorSzabolcs Nagy <nsz@port70.net>
Wed, 12 Aug 2020 21:00:26 +0000 (12 21:00 +0000)
committerRich Felker <dalias@aerifal.cx>
Thu, 13 Aug 2020 01:53:25 +0000 (12 21:53 -0400)
tree60bdbb3c6d3228f8e4bca17f6cfe3321a7d5b57a
parent4554f155dd23a65fcdfd39f1d5af8af55ba37694
aarch64: fix setjmp return value

longjmp should set the return value of setjmp, but 64bit
registers were used for the 0 check while the type is int.

use the code that gcc generates for return val ? val : 1;
src/setjmp/aarch64/longjmp.s