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

[Xen-changelog] [xen-unstable] [XEN][POWERPC] Fixes in cpu_flush_icache()



# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 7b6f0a4d5cdd9a29d66a2faff340c23933060793
# Parent  1c996041fcde13648b5447241ae2b34d885ff429
[XEN][POWERPC] Fixes in cpu_flush_icache()
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/arch/powerpc/powerpc64/ppc970.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff -r 1c996041fcde -r 7b6f0a4d5cdd 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.