]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: Implement pmap_mapdev_attr
authorJessica Clarke <jrtc27@FreeBSD.org>
Sun, 17 Oct 2021 14:31:35 +0000 (15:31 +0100)
committerJessica Clarke <jrtc27@FreeBSD.org>
Sun, 17 Oct 2021 14:31:35 +0000 (15:31 +0100)
commit682c00a6ce2f3870e9c698b283ee2b2a56c28c0b
treef83df9df554f8d4d64c893836b5102e61ad09c2c
parent0f559a9f097b9eea318e970155fb23e37af07c4e
riscv: Implement pmap_mapdev_attr

This is needed for LinuxKPI's _ioremap_attr. This reuses the generic
implementation introduced for aarch64, and itself requires implementing
pmap_kenter, which is trivial to do given riscv currently treats all
mapping attributes the same due to the Svpbmt extension not yet being
ratified and in hardware.

Reviewed by: markj, mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D32445
sys/kern/subr_devmap.c
sys/riscv/include/pmap.h
sys/riscv/riscv/pmap.c