Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2003 17:54:04 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28111 for review
Message-ID:  <200304050154.h351s4lw090887@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28111

Change 28111 by peter@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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304050154.h351s4lw090887>