summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-09-01 18:47:00 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-09-01 18:47:00 +0000
commita46c7200aeee0a58a09439ef17c8e4d92f2d1875 (patch)
tree3e2936ada685473f484ba145347c502909eba409 /sys
parentad8c4c52cb0a5e6b0ea8eb819cc08813ef58f957 (diff)
Add PMAP_NOCACHE flag to the address returned by the generic
bus_space_mmap(9) implementation to make sure we enter mappings with the right memory attributes.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc64/powerpc64/bus_space.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/powerpc64/bus_space.c b/sys/arch/powerpc64/powerpc64/bus_space.c
index 9db3f476cad..33aa04bb2da 100644
--- a/sys/arch/powerpc64/powerpc64/bus_space.c
+++ b/sys/arch/powerpc64/powerpc64/bus_space.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus_space.c,v 1.1 2020/06/07 20:08:49 kettenis Exp $ */
+/* $OpenBSD: bus_space.c,v 1.2 2020/09/01 18:46:59 kettenis Exp $ */
/*
* Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -222,7 +222,7 @@ paddr_t
generic_space_mmap(bus_space_tag_t t, bus_addr_t addr, off_t off,
int prot, int flags)
{
- return (addr + off);
+ return (addr + off) | PMAP_NOCACHE;
}
uint16_t