Page MenuHomeFreeBSD

riscv pmap: zero reserved pte bits in ppn for l2 leaf entries, too
ClosedPublic

Authored by freebsdphab-AX9_cmx.ietfng.org on Sep 30 2020, 12:35 PM.
Tags
Referenced Files
Unknown Object (File)
Sat, Mar 14, 1:55 PM
Unknown Object (File)
Sat, Mar 14, 7:52 AM
Unknown Object (File)
Sat, Mar 14, 1:56 AM
Unknown Object (File)
Wed, Mar 11, 11:42 PM
Unknown Object (File)
Thu, Mar 5, 9:51 AM
Unknown Object (File)
Mon, Feb 23, 7:16 PM
Unknown Object (File)
Tue, Feb 17, 10:21 AM
Unknown Object (File)
Feb 9 2026, 2:37 PM
Subscribers

Details

Summary

D25523 / 0f7e7ff80e960e90a9acfc3e417465a7a0428e3c masked out the reserved bits from PTEs for the smallest page size. Do the same for larger pages.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/riscv/riscv/pmap.c
344 ↗(On Diff #77678)

It is fine to name it L2PTE_TO_PHYS I think. Generally within the riscv pmap we refer to leaf entries of any size as PTEs and non-leaf entries as PDEs (page directory entries).

This revision is now accepted and ready to land.Oct 9 2020, 9:46 AM
This revision was automatically updated to reflect the committed changes.