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, Mar 18, 9:21 PM
Unknown Object (File)
Feb 17 2025, 3:40 AM
Unknown Object (File)
Jan 22 2025, 11:11 PM
Unknown Object (File)
Jan 18 2025, 10:23 PM
Unknown Object (File)
Jan 17 2025, 12:37 PM
Unknown Object (File)
Dec 8 2024, 8:31 PM
Unknown Object (File)
Dec 6 2024, 12:45 AM
Unknown Object (File)
Dec 3 2024, 8:42 PM
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