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
F165064992: D27135.diff
Wed, Aug 5, 5:11 PM
Unknown Object (File)
Tue, Aug 4, 2:50 AM
Unknown Object (File)
Sun, Aug 2, 11:58 PM
Unknown Object (File)
Sun, Aug 2, 12:46 AM
Unknown Object (File)
Sat, Aug 1, 11:32 AM
Unknown Object (File)
Sat, Aug 1, 8:10 AM
Unknown Object (File)
Sat, Aug 1, 2:04 AM
Unknown Object (File)
Tue, Jul 28, 2:39 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)?