From d4ab62f3a7051b40f9488a77b0b6957a7c3b4132 Mon Sep 17 00:00:00 2001 From: downsj Date: Mon, 10 Feb 1997 12:24:37 +0000 Subject: [PATCH] Use copypage and zeropage. --- sys/arch/sun3/sun3/locore.s | 4 +--- sys/arch/sun3/sun3/pmap.c | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sys/arch/sun3/sun3/locore.s b/sys/arch/sun3/sun3/locore.s index b843b27e54e..3f81db4444e 100644 --- a/sys/arch/sun3/sun3/locore.s +++ b/sys/arch/sun3/sun3/locore.s @@ -1,4 +1,4 @@ -/* $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 $ */ /* @@ -800,8 +800,6 @@ _esigcode: */ #include -/* XXX copypage(fromaddr, toaddr) */ - /* * non-local gotos */ diff --git a/sys/arch/sun3/sun3/pmap.c b/sys/arch/sun3/sun3/pmap.c index f052dd84b6b..030c1fe34fe 100644 --- a/sys/arch/sun3/sun3/pmap.c +++ b/sys/arch/sun3/sun3/pmap.c @@ -1,4 +1,4 @@ -/* $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 $ */ /*- @@ -3159,7 +3159,7 @@ pmap_copy_page(src, dst) 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); @@ -3194,7 +3194,7 @@ pmap_zero_page(pa) /* 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--; -- 2.20.1