]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: Add a stub pmap_change_attr implementation
authorJessica Clarke <jrtc27@FreeBSD.org>
Sun, 3 Oct 2021 18:33:47 +0000 (19:33 +0100)
committerJessica Clarke <jrtc27@FreeBSD.org>
Sun, 3 Oct 2021 18:33:47 +0000 (19:33 +0100)
commit1be2e16df1d29148aee83964330a71ae403c6078
tree5fc6f1f5f60ad2479dcf37d8faad2d8075a26755
parent6b88668f0bfcca09035549e25d0f3c181cd537c8
riscv: Add a stub pmap_change_attr implementation

pmap_change_attr is required by drm-kmod so we need the function to
exist. Since the Svpbmt extension is on the horizon we will likely end
up with a real implementation of it, so this stub implementation does
all the necessary page table walking to validate the input, ensuring
that no new errors are returned once it's implemented fully (other than
due to out of memory conditions when demoting L2 entries) and providing
a skeleton for that future implementation.

Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31996
sys/riscv/include/pmap.h
sys/riscv/riscv/pmap.c