Subject: CVS commit: xsrc/xfree/xc/programs/Xserver/hw/netbsd
To: None <source-changes@NetBSD.org>
From: Michael L. Hitch <mhitch@netbsd.org>
List: source-changes
Date: 10/13/2004 20:50:39
Module Name:	xsrc
Committed By:	mhitch
Date:		Wed Oct 13 20:50:39 UTC 2004

Modified Files:
	xsrc/xfree/xc/programs/Xserver/hw/netbsd/alpha/sfb: sfbwindow.c
	xsrc/xfree/xc/programs/Xserver/hw/netbsd/alpha/tga: tgawindow.c
	xsrc/xfree/xc/programs/Xserver/hw/netbsd/dec/sfb: sfbwindow.c
	xsrc/xfree/xc/programs/Xserver/hw/netbsd/dec/tga: tgawindow.c

Log Message:
The 4.4.0 import changed the REGION_INIT() macro and uses with NullBox
(which is a NULL pointer) cause a memory fault.  The XalphaNetBSD and
XdecNetBSD servers fail with a memory fault on an alpha with a TGA
video adapter.  Change REGION_INIT() to REGION_NULL() where used with
NullBox.  Both servers will now run on an alpha with a tga card.  The
sfb code has the same usage.  Not tested on a TurboChannel box, but
inspection of the generated code shows the same problem would occur.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 \
    xsrc/xfree/xc/programs/Xserver/hw/netbsd/alpha/sfb/sfbwindow.c
cvs rdiff -r1.1 -r1.2 \
    xsrc/xfree/xc/programs/Xserver/hw/netbsd/alpha/tga/tgawindow.c
cvs rdiff -r1.1 -r1.2 \
    xsrc/xfree/xc/programs/Xserver/hw/netbsd/dec/sfb/sfbwindow.c
cvs rdiff -r1.1 -r1.2 \
    xsrc/xfree/xc/programs/Xserver/hw/netbsd/dec/tga/tgawindow.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.