patch-2.4.18 linux/include/asm-i386/spinlock.h
Next file: linux/include/asm-i386/timex.h
Previous file: linux/include/asm-i386/softirq.h
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Thu Jan 10 20:08:20 2002
- Orig file:
linux.orig/include/asm-i386/spinlock.h
- Orig date:
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/include/asm-i386/spinlock.h linux/include/asm-i386/spinlock.h
@@ -5,6 +5,7 @@
#include <asm/rwlock.h>
#include <asm/page.h>
#include <linux/config.h>
+#include <linux/stringify.h>
extern int printk(const char * fmt, ...)
__attribute__ ((format (printf, 1, 2)));
@@ -56,13 +57,16 @@
"\n1:\t" \
"lock ; decb %0\n\t" \
"js 2f\n" \
- ".section .text.lock,\"ax\"\n" \
+ ".subsection 1\n" \
+ ".ifndef _text_lock_" __stringify(KBUILD_BASENAME) "\n" \
+ "_text_lock_" __stringify(KBUILD_BASENAME) ":\n" \
+ ".endif\n" \
"2:\t" \
"cmpb $0,%0\n\t" \
"rep;nop\n\t" \
"jle 2b\n\t" \
"jmp 1b\n" \
- ".previous"
+ ".subsection 0\n"
/*
* 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)