Page MenuHomeFreeBSD

RISC-V superpage support, part 5/6.
ClosedPublic

Authored by markj on Jan 17 2019, 2:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 11:16 PM
Unknown Object (File)
Tue, Oct 14, 11:16 PM
Unknown Object (File)
Tue, Oct 14, 2:30 PM
Unknown Object (File)
Aug 9 2025, 12:19 PM
Unknown Object (File)
Aug 8 2025, 3:07 AM
Unknown Object (File)
Jul 9 2025, 3:03 PM
Unknown Object (File)
Jun 30 2025, 12:08 AM
Unknown Object (File)
Jun 21 2025, 4:25 AM
Subscribers
None

Details

Summary

Add superpage support for pmap_ts_referenced(). While here, get rid of
!safe_to_clear_referenced() handling.

Per the privileged architecture spec, RISC-V implementations may set the
PTE_A bit in hardware (upon a TLB miss), or generate a page fault if the
implementation finds that PTE_A is not set. The latter scenario is
now handled by pmap_fault_fixup(), so we can simply clear the PTE_A bit.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21997
Build 21231: arc lint + arc unit

Event Timeline

sys/riscv/riscv/pmap.c
4052

Hmm, some other places used '2mpage' in comments, etc. It would be nice to be consistent overall. (I think I prefer the format here of '2MB page' and '4KB page'.)

sys/riscv/riscv/pmap.c
4052

It's pretty inconsistent in general. This comment matches amd64 and arm64 at least.

This revision is now accepted and ready to land.Jan 28 2019, 3:23 PM