patch-2.0.23 linux/include/asm-i386/semaphore.h

Next file: linux/include/linux/pci.h
Previous file: linux/drivers/scsi/aic7xxx_reg.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.22/linux/include/asm-i386/semaphore.h linux/include/asm-i386/semaphore.h
@@ -38,10 +38,10 @@
 #ifdef __SMP__
 		"lock ; "
 #endif
-		"decl %0\n\t"
+		"decl 0(%0)\n\t"
 		"js " SYMBOL_NAME_STR(down_failed)
 		:/* no outputs */
-		:"m" (sem->count), "c" (sem)
+		:"c" (sem)
 		:"ax","dx","memory");
 }
 
@@ -59,11 +59,11 @@
 #ifdef __SMP__
 		"lock ; "
 #endif
-		"incl %0\n\t"
+		"incl 0(%0)\n\t"
 		"jle " SYMBOL_NAME_STR(up_wakeup)
 		"\n1:"
 		:/* no outputs */
-		:"m" (sem->count), "c" (sem)
+		:"c" (sem)
 		:"ax", "dx", "memory");
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov