From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5513 invoked from network); 21 Apr 1998 16:23:47 -0000 Received: from mx02.uni-tuebingen.de (root@134.2.3.12) by mail2.redhat.com with SMTP; 21 Apr 1998 16:23:47 -0000 Received: from ceres.tat.physik.uni-tuebingen.de (ceres.tat.physik.uni-tuebingen.de [134.2.170.12]) by mx02.uni-tuebingen.de (8.8.8/8.8.8) with ESMTP id SAA32382; Tue, 21 Apr 1998 18:23:26 +0200 Received: (from koenig@localhost) by ceres.tat.physik.uni-tuebingen.de (8.8.8/8.8.8) id SAA12707; Tue, 21 Apr 1998 18:23:26 +0200 (MES) Received: (from root@localhost) by turtle.tat.physik.uni-tuebingen.de (8.8.8/8.8.5) id RAA04825; Tue, 21 Apr 1998 17:19:46 +0200 Message-ID: <19980421171946.39004@tat.physik.uni-tuebingen.de> Date: Tue, 21 Apr 1998 17:19:46 +0200 From: Harald Koenig To: axp-list@redhat.com Cc: AXP-XFree86 Subject: Re: X server bug on DIGITAL alpha References: <353AAEFB.A74F560A@voicenet.com> <199804200244.WAA15361@lacrosse.redhat.com> <353C8C26.2C79A9D2@voicenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <353C8C26.2C79A9D2@voicenet.com>; from Uncle George on Tue, Apr 21, 1998 at 08:08:07AM -0400 X-fingerprint: 3B CD 5A A9 73 44 DD 04 A0 4E A0 34 20 7B 1E 38 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 ^^^^^ ^^^^^