Page MenuHomeFreeBSD

Questionable optimization for riscv cpu_fetch_syscall_args()
AbandonedPublic

Authored by trasz on Nov 7 2020, 6:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 5, 9:16 PM
Unknown Object (File)
Sat, Apr 4, 1:27 PM
Unknown Object (File)
Wed, Apr 1, 6:10 AM
Unknown Object (File)
Sun, Mar 29, 5:53 PM
Unknown Object (File)
Thu, Mar 26, 6:19 PM
Unknown Object (File)
Tue, Mar 24, 5:26 PM
Unknown Object (File)
Tue, Mar 24, 4:09 AM
Unknown Object (File)
Mon, Mar 23, 6:32 PM
Subscribers

Details

Reviewers
None
Group Reviewers
riscv
Summary

XXX: stashed for later

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34685
Build 31752: arc lint + arc unit

Event Timeline

trasz requested review of this revision.Nov 7 2020, 6:16 PM
trasz planned changes to this revision.Nov 7 2020, 6:17 PM
trasz planned changes to this revision.Nov 8 2020, 6:31 PM
jhb added inline comments.
sys/riscv/riscv/trap.c
118–124

Why add this check for nosys? Checking sa_code should be sufficient?

120

This is now missing validation of sa->code and also doesn't update callp. Presumably this has broken any uses of syscall(2)?