From owner-freebsd-ppc@FreeBSD.ORG Sun Mar 22 20:18:31 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1897E106566B for ; Sun, 22 Mar 2009 20:18:31 +0000 (UTC) (envelope-from jrh29@alumni.cwru.edu) Received: from beta.eecs.cwru.edu (beta.eecs.cwru.edu [129.22.150.110]) by mx1.freebsd.org (Postfix) with ESMTP id C62298FC0A for ; Sun, 22 Mar 2009 20:18:30 +0000 (UTC) (envelope-from jrh29@alumni.cwru.edu) Received: from narn.knownspace ([::ffff:69.250.50.210]) (AUTH: PLAIN jrh29, TLS: TLSv1/SSLv3,168bits,DES-CBC3-SHA) by beta.eecs.cwru.edu with esmtp; Sun, 22 Mar 2009 16:18:29 -0400 id 000091CD.49C69D15.00000689 Date: Sun, 22 Mar 2009 16:19:10 -0400 From: Justin Hibbits To: freebsd-ppc@freebsd.org Message-ID: <20090322201910.GB3708@narn.knownspace> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Mouse jumps to left in Xorg X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2009 20:18:31 -0000 When I move the mouse over some threshold, it gets locked to either the left or the top of the screen in X. Killing X fixes this, and I'm able to move the mouse slowly around the screen, but moving it at a "normal" rate after it gets stuck warps it back to its stuck side. I've googled for solutions to this, and it appears the problem is that the FPU state isn't saved and/or restored correctly when entering/leaving the signal handler for SIGIO. Reading through the code in powerpc/aim/machdep.c, line 498 contains the comments: /* * Save the floating-point state, if necessary, then copy it. */ /* XXX */ which I assume means it's to be done. I don't know the signal handler code well enough to implement this, but I can test any patch for this. - Justin