NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/47129: mouse won't move diagonally in i386 X11 on amd64 kernel
The following reply was made to PR bin/47129; it has been noted by GNATS.
From: David Laight <david%l8s.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
apb%cequrux.com@localhost
Subject: Re: bin/47129: mouse won't move diagonally in i386 X11 on amd64 kernel
Date: Sun, 28 Oct 2012 15:10:28 +0000
On Sat, Oct 27, 2012 at 05:45:03PM +0000, Alan Barrett wrote:
>
> This problem is traceable to the change in struct timespec between i386
> and amd64. struct timespec is embedded in struct wscons_event, which
> is used for data read from the mouse. struct timespec contains "long
> tv_nsec", which is 32 bits on i386, and 64 bits on amd64. (Defining
> tv_nsec as long doesn't really make sense, because there is no need to
> represent values larger than 1000000000, so 32 bits would have been
> plenty, but POSIX specifies long and NetBSD apparently chose not to
> deviate from POSIX here.)
That wouldn't have helped, the 'seconds' part is 64bit, so the amd64
timespec would contain 4 bytes of padding - total 16 bytes.
The i386 one is 12 bytes.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index