Subject: Kernel Bug with programming VIDC20 registers ?
To: None <port-arm32@netbsd.org>
From: Peter Teichmann <teich-p@Rcs1.urz.tu-dresden.de>
List: port-arm32
Date: 02/23/1999 22:06:07
Hi,

because of upgrading to 2MB VRAM I found that in the kernel source file
src/sys/arch/arm32/vidc/console/vidcconsole.c there is a bug from line
504 onwards. Now it is:

		if (dispsize > 1024*1024) {
			if (vidc_currentmode->hder >= 1024)
 				vidc_write(VIDC_CONREG, 7<<8 | bpp_mask<<5);
			else
				vidc_write(VIDC_CONREG, 6<<8 | bpp_mask<<5);
		} else {
			vidc_write(VIDC_CONREG, 7<<8 | bpp_mask<<5);
		}

But it should be (I do not know why but after that all worked fine for me):

		if (dispsize > 1024*1024) {
			vidc_write(VIDC_CONREG, 6<<8 | bpp_mask<<5);
		} else {
			vidc_write(VIDC_CONREG, 7<<8 | bpp_mask<<5);
		}
		
-- 
Peter Teichmann

----------------------------------------------------------------------------
Email: teich-p@rcs.urz.tu-dresden.de  WWW: rcswww.urz.tu-dresden.de/~teich-p