diff options
author | bde <bde@FreeBSD.org> | 1996-07-12 07:18:12 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-07-12 07:18:12 +0000 |
commit | c2df7dfe258a5f9bc4d29e1a3ce9e930422cb17e (patch) | |
tree | 07175a28feccc8bb50799f31e4dbd9cdfbdaf9c7 | |
parent | df4f98193953579258bd0eac73b14bb72ff52c14 (diff) | |
download | FreeBSD-src-c2df7dfe258a5f9bc4d29e1a3ce9e930422cb17e.zip FreeBSD-src-c2df7dfe258a5f9bc4d29e1a3ce9e930422cb17e.tar.gz |
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.
-rw-r--r-- | sys/amd64/amd64/pmap.c | 7 | ||||
-rw-r--r-- | sys/i386/i386/pmap.c | 7 |
2 files changed, 4 insertions, 10 deletions
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); |