patch-2.4.21 linux-2.4.21/arch/ppc/lib/locks.c

Next file: linux-2.4.21/arch/ppc/lib/strcase.c
Previous file: linux-2.4.21/arch/ppc/lib/div64.S
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/ppc/lib/locks.c linux-2.4.21/arch/ppc/lib/locks.c
@@ -1,7 +1,4 @@
 /*
- * BK Id: %F% %I% %G% %U% %#%
- */
-/*
  * Locks for smp ppc 
  * 
  * Written by Cort Dougan (cort@cs.nmt.edu)
@@ -35,8 +32,9 @@
 	__asm__ __volatile__ ("\n\
 1:	lwarx	%0,0,%1\n\
 	cmpwi	0,%0,0\n\
-	bne	2f\n\
-	stwcx.	%2,0,%1\n\
+	bne	2f\n"
+	PPC405_ERR77(0,%1)
+"	stwcx.	%2,0,%1\n\
 	bne-	1b\n\
 	isync\n\
 2:"

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)