Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: bugs@redhat.com
Cc: "axp-list@redhat.com" <axp-list@redhat.com>, xbugs@x.org
Subject: X server bug on DIGITAL alpha
Date: Tue, 21 Apr 1998 08:08:07 -0400	[thread overview]
Message-ID: <353C8C26.2C79A9D2@voicenet.com> (raw)
In-Reply-To: 199804200244.WAA15361@lacrosse.redhat.com

in XFree86-3.3.1/xc/programs/Xserver/cfb32/cfb8segC.c there is a statement

    RROP_SOLID_MASK(( unsigned long *) addrp, e )

on my alpha addrp = PixelType * which equals a CARD32 * which equals to an
unsigned int *

UNFORTUNATELY, when u cast addrp to a long pointer, the macro RROP_SOLID_MASK,
will try to fetch
it as a long pointer ( ie get 8 bytes of a long value ). Thats ok, except that u
get an alignment fault when the address
doesn't point to an aligned long address, as it was in my case when the last
nibble of the addr was a 4.

i SUSPECT u want to keep the 32'ness of the addrp, and really don't want to go a
64 bit long pointer.

ergo use:
      RROP_SOLID_MASK(( unsigned int *) addrp, e )

or better yet, if u have the typedef:
   RROP_SOLID_MASK(( unsigned long32 *) addrp, e )
            or
   RROP_SOLID_MASK(( unsigned int32 *) addrp, e )




gat





  parent reply	other threads:[~1998-04-21 12:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-20  2:12 Debugging X server Uncle George
1998-04-20  3:35 ` Christopher Curtis
1998-04-20  5:06 ` adisaacs
1998-04-20  7:24   ` Harald Koenig
     [not found] ` <199804200244.WAA15361@lacrosse.redhat.com>
1998-04-21 12:08   ` Uncle George [this message]
1998-04-21 15:19     ` X server bug on DIGITAL alpha Harald Koenig
1998-04-21 18:59     ` Michal Jaegermann
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox