Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 12/20/1998 22:58:41
Module Name:	src
Committed By:	thorpej
Date:		Mon Dec 21 06:58:40 UTC 1998

Modified Files:
	src/sys/arch/hp300/hp300: pmap.c
Log Message:
Improve pmap_copy_page() and pmap_zero_page().  Don't use pmap_enter()/
pmap_remove() for the temporary addresses.  This is completely unnecessary
as the temps are used ONLY for these routines, and we have better control
over the mapping by manipulating the PTE ourself.  On VAC systems, cache-
inhibit the mapping to prevent wasting a cache load.

These routines are now significantly faster.

Add a DIAGNOSTIC check in pmap_enter() for kernel pmap and (CADDR1 or CADDR2);
nothing should be adding mappings there via that interface.