]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: zero reserved PTE bits for L2 PTEs
authormhorne <mhorne@FreeBSD.org>
Sat, 17 Oct 2020 17:31:06 +0000 (17:31 +0000)
committermhorne <mhorne@FreeBSD.org>
Sat, 17 Oct 2020 17:31:06 +0000 (17:31 +0000)
commit4fc33ba62dd75393f228c394fe72090af5b5cc5c
treeca4ef2ae67d06b013816a1afaebbda75859c37ba
parentd9a4b9becc1aa44cb965bb238d433a14f1ae72c9
riscv: zero reserved PTE bits for L2 PTEs

As was done for L3 PTEs in r362853, mask out the reserved bits when
extracting the physical address from an L2 PTE. Future versions of the
spec or custom implementations may make use of these reserved bits, in
which case the resulting physical address could be incorrect.

Submitted by: Nathaniel Filardo <nwf20@cl.cam.ac.uk>
Reviewed by: kp, mhorne
Differential Revision: https://reviews.freebsd.org/D26607
sys/riscv/riscv/pmap.c