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 * Drain write buffer after cleaning the min...



details:   https://anonhg.NetBSD.org/src/rev/e8f82fbf5551
branches:  trunk
changeset: 535077:e8f82fbf5551
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Aug 09 21:51:52 2002 +0000

description:
* Drain write buffer after cleaning the mini-D$.
* Fix a typo in a comment.

diffstat:

 sys/arch/arm/arm/cpufunc_asm_xscale.S |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r c4ed5b05f4c7 -r e8f82fbf5551 sys/arch/arm/arm/cpufunc_asm_xscale.S
--- a/sys/arch/arm/arm/cpufunc_asm_xscale.S     Fri Aug 09 21:49:09 2002 +0000
+++ b/sys/arch/arm/arm/cpufunc_asm_xscale.S     Fri Aug 09 21:51:52 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc_asm_xscale.S,v 1.13 2002/04/09 23:44:00 thorpej Exp $  */
+/*     $NetBSD: cpufunc_asm_xscale.S,v 1.14 2002/08/09 21:51:52 thorpej Exp $  */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -332,7 +332,10 @@
 1:     ldr     r3, [r0], #32
        subs    r1, r1, #32
        bne     1b
-       mov     pc, lr
+
+       mcr     p15, 0, r0, c7, c10, 4  /* drain write buffer */
+
+       CPWAIT_AND_RETURN(r1)
 
 ENTRY(xscale_cache_purgeID_E)
        mcr     p15, 0, r0, c7, c10, 1  /* clean D cache entry */
@@ -516,7 +519,7 @@
        CPWAIT_AND_RETURN(r0)
 
 /*
- * xscale_cpusleep
+ * xscale_cpu_sleep
  *
  * This is called when there is nothing on any of the run queues.
  * We go into IDLE mode so that any IRQ or FIQ will awaken us.



Home | Main Index | Thread Index | Old Index