WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [xenppc-unstable] [XEN][POWERPC] Fixes in cpu_flush_icache()

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [XEN][POWERPC] Fixes in cpu_flush_icache()
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 03 Oct 2006 01:50:43 +0000
Delivery-date: Mon, 02 Oct 2006 20:02:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID d1138b71a50937503a6ec5800d7e8f4fd8b062e6
# Parent  02f6e775deb1f6aa21154ee43712351a389681af
[XEN][POWERPC] Fixes in cpu_flush_icache()

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 xen/arch/powerpc/powerpc64/ppc970.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff -r 02f6e775deb1 -r d1138b71a509 xen/arch/powerpc/powerpc64/ppc970.c
--- a/xen/arch/powerpc/powerpc64/ppc970.c       Mon Oct 02 11:07:54 2006 -0400
+++ b/xen/arch/powerpc/powerpc64/ppc970.c       Mon Oct 02 19:55:18 2006 -0400
@@ -50,24 +50,25 @@ void cpu_flush_icache(void)
 {
     union hid1 hid1;
     ulong flags;
-    ulong ra;
+    ulong ea;
 
     local_irq_save(flags);
 
-    /* uses special processor mode that forces a real address match */
+    /* uses special processor mode that forces a real address match on
+     * the whole line */
     hid1.word = mfhid1();
     hid1.bits.en_icbi = 1;
     mthid1(hid1.word);
 
-    for (ra = 0; ra < cpu_caches.isize; ra += cpu_caches.iline_size)
-        icbi(ra);
+    for (ea = 0; ea < cpu_caches.isize; ea += cpu_caches.iline_size)
+        icbi(ea);
 
     sync();
 
     hid1.bits.en_icbi = 0;
     mthid1(hid1.word);
 
-    local_irq_save(flags);
+    local_irq_restore(flags);
 }
 
 

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [xenppc-unstable] [XEN][POWERPC] Fixes in cpu_flush_icache(), Xen patchbot-xenppc-unstable <=