Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/booke Use correct register for next cacheli...
details: https://anonhg.NetBSD.org/src/rev/d2bed14f140e
branches: trunk
changeset: 805631:d2bed14f140e
user: nonaka <nonaka%NetBSD.org@localhost>
date: Fri Jan 09 11:45:11 2015 +0000
description:
Use correct register for next cacheline address.
diffstat:
sys/arch/powerpc/booke/booke_pmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 7a73d25c9dee -r d2bed14f140e sys/arch/powerpc/booke/booke_pmap.c
--- a/sys/arch/powerpc/booke/booke_pmap.c Fri Jan 09 09:50:46 2015 +0000
+++ b/sys/arch/powerpc/booke/booke_pmap.c Fri Jan 09 11:45:11 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: booke_pmap.c,v 1.19 2015/01/05 07:40:05 nonaka Exp $ */
+/* $NetBSD: booke_pmap.c,v 1.20 2015/01/09 11:45:11 nonaka Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: booke_pmap.c,v 1.19 2015/01/05 07:40:05 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: booke_pmap.c,v 1.20 2015/01/09 11:45:11 nonaka Exp $");
#include <sys/param.h>
#include <sys/kcore.h>
@@ -364,8 +364,8 @@
const vaddr_t end = src_va + PAGE_SIZE;
while (src_va < end) {
- __asm(
- "dcbt %2,%1" "\n\t" /* touch next src cachline */
+ __asm __volatile(
+ "dcbt %2,%0" "\n\t" /* touch next src cacheline */
"dcba 0,%1" "\n\t" /* don't fetch dst cacheline */
:: "b"(src_va), "b"(dst_va), "b"(line_size));
for (u_int i = 0;
Home |
Main Index |
Thread Index |
Old Index