Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
To: axp-list@redhat.com
Cc: AXP-XFree86 <axp@XFree86.Org>
Subject: Re: X server bug on DIGITAL alpha
Date: Tue, 21 Apr 1998 17:19:46 +0200	[thread overview]
Message-ID: <19980421171946.39004@tat.physik.uni-tuebingen.de> (raw)
In-Reply-To: <353C8C26.2C79A9D2@voicenet.com>; from Uncle George on Tue, Apr 21, 1998 at 08:08:07AM -0400

On Apr 21, Uncle George wrote:

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

XFree86 3.3.2 still looks the same:(

>     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 )


this typedef already exists and is called `CARD32', so I'd suggest using

	RROP_SOLID_MASK(( CARD32 *) addrp, e )

which looks reasonable to me...


Harald
--
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^


  reply	other threads:[~1998-04-21 16:23 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   ` X server bug on DIGITAL alpha Uncle George
1998-04-21 15:19     ` Harald Koenig [this message]
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