PERFORCE change 28111 for review

Peter Wemm peter at FreeBSD.org
Fri Apr 4 17:54:07 PST 2003


http://perforce.freebsd.org/chv.cgi?CH=28111

Change 28111 by peter at peter_daintree on 2003/04/04 17:53:28

	premature 64 bit update.. the calling conventions are wrong though.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/include/mutex.h#2 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/include/mutex.h#2 (text+ko) ====

@@ -56,20 +56,20 @@
  *	locks) in the near future, however.
  */
 #define MTX_LOCK_SPIN(lck, flags)					\
-	pushl $0 ;							\
-	pushl $0 ;							\
-	pushl $flags ;							\
-	pushl $lck ;							\
+	pushq $0 ;							\
+	pushq $0 ;							\
+	pushq $flags ;							\
+	pushq $lck ;							\
 	call _mtx_lock_spin_flags ;					\
-	addl $0x10, %esp ;						\
+	addl $0x20, %esp ;						\
 
 #define MTX_UNLOCK_SPIN(lck)						\
-	pushl $0 ;							\
-	pushl $0 ;							\
-	pushl $0 ;							\
-	pushl $lck ;							\
+	pushq $0 ;							\
+	pushq $0 ;							\
+	pushq $0 ;							\
+	pushq $lck ;							\
 	call _mtx_unlock_spin_flags ;					\
-	addl $0x10, %esp ;						\
+	addl $0x20, %esp ;						\
 
 #endif	/* !LOCORE */
 #endif	/* __MACHINE_MUTEX_H */


More information about the p4-projects mailing list