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)
Fri, Nov 8, 3:38 AM
Unknown Object (File)
Thu, Nov 7, 3:39 AM
Unknown Object (File)
Thu, Nov 7, 12:34 AM
Unknown Object (File)
Tue, Nov 5, 2:31 PM
Unknown Object (File)
Oct 18 2024, 12:26 PM
Unknown Object (File)
Oct 16 2024, 7:13 AM
Unknown Object (File)
Oct 15 2024, 5:39 AM
Unknown Object (File)
Oct 15 2024, 5:39 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