mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Synchronize with sys/i386/i386/machdep.c revision 1.237.
This commit is contained in:
parent
f39aebddfc
commit
a6a8345e27
2 changed files with 6 additions and 2 deletions
|
|
@ -35,7 +35,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.34 1997/03/31 11:11:12 davidg Exp $
|
||||
* $Id: machdep.c,v 1.35 1997/04/07 11:00:45 kato Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
|
|
@ -311,6 +311,8 @@ again:
|
|||
if (bouncepages == 0) {
|
||||
bouncepages = 64;
|
||||
bouncepages += ((Maxmem - 4096) / 2048) * 32;
|
||||
if (bouncepages > 128)
|
||||
bouncepages = 128;
|
||||
}
|
||||
v = (caddr_t)((vm_offset_t)round_page(v));
|
||||
valloc(bouncememory, char, bouncepages * PAGE_SIZE);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.34 1997/03/31 11:11:12 davidg Exp $
|
||||
* $Id: machdep.c,v 1.35 1997/04/07 11:00:45 kato Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
|
|
@ -311,6 +311,8 @@ again:
|
|||
if (bouncepages == 0) {
|
||||
bouncepages = 64;
|
||||
bouncepages += ((Maxmem - 4096) / 2048) * 32;
|
||||
if (bouncepages > 128)
|
||||
bouncepages = 128;
|
||||
}
|
||||
v = (caddr_t)((vm_offset_t)round_page(v));
|
||||
valloc(bouncememory, char, bouncepages * PAGE_SIZE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue