# HG changeset patch
# User Jimi Xenidis <[EMAIL PROTECTED]>
# Node ID e79db5ceaa18474ee9a2a60734e64b9ee551e501
# Parent  033d5a33092daee41320e74dd8d8d8fddffe15dc
[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."
---
 xen/arch/powerpc/powerpc64/exceptions.S |    3 +++
 1 files changed, 3 insertions(+)

diff -r 033d5a33092d -r e79db5ceaa18 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
@@ -114,6 +114,9 @@ 1:
     stw r0, UREGS_cr(r1)            /* save CR */
     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

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to