patch-2.4.21 linux-2.4.21/include/asm-x86_64/spinlock.h

Next file: linux-2.4.21/include/asm-x86_64/system.h
Previous file: linux-2.4.21/include/asm-x86_64/softirq.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/include/asm-x86_64/spinlock.h linux-2.4.21/include/asm-x86_64/spinlock.h
@@ -57,13 +57,13 @@
 	"\n1:\t" \
 	"lock ; decb %0\n\t" \
 	"js 2f\n" \
-	".section .text.lock,\"ax\"\n" \
+	LOCK_SECTION_START("") \
 	"2:\t" \
 	"cmpb $0,%0\n\t" \
 	"rep;nop\n\t" \
 	"jle 2b\n\t" \
 	"jmp 1b\n" \
-	".previous"
+	LOCK_SECTION_END
 
 /*
  * This works. Despite all the confusion.

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