--- gendef.original	2007-08-09 12:56:07.428714500 -0400
+++ gendef	2007-08-09 12:56:43.288089500 -0400
@@ -158,9 +158,9 @@
 	xorl	%edx,%edx
 	xchgl	%edx,-4(%eax)				# get return address from signal stack
 	xchgl	%edx,8(%esp)				# restore edx/real return address
+	decl	$tls::incyg(%ebx)
 	decl	$tls::stacklock(%ebx)			# release lock
 	popl	%eax
-	decl	$tls::incyg(%ebx)
 	popl	%ebx
 	ret
 
