Subject: CVS commit: [netbsd-1-6] src/sys/arch/macppc/dev
To: None <source-changes@netbsd.org>
From: grant beattie <grant@netbsd.org>
List: source-changes
Date: 06/24/2003 10:07:48
Module Name:	src
Committed By:	grant
Date:		Tue Jun 24 10:07:48 UTC 2003

Modified Files:
	src/sys/arch/macppc/dev [netbsd-1-6]: ofb.c

Log Message:
Pull up revisions 1.29-1.30, 1.33 (requested by briggs in ticket #1274):

Update OFB_ENABLE_CACHE to search for a empty bat that does not
conflict the USER_SR or one of the kernel SRs.

for ofb_enable_cache, turn on the BAT_M bit as well to prevent
the framebuffer from getting scrambled on MP systems.

Initialize the framebuffer BAT with BAT_G, too.  This marks the region
as (G)uarded, protecting it from the processor being too aggressive in
reordering and prefetching.  This allows OFB_ENABLE_CACHE to work on my
Powerbook G4.


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.26.6.1 src/sys/arch/macppc/dev/ofb.c

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