Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/marvell sync L2 cache on the tail of region.
details: https://anonhg.NetBSD.org/src/rev/b4949e91eba9
branches: trunk
changeset: 337506:b4949e91eba9
user: hsuenaga <hsuenaga%NetBSD.org@localhost>
date: Fri Apr 17 13:43:55 2015 +0000
description:
sync L2 cache on the tail of region.
diffstat:
sys/arch/arm/marvell/armadaxp.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r ec94041e24a5 -r b4949e91eba9 sys/arch/arm/marvell/armadaxp.c
--- a/sys/arch/arm/marvell/armadaxp.c Fri Apr 17 13:39:01 2015 +0000
+++ b/sys/arch/arm/marvell/armadaxp.c Fri Apr 17 13:43:55 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: armadaxp.c,v 1.10 2015/04/15 12:11:31 hsuenaga Exp $ */
+/* $NetBSD: armadaxp.c,v 1.11 2015/04/17 13:43:55 hsuenaga Exp $ */
/*******************************************************************************
Copyright (C) Marvell International Ltd. and its affiliates
@@ -37,7 +37,7 @@
*******************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.10 2015/04/15 12:11:31 hsuenaga Exp $");
+__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.11 2015/04/17 13:43:55 hsuenaga Exp $");
#define _INTR_PRIVATE
@@ -503,7 +503,7 @@
paddr_t pa_base, pa_end;
pa_base = pa & ~0x1f;
- pa_end = (pa_base + sz) & ~0x1f;
+ pa_end = (pa_base + sz + 0x20) & ~0x1f;
L2_WRITE(ARMADAXP_L2_RANGE_BASE, pa_base);
L2_WRITE(ARMADAXP_L2_INV_RANGE, pa_end);
}
@@ -514,7 +514,7 @@
paddr_t pa_base, pa_end;
pa_base = pa & ~0x1f;
- pa_end = (pa_base + sz) & ~0x1f;
+ pa_end = (pa_base + sz + 0x20) & ~0x1f;
L2_WRITE(ARMADAXP_L2_RANGE_BASE, pa_base);
L2_WRITE(ARMADAXP_L2_WB_RANGE, pa_end);
L2_WRITE(ARMADAXP_L2_SYNC, 0);
@@ -527,7 +527,7 @@
paddr_t pa_base, pa_end;
pa_base = pa & ~0x1f;
- pa_end = (pa_base + sz) & ~0x1f;
+ pa_end = (pa_base + sz + 0x20) & ~0x1f;
L2_WRITE(ARMADAXP_L2_RANGE_BASE, pa_base);
L2_WRITE(ARMADAXP_L2_WBINV_RANGE, pa_end);
L2_WRITE(ARMADAXP_L2_SYNC, 0);
Home |
Main Index |
Thread Index |
Old Index