[PATCH libXi] Fix bus error on MIPS N32 for bug #38331.

Michał Masłowski mtjm at mtjm.eu
Mon Feb 20 14:12:52 PST 2012


> This is issue is by no means MIPS N32-specific.  Most 32-bit
> architectures will suffer from the same issue.  A very similar issue
> popped up in the xserver/test/xinput.c, where we eventually settled
> for assuming double-alignment on all platforms except __i386__ and
> __sh__.

I don't have any experience with other architectures requiring 64-bit
alignment of doubles (the ones I know about have 64-bit longs or
pointers so they wouldn't have this problem) and I wanted to avoid
adding the padding when it's not needed.

> It probably is best to use "sizeof(double)" instead of "8" since that
> is a bit more xpressive.

I'll change the patch to fix both of these problems and align also in
case of XIScrollClassInfo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120220/90da9662/attachment.pgp>


More information about the xorg-devel mailing list