On Oct 30, 2008, at 17:43 , Steven M. Bellovin wrote:
On Tue, 28 Oct 2008 07:17:36 -0400 "Jared D. McNeill" <jmcneill%invisible.ca@localhost> wrote:The patch from this PR ought to do the trick: http://gnats.netbsd.org/39299 Cheers, JaredWorking nicely for me, too. Is there a corresponding fix (or a corresponding fix needed) for amd64?
I had the same jumping mouse problem with Gnome on amd64. The patch below is (afaict) the amd64 equivalent of the patch from PR 39299 and it fixes the problem for me.
RCS file: /cvsroot/src/sys/arch/amd64/amd64/machdep.c,v retrieving revision 1.102 diff -c -r1.102 machdep.c*** sys/arch/amd64/amd64/machdep.c 21 Oct 2008 15:46:32 -0000 1.102
--- sys/arch/amd64/amd64/machdep.c 30 Oct 2008 23:49:08 -0000 *************** *** 616,621 **** --- 616,625 ---- buildcontext(l, catcher, fp); + /* make sure we get a clean FPU */ + fpusave_lwp(l, 0); + l->l_md.md_flags &= ~MDP_USEDFPU; + tf->tf_rdi = sig; tf->tf_rsi = (uint64_t)&fp->sf_si; tf->tf_rdx = tf->tf_r15 = (uint64_t)&fp->sf_uc; -- aew
Attachment:
PGP.sig
Description: This is a digitally signed message part