direct-io.hg

changeset 11489:ae7a722b7241

[POWERPC][XEN] Erratum: Must clear larx/stcx reservation on exception

PowerPC 970 Erratum that an "OS should execute a stcx in
the interrupt handler to clear the reservation."

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 Fri Sep 01 11:42:51 2006 -0400 (2006-09-01)
parents f9cff9148068
children b82a8107cae6
files xen/arch/powerpc/powerpc64/exceptions.S
line diff
     1.1 --- a/xen/arch/powerpc/powerpc64/exceptions.S	Thu Aug 31 17:47:11 2006 -0400
     1.2 +++ b/xen/arch/powerpc/powerpc64/exceptions.S	Fri Sep 01 11:42:51 2006 -0400
     1.3 @@ -115,6 +115,9 @@ 1:
     1.4      mfspr r0, SPRN_HSPRG1
     1.5      std r0, UREGS_r13(r1)           /* save R13 from HSPRG1 */
     1.6  
     1.7 +    /* Blow away any reservation according to 970 errata after saving CR */
     1.8 +    stdcx. r1, 0, r1
     1.9 +
    1.10      /* done with processor_area; re-enable MSR:RI */ 
    1.11      mfmsr r0
    1.12      ori r0, r0, MSR_RI@l