Change offsets to (N * 8) to reduce chance of register clobber and mistakes.
authordrahn <drahn@openbsd.org>
Sun, 9 May 2021 21:26:06 +0000 (21:26 +0000)
committerdrahn <drahn@openbsd.org>
Sun, 9 May 2021 21:26:06 +0000 (21:26 +0000)
commit1cb19090bf0e66960b2e1fc2e5f52f7be1ca5353
tree3fdd19a5e74ffb14b59d10d786aa8f0fef987e5a
parentc8c7b107a2ffb4298356aa5803eb67bdadfb5214
Change offsets to (N * 8) to reduce chance of register clobber and mistakes.
Simplify integer loading, use 'li <dest>, <value>' instead of x0/zero register
Adjust _JB_SIGMASK to not collide with saved registers.
lib/libc/arch/riscv64/gen/_setjmp.S
lib/libc/arch/riscv64/gen/setjmp.S
lib/libc/arch/riscv64/gen/sigsetjmp.S
sys/arch/riscv64/include/setjmp.h