[PATCH]: Fix GLX crashes on RISC cpus.

Xavier Bestel xavier.bestel at free.fr
Thu Dec 27 00:35:45 PST 2007


Le jeudi 27 décembre 2007 à 07:43 +0000, Daniel Stone a écrit :
> On Wed, Dec 26, 2007 at 10:44:21PM -0800, David Miller wrote:
> > RISC chips that trap on unaligned loads and stores need to
> > define __GLX_ALIGN64.  This used to get added to the cflags
> > in the old *.cf files but it no longer does in the modular
> > X server.
> 
> This is the wrong approach for modular; instead of hardcoding a list of
> CPUs that throw errors on unaligned accesses, you could just check
> whether or not unaligned accesses work.

Beware, not all archs generate a trap on unaligned access. Some have
weird (uncorrectable) failure modes.

	Xav





More information about the xorg mailing list