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)
Mon, Nov 10, 1:22 AM
Unknown Object (File)
Fri, Nov 7, 11:28 PM
Unknown Object (File)
Tue, Nov 4, 12:21 AM
Unknown Object (File)
Mon, Nov 3, 1:06 PM
Unknown Object (File)
Mon, Nov 3, 1:04 PM
Unknown Object (File)
Mon, Nov 3, 1:04 PM
Unknown Object (File)
Mon, Nov 3, 1:02 PM
Unknown Object (File)
Fri, Oct 31, 4:39 AM
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.