mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
82ffff7ab3
commit
73571d2d9e
2 changed files with 4 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue