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)
Fri, Oct 10, 1:33 AM
Unknown Object (File)
Sep 12 2025, 10:32 AM
Unknown Object (File)
Sep 12 2025, 5:16 AM
Unknown Object (File)
Sep 11 2025, 3:21 AM
Unknown Object (File)
Sep 11 2025, 2:27 AM
Unknown Object (File)
Aug 26 2025, 2:05 AM
Unknown Object (File)
Aug 22 2025, 7:38 PM
Unknown Object (File)
Aug 13 2025, 11:40 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 34696
Build 31760: 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
117

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

119

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