From c2df7dfe258a5f9bc4d29e1a3ce9e930422cb17e Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 12 Jul 1996 07:18:12 +0000 Subject: Removed "optimization" using gcc's builtin memcpy instead of bcopy. There is little difference now since the amount copied is large, and bcopy will become much faster on some machines. --- sys/amd64/amd64/pmap.c | 7 ++----- sys/i386/i386/pmap.c | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'sys') diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index d016355..6dbffd1 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.107 1996/06/25 00:39:21 dyson Exp $ + * $Id: pmap.c,v 1.108 1996/06/26 05:05:52 dyson Exp $ */ /* @@ -2087,11 +2087,8 @@ pmap_copy_page(src, dst) *(int *) CMAP1 = PG_V | PG_RW | (src & PG_FRAME); *(int *) CMAP2 = PG_V | PG_RW | (dst & PG_FRAME); -#if __GNUC__ > 1 - memcpy(CADDR2, CADDR1, PAGE_SIZE); -#else bcopy(CADDR1, CADDR2, PAGE_SIZE); -#endif + *(int *) CMAP1 = 0; *(int *) CMAP2 = 0; pmap_update_2pg( (vm_offset_t) CADDR1, (vm_offset_t) CADDR2); diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index d016355..6dbffd1 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.107 1996/06/25 00:39:21 dyson Exp $ + * $Id: pmap.c,v 1.108 1996/06/26 05:05:52 dyson Exp $ */ /* @@ -2087,11 +2087,8 @@ pmap_copy_page(src, dst) *(int *) CMAP1 = PG_V | PG_RW | (src & PG_FRAME); *(int *) CMAP2 = PG_V | PG_RW | (dst & PG_FRAME); -#if __GNUC__ > 1 - memcpy(CADDR2, CADDR1, PAGE_SIZE); -#else bcopy(CADDR1, CADDR2, PAGE_SIZE); -#endif + *(int *) CMAP1 = 0; *(int *) CMAP2 = 0; pmap_update_2pg( (vm_offset_t) CADDR1, (vm_offset_t) CADDR2); -- cgit v1.1