kernel patch needed for wine?

Tijl Coosemans tijl at
Mon Jul 12 12:25:19 UTC 2010

On Wednesday 30 June 2010 01:54:11 Sam Fourman Jr. wrote:
> Last Tuesday blizzard release World of Warcraft 3.3.5, and with this
> patch World of warcraft stopped working in FreeBSD 8.1 amd64, it
> crashes right after login.
> I have been playing World of Warcraft on FreeBSD amd64 since December
> of 2009 using the beta Nvidia 64bit drivers and this wine how-to
> I can verify that on PCBSD 8.1 RC1 32bit World of warcraft works post
> 3.3.5 so far as I can tell it is only broken on amd64.

Could you give the attached patch a try?

cd /usr/src
patch -p1 < /path/to/patch-amd64-dr7
make buildkernel installkernel
-------------- next part --------------
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S
index cfb4204..6b5c663 100644
--- a/sys/amd64/amd64/cpu_switch.S
+++ b/sys/amd64/amd64/cpu_switch.S
@@ -243,13 +243,13 @@ store_dr:
 	movq	%dr2,%r13
 	movq	%dr3,%r12
 	movq	%dr6,%r11
-	andq	$0x0000fc00, %rax		/* disable all watchpoints */
 	movq	%r15,PCB_DR0(%r8)
 	movq	%r14,PCB_DR1(%r8)
 	movq	%r13,PCB_DR2(%r8)
 	movq	%r12,PCB_DR3(%r8)
 	movq	%r11,PCB_DR6(%r8)
 	movq	%rax,PCB_DR7(%r8)
+	andq	$0x0000fc00, %rax		/* disable all watchpoints */
 	movq	%rax,%dr7
 	jmp	done_store_dr

More information about the freebsd-hackers mailing list