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.
This commit is contained in:
Bruce Evans 1996-07-12 07:18:12 +00:00
parent 82ffff7ab3
commit 73571d2d9e
2 changed files with 4 additions and 10 deletions

View File

@ -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);

View File

@ -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);