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)
Sun, Dec 8, 8:31 PM
Unknown Object (File)
Fri, Dec 6, 12:45 AM
Unknown Object (File)
Tue, Dec 3, 8:42 PM
Unknown Object (File)
Sun, Nov 24, 9:19 PM
Unknown Object (File)
Sun, Nov 24, 3:49 PM
Unknown Object (File)
Nov 8 2024, 3:38 AM
Unknown Object (File)
Nov 7 2024, 3:39 AM
Unknown Object (File)
Nov 7 2024, 12:34 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