]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a pmap_kremove_device() to undo mappings made with pmap_kenter_device().
authorIan Lepore <ian@FreeBSD.org>
Fri, 10 Apr 2015 13:26:35 +0000 (13:26 +0000)
committerIan Lepore <ian@FreeBSD.org>
Fri, 10 Apr 2015 13:26:35 +0000 (13:26 +0000)
commit7669914f3268c13368347488e91271f0ba050482
treea2fb3d304764a48fcd52b1ea4b3aae9698b2dfc5
parent78261920b0e1b4f91d3d6ac5c5bdf965a391ab08
Add a pmap_kremove_device() to undo mappings made with pmap_kenter_device().

Previously we used pmap_kremove(), but with ARM_NEW_PMAP it does the remove
in a way that isn't SMP-coherent (which is appropriate in some circumstances
such as mapping/unmapping sf buffers).  With matching enter/remove routines
for device mappings, each low-level implementation can do the right thing.

Reviewed by: Svatopluk Kraus <onwahe@gmail.com>
sys/arm/arm/devmap.c
sys/arm/arm/pmap-v6-new.c
sys/arm/arm/pmap-v6.c
sys/arm/arm/pmap.c
sys/arm/include/pmap-v6.h
sys/arm/include/pmap.h