From a46c7200aeee0a58a09439ef17c8e4d92f2d1875 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 1 Sep 2020 18:47:00 +0000 Subject: 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. --- sys/arch/powerpc64/powerpc64/bus_space.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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 -- cgit v1.2.3