Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm Coalesced writes on xscale systems do not a...



details:   https://anonhg.NetBSD.org/src/rev/905ceb88aef9
branches:  trunk
changeset: 535474:905ceb88aef9
user:      briggs <briggs%NetBSD.org@localhost>
date:      Tue Aug 20 02:30:51 2002 +0000

description:
Coalesced writes on xscale systems do not always work.  If
XSCALE_NO_COALESCE_WRITES is set, disable.  Otherwise, enable.

diffstat:

 sys/arch/arm/arm/cpufunc.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 2246d23c7e10 -r 905ceb88aef9 sys/arch/arm/arm/cpufunc.c
--- a/sys/arch/arm/arm/cpufunc.c        Tue Aug 20 02:00:46 2002 +0000
+++ b/sys/arch/arm/arm/cpufunc.c        Tue Aug 20 02:30:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.c,v 1.53 2002/08/20 02:00:46 briggs Exp $      */
+/*     $NetBSD: cpufunc.c,v 1.54 2002/08/20 02:30:51 briggs Exp $      */
 
 /*
  * arm7tdmi support code Copyright (c) 2001 John Fremlin
@@ -1947,7 +1947,11 @@
        /* Make sure write coalescing is turned on */
        __asm __volatile("mrc p15, 0, %0, c1, c0, 1"
                : "=r" (auxctl));
+#if XSCALE_NO_COALESCE_WRITES
+       auxctl |= XSCALE_AUXCTL_K;
+#else
        auxctl &= ~XSCALE_AUXCTL_K;
+#endif
        __asm __volatile("mcr p15, 0, %0, c1, c0, 1"
                : : "r" (auxctl));
 }



Home | Main Index | Thread Index | Old Index