Mapping non-cachable memory as cachable and subsequently changing the mapping
authorkettenis <kettenis@openbsd.org>
Mon, 8 Aug 2016 14:47:52 +0000 (14:47 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 8 Aug 2016 14:47:52 +0000 (14:47 +0000)
commite2bd3b65536e140fd1432ff6eb959ca304691d79
tree0cf89ae49f54d0fbeea72cb00ebce4392ad21877
parent311f8182d8d121e5746c102c8a42ee5fed9ba559
Mapping non-cachable memory as cachable and subsequently changing the mapping
to non-cachable is retarded.  Fix this by introducing PMAP_NOCACHE and
PMAP_DEVICE flags that can be or'ed into the physical address passed to
pmap_kenter(9), like we have on many of our other architectures.  This way we
can also properly distinguish between device memory and normal (non-cachable)
memory.

ok visa@
sys/arch/arm/arm/pmap7.c
sys/arch/arm/armv7/armv7_space.c
sys/arch/arm/include/pmap.h