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)
Feb 20 2024, 9:58 PM
Unknown Object (File)
Dec 12 2023, 12:25 AM
Unknown Object (File)
Nov 10 2023, 5:05 AM
Unknown Object (File)
Nov 5 2023, 11:25 PM
Unknown Object (File)
Nov 5 2023, 4:43 PM
Unknown Object (File)
Nov 5 2023, 2:32 AM
Unknown Object (File)
Oct 26 2023, 9:45 PM
Unknown Object (File)
Oct 25 2023, 7:25 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