ia64/xen-unstable

changeset 12931:7b6f0a4d5cdd

[XEN][POWERPC] Fixes in cpu_flush_icache()
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Mon Oct 02 19:55:18 2006 -0400 (2006-10-02)
parents 1c996041fcde
children 0379ac3367b2
files xen/arch/powerpc/powerpc64/ppc970.c
line diff
     1.1 --- a/xen/arch/powerpc/powerpc64/ppc970.c	Mon Oct 02 11:07:54 2006 -0400
     1.2 +++ b/xen/arch/powerpc/powerpc64/ppc970.c	Mon Oct 02 19:55:18 2006 -0400
     1.3 @@ -50,24 +50,25 @@ void cpu_flush_icache(void)
     1.4  {
     1.5      union hid1 hid1;
     1.6      ulong flags;
     1.7 -    ulong ra;
     1.8 +    ulong ea;
     1.9  
    1.10      local_irq_save(flags);
    1.11  
    1.12 -    /* uses special processor mode that forces a real address match */
    1.13 +    /* uses special processor mode that forces a real address match on
    1.14 +     * the whole line */
    1.15      hid1.word = mfhid1();
    1.16      hid1.bits.en_icbi = 1;
    1.17      mthid1(hid1.word);
    1.18  
    1.19 -    for (ra = 0; ra < cpu_caches.isize; ra += cpu_caches.iline_size)
    1.20 -        icbi(ra);
    1.21 +    for (ea = 0; ea < cpu_caches.isize; ea += cpu_caches.iline_size)
    1.22 +        icbi(ea);
    1.23  
    1.24      sync();
    1.25  
    1.26      hid1.bits.en_icbi = 0;
    1.27      mthid1(hid1.word);
    1.28  
    1.29 -    local_irq_save(flags);
    1.30 +    local_irq_restore(flags);
    1.31  }
    1.32  
    1.33