# HG changeset patch # User Jimi Xenidis # Date 1157125371 14400 # Node ID ae7a722b724179c60ac09ad3c0b33980951c7eb2 # Parent f9cff914806845066efb6eaceb823e61047ddcb5 [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 Signed-off-by: Hollis Blanchard diff -r f9cff9148068 -r ae7a722b7241 xen/arch/powerpc/powerpc64/exceptions.S --- a/xen/arch/powerpc/powerpc64/exceptions.S Thu Aug 31 17:47:11 2006 -0400 +++ b/xen/arch/powerpc/powerpc64/exceptions.S Fri Sep 01 11:42:51 2006 -0400 @@ -115,6 +115,9 @@ 1: mfspr r0, SPRN_HSPRG1 std r0, UREGS_r13(r1) /* save R13 from HSPRG1 */ + /* Blow away any reservation according to 970 errata after saving CR */ + stdcx. r1, 0, r1 + /* done with processor_area; re-enable MSR:RI */ mfmsr r0 ori r0, r0, MSR_RI@l