From b16c1414fa568181adb08dee25a339fa0d353192 Mon Sep 17 00:00:00 2001 From: kstailey Date: Fri, 14 Feb 1997 23:01:04 +0000 Subject: [PATCH] back out Jason's copypage/zeropage() change --- sys/arch/sun3/sun3/pmap.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/arch/sun3/sun3/pmap.c b/sys/arch/sun3/sun3/pmap.c index 4e4b8406584..4c998e859ae 100644 --- a/sys/arch/sun3/sun3/pmap.c +++ b/sys/arch/sun3/sun3/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.10 1997/02/14 20:54:00 kstailey Exp $ */ +/* $OpenBSD: pmap.c,v 1.11 1997/02/14 23:01:04 kstailey Exp $ */ /* $NetBSD: pmap.c,v 1.64 1996/11/20 18:57:35 gwr Exp $ */ /*- @@ -3159,7 +3159,11 @@ pmap_copy_page(src, dst) set_pte(tmp_vpages[0], pte); pte = PG_PERM | PA_PGNUM(dst); set_pte(tmp_vpages[1], pte); +#ifdef notyet copypage((char *) tmp_vpages[0], (char *) tmp_vpages[1]); +#else + bcopy((char *) tmp_vpages[0], (char *) tmp_vpages[1], NBPG); +#endif set_pte(tmp_vpages[0], PG_INVAL); set_pte(tmp_vpages[0], PG_INVAL); @@ -3194,7 +3198,11 @@ 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); +#ifdef notyet zeropage((char *) tmp_vpages[0]); +#else + bzero((char *) tmp_vpages[0], NBPG); +#endif set_pte(tmp_vpages[0], PG_INVAL); tmp_vpages_inuse--; -- 2.20.1