]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/riscv/riscv/pmap.c
riscv pmap: zero reserved pte bits in ppn
authorkp <kp@FreeBSD.org>
Wed, 1 Jul 2020 19:15:43 +0000 (19:15 +0000)
committerkp <kp@FreeBSD.org>
Wed, 1 Jul 2020 19:15:43 +0000 (19:15 +0000)
commit0f7e7ff80e960e90a9acfc3e417465a7a0428e3c
tree3872cb7d1ef80cf9ac8743053a3aaaa285805cdf
parentd0fe0b9073f3d36fc7c7c6a62113665e9fa86990
riscv pmap: zero reserved pte bits in ppn

The top 10 bits of a pte are reserved by specification[1] and are not part of
the PPN.

[1] 'Volume II: RISC-V Privileged Architectures V20190608-Priv-MSU-Ratified',
'4.4.1 Addressing and Memory Protection', page 72: "The PTE format for Sv39 is
shown in Figure 4.18. ... Bits 63–54 are reserved for future use and must be
zeroed by software for forward compatibility."

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