Page MenuHomeFreeBSD

riscv: Make sure local hart's icache is synced in pmap_sync_icache
ClosedPublic

Authored by jrtc27 on Apr 6 2020, 8:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 5 2025, 1:56 AM
Unknown Object (File)
Sep 1 2025, 11:52 PM
Unknown Object (File)
Aug 14 2025, 12:04 PM
Unknown Object (File)
Aug 2 2025, 4:28 AM
Unknown Object (File)
Jul 28 2025, 11:16 PM
Unknown Object (File)
Jul 27 2025, 9:02 AM
Unknown Object (File)
Jul 27 2025, 12:24 AM
Unknown Object (File)
Jul 6 2025, 5:50 AM
Subscribers

Details

Summary

The only way to flush the local hart's icache is with a FENCE.I (or an
equivalent SBI call); a normal FENCE is insufficient and, for the
single-hart case, unnecessary.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I broke this in rS339367 when I switched to using sbi_remove_fence_i as I had cleared the current CPU from the mask before passing that mask to SBI.

This revision is now accepted and ready to land.Apr 6 2020, 9:42 PM