From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 12 12:25:19 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32A49106566B for ; Mon, 12 Jul 2010 12:25:19 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay011.isp.belgacom.be (mailrelay011.isp.belgacom.be [195.238.6.178]) by mx1.freebsd.org (Postfix) with ESMTP id C17A38FC1E for ; Mon, 12 Jul 2010 12:25:18 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAD+mOkxbsdUq/2dsb2JhbACgOHK9P4J7AYIrBA Received: from 42.213-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.213.42]) by relay.skynet.be with ESMTP; 12 Jul 2010 14:25:16 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.4/8.14.4) with ESMTP id o6CCPE8L004078; Mon, 12 Jul 2010 14:25:14 +0200 (CEST) (envelope-from tijl@coosemans.org) From: Tijl Coosemans To: "Sam Fourman Jr." Date: Mon, 12 Jul 2010 14:25:13 +0200 User-Agent: KMail/1.13.3 (FreeBSD/8.1-PRERELEASE; KDE/4.4.4; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_pmwOMDgZ36mswJq" Message-Id: <201007121425.13561.tijl@coosemans.org> Cc: freebsd-hackers@freebsd.org Subject: Re: kernel patch needed for wine? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2010 12:25:19 -0000 --Boundary-00=_pmwOMDgZ36mswJq Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 > > http://wiki.freebsd.org/Wine#head-6963d527c173e57b1567e881305b544d33435b6d > > 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 --Boundary-00=_pmwOMDgZ36mswJq Content-Type: text/plain; charset="iso-8859-1"; name="patch-amd64-dr7" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-amd64-dr7" 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 --Boundary-00=_pmwOMDgZ36mswJq--