Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 support ARM32_MMAP_WRITECOMBINE for manag...
details: https://anonhg.NetBSD.org/src/rev/01f60f39b410
branches: trunk
changeset: 784631:01f60f39b410
user: macallan <macallan%NetBSD.org@localhost>
date: Mon Feb 04 13:37:30 2013 +0000
description:
support ARM32_MMAP_WRITECOMBINE for managed pages as well
diffstat:
sys/arch/arm/arm32/pmap.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r e1e57c6784dd -r 01f60f39b410 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Mon Feb 04 13:26:19 2013 +0000
+++ b/sys/arch/arm/arm32/pmap.c Mon Feb 04 13:37:30 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.251 2013/02/01 15:02:31 matt Exp $ */
+/* $NetBSD: pmap.c,v 1.252 2013/02/04 13:37:30 macallan Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -212,7 +212,7 @@
#include <arm/cpuconf.h>
#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.251 2013/02/01 15:02:31 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.252 2013/02/04 13:37:30 macallan Exp $");
#ifdef PMAP_DEBUG
@@ -2862,7 +2862,10 @@
npte |= L2_TYPE_INV;
}
- npte |= pte_l2_s_cache_mode;
+ if (flags & ARM32_MMAP_WRITECOMBINE) {
+ npte |= pte_l2_s_wc_mode;
+ } else
+ npte |= pte_l2_s_cache_mode;
if (pg == opg) {
/*
Home |
Main Index |
Thread Index |
Old Index