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
-  Lines: 16
-  Date:
2003-06-13 07:51:38.000000000 -0700
-  Orig file: 
linux-2.4.20/include/asm-x86_64/spinlock.h
-  Orig date: 
2002-11-28 15:53:15.000000000 -0800
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)