-/* $OpenBSD: locore.s,v 1.10 1997/02/04 01:31:34 kstailey Exp $ */
+/* $OpenBSD: locore.s,v 1.11 1997/02/10 12:24:37 downsj Exp $ */
/* $NetBSD: locore.s,v 1.40 1996/11/06 20:19:54 cgd Exp $ */
/*
*/
#include <machine/asm.h>
-/* XXX copypage(fromaddr, toaddr) */
-
/*
* non-local gotos
*/
-/* $OpenBSD: pmap.c,v 1.7 1997/01/16 04:04:31 kstailey Exp $ */
+/* $OpenBSD: pmap.c,v 1.8 1997/02/10 12:24:40 downsj Exp $ */
/* $NetBSD: pmap.c,v 1.64 1996/11/20 18:57:35 gwr Exp $ */
/*-
set_pte(tmp_vpages[0], pte);
pte = PG_PERM | PA_PGNUM(dst);
set_pte(tmp_vpages[1], pte);
- bcopy((char *) tmp_vpages[0], (char *) tmp_vpages[1], NBPG);
+ copypage((char *) tmp_vpages[0], (char *) tmp_vpages[1]);
set_pte(tmp_vpages[0], PG_INVAL);
set_pte(tmp_vpages[0], PG_INVAL);
/* All mappings to vmp_vpages are non-cached, so no flush. */
pte = PG_PERM | PA_PGNUM(pa);
set_pte(tmp_vpages[0], pte);
- bzero((char *) tmp_vpages[0], NBPG);
+ zeropage((char *) tmp_vpages[0]);
set_pte(tmp_vpages[0], PG_INVAL);
tmp_vpages_inuse--;