mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
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:
parent
cc447c9c80
commit
1ab4135975
Notes:
sideshowbarker
2024-07-17 06:40:35 +09:00
Author: https://github.com/spholz Commit: https://github.com/SerenityOS/serenity/commit/1ab4135975 Pull-request: https://github.com/SerenityOS/serenity/pull/22764
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue