Page MenuHomeFreeBSD

riscv: fix csr_swap()
ClosedPublic

Authored by br on Sep 3 2024, 6:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 20, 12:26 PM
Unknown Object (File)
Wed, May 20, 10:31 AM
Unknown Object (File)
Wed, May 20, 3:19 AM
Unknown Object (File)
Sat, May 16, 9:54 PM
Unknown Object (File)
May 3 2026, 3:22 AM
Unknown Object (File)
Apr 28 2026, 8:12 AM
Unknown Object (File)
Apr 27 2026, 11:47 AM
Unknown Object (File)
Apr 21 2026, 12:06 PM
Subscribers

Details

Summary

Fix csr_swap() so that we don't overwrite the argument (which is not even possible when the argument is immediate value)

Test Plan

Tested in bhyve

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

br requested review of this revision.Sep 3 2024, 6:27 PM
This revision is now accepted and ready to land.Sep 3 2024, 6:38 PM
This revision was automatically updated to reflect the committed changes.