Module Name:    src
Committed By:   macallan
Date:           Fri Nov  4 18:09:14 UTC 2016

Modified Files:
        src/sys/arch/sparc64/sparc64: machdep.c

Log Message:
allow BUS_SPACE_MAP_PREFETCHABLE with bus_space_map() as well


To generate a diff of this commit:
cvs rdiff -u -r1.286 -r1.287 src/sys/arch/sparc64/sparc64/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/sparc64/machdep.c
diff -u src/sys/arch/sparc64/sparc64/machdep.c:1.286 src/sys/arch/sparc64/sparc64/machdep.c:1.287
--- src/sys/arch/sparc64/sparc64/machdep.c:1.286	Fri Nov  4 05:41:01 2016
+++ src/sys/arch/sparc64/sparc64/machdep.c	Fri Nov  4 18:09:14 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.286 2016/11/04 05:41:01 macallan Exp $ */
+/*	$NetBSD: machdep.c,v 1.287 2016/11/04 18:09:14 macallan Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.286 2016/11/04 05:41:01 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.287 2016/11/04 18:09:14 macallan Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -2293,6 +2293,9 @@ sparc_bus_map(bus_space_tag_t t, bus_add
 	if (!(flags & BUS_SPACE_MAP_CACHEABLE))
 		pm_flags |= PMAP_NC;
 
+	if ((flags & BUS_SPACE_MAP_PREFETCHABLE))
+		pm_flags |= PMAP_WC;
+
 	if ((err = extent_alloc(io_space, size, PAGE_SIZE,
 		0, EX_NOWAIT|EX_BOUNDZERO, (u_long *)&v)))
 			panic("sparc_bus_map: cannot allocate io_space: %d", err);

Reply via email to