commit | 7a64f3f1cffdc3db2e9de885bc49a6a9851aac62 | [log] [tgz] |
---|---|---|
author | Guo Ren <ren_guo@c-sky.com> | Tue Apr 02 16:02:33 2019 +0800 |
committer | Palmer Dabbelt <palmer@sifive.com> | Thu Apr 25 11:07:36 2019 -0700 |
tree | 64466273a0db2e7553ff94b30d47f1545ac24bb9 | |
parent | 085b7755808aa11f78ab9377257e1dad2e6fa4bb [diff] |
riscv/signal: Fixup additional syscall restarting The function of do_notify_resume called by entry.S could be entered in loop when SIGPENDING was setted again before sret. So we must add prevent code to make syscall restart (regs->sepc -= 0x4) or it may re-execute unexpected instructions. Just like in_syscall & forget_syscall used by arm. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>