Use zeropage() in pmap_zero_page().
This commit is contained in:
parent
3f17e697bf
commit
94c399f00e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.5 1996/10/13 03:30:47 christos Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.6 1997/02/02 08:28:58 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -1715,7 +1715,7 @@ pmap_zero_page(phys)
|
||||
#endif
|
||||
kva = (vm_offset_t) CADDR1;
|
||||
pmap_enter(pmap_kernel(), kva, phys, VM_PROT_READ|VM_PROT_WRITE, TRUE);
|
||||
bzero((caddr_t)kva, NBPG);
|
||||
zeropage((caddr_t)kva);
|
||||
pmap_remove_mapping(pmap_kernel(), kva, PT_ENTRY_NULL,
|
||||
PRM_TFLUSH|PRM_CFLUSH);
|
||||
}
|
||||
@ -1750,7 +1750,7 @@ pmap_copy_page(src, dst)
|
||||
pmap_enter(pmap_kernel(), dkva, dst, VM_PROT_READ|VM_PROT_WRITE, TRUE);
|
||||
copypage((caddr_t)skva, (caddr_t)dkva);
|
||||
/* CADDR1 and CADDR2 are virtually contiguous */
|
||||
pmap_remove(pmap_kernel(), skva, skva+2*NBPG);
|
||||
pmap_remove(pmap_kernel(), skva, skva + (2 * NBPG));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user