ia64/xen-unstable

changeset 12929:24fd59787982

[XEN][POWERPC] Flush all of text per CPU in case the loader did not
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 11:06:10 2006 -0400 (2006-10-02)
parents 6ff313c841db
children 1c996041fcde
files xen/arch/powerpc/powerpc64/exceptions.S
line diff
     1.1 --- a/xen/arch/powerpc/powerpc64/exceptions.S	Mon Oct 02 11:04:00 2006 -0400
     1.2 +++ b/xen/arch/powerpc/powerpc64/exceptions.S	Mon Oct 02 11:06:10 2006 -0400
     1.3 @@ -564,6 +564,18 @@ 1:
     1.4   */	
     1.5      .globl spin_start
     1.6  spin_start:
     1.7 +
     1.8 +    /* Do a cache flush for our text, in case the loader didn't */
     1.9 +    LOADADDR(r9, _start)
    1.10 +    LOADADDR(r8, _etext)
    1.11 +4:  dcbf r0,r9
    1.12 +    icbi r0,r9
    1.13 +    addi r9,r9,0x20		/* up to a 4 way set per line */
    1.14 +    cmpld cr0,r9,r8
    1.15 +    blt	4b
    1.16 +    sync
    1.17 +    isync
    1.18 +
    1.19      /* Write our processor number as an acknowledgment that we're alive.  */
    1.20      LOADADDR(r14, __spin_ack)
    1.21      stw r3, 0(r14)