Decrease the amount of memory allocated for bouncing. This will

allow large systems to boot successfully with bounce buffers compiled
in.  We are now limiting bounce space to 512K.  The 8MB allocated for
a 512MB system is very bogus -- and that is now fixed.
This commit is contained in:
John Dyson 1997-04-13 04:07:24 +00:00
parent aec17d5078
commit f39aebddfc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24852
2 changed files with 6 additions and 2 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.235 1997/04/07 06:45:13 peter Exp $
* $Id: machdep.c,v 1.236 1997/04/07 07:15:50 peter Exp $
*/
#include "npx.h"
@ -300,6 +300,8 @@ cpu_startup(dummy)
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);

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.235 1997/04/07 06:45:13 peter Exp $
* $Id: machdep.c,v 1.236 1997/04/07 07:15:50 peter Exp $
*/
#include "npx.h"
@ -300,6 +300,8 @@ cpu_startup(dummy)
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);