LibC: Pass arguments correctly to sigprocmask in setjmp for riscv64

For some reason I decided to change the argument passing order before
submitting my PR, but this would cause the oldset argument to always
be 0x74 as a0 is overridden with 0 in that order.
This commit is contained in:
Sönke Holz 2024-01-15 11:40:20 +01:00 committed by Andreas Kling
parent cc447c9c80
commit 1ab4135975
Notes: sideshowbarker 2024-07-17 06:40:35 +09:00

View file

@ -34,9 +34,9 @@ sigsetjmp:
sd a0, 0(sp)
sd ra, 8(sp)
li a0, 0 // Set argument how
li a1, 0 // Set argument set
addi a2, a0, SAVED_SIGNAL_MASK_SLOT // Set argument oldset
li a1, 0 // Set argument set
li a0, 0 // Set argument how
call sigprocmask@plt
ld ra, 8(sp)