patch-1.3.73 linux/include/asm-i386/irq.h

Next file: linux/include/asm-i386/smp.h
Previous file: linux/include/asm-alpha/stat.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.72/linux/include/asm-i386/irq.h linux/include/asm-i386/irq.h
@@ -151,6 +151,7 @@
 	"pushfl\n\t" \
 	"cli\n\t" \
 	GET_PROCESSOR_ID \
+	"btsl $" STR(SMP_FROM_INT) ","SYMBOL_NAME_STR(smp_proc_in_lock)"(,%eax,4)\n\t" \
 	"1: " \
 	"lock\n\t" \
 	"btsl $0, "SYMBOL_NAME_STR(kernel_flag)"\n\t" \
@@ -178,6 +179,8 @@
 	"popl %eax\n\t"
 
 #define	LEAVE_KERNEL \
+	GET_PROCESSOR_ID \
+	"btrl $" STR(SMP_FROM_INT) ","SYMBOL_NAME_STR(smp_proc_in_lock)"(,%eax,4)\n\t" \
 	"pushfl\n\t" \
 	"cli\n\t" \
 	"decl "SYMBOL_NAME_STR(kernel_counter)"\n\t" \
@@ -290,6 +293,8 @@
 	"addl $8,%esp\n\t" \
 	"cli\n\t" \
 	UNBLK_##chip(mask) \
+	GET_PROCESSOR_ID \
+	"btrl $" STR(SMP_FROM_INT) ","SYMBOL_NAME_STR(smp_proc_in_lock)"(,%eax,4)\n\t" \
 	"decl "SYMBOL_NAME_STR(intr_count)"\n\t" \
 	"incl "SYMBOL_NAME_STR(syscall_count)"\n\t" \
 	"jmp ret_from_sys_call\n" \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this