Sync with sys/i386/i386/machdep.c revision 1.283.
This commit is contained in:
parent
86fb910326
commit
19eba5818f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32729
@ -35,7 +35,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||||
* $Id: machdep.c,v 1.69 1998/01/12 15:38:51 kato Exp $
|
* $Id: machdep.c,v 1.70 1998/01/24 03:15:37 kato Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "apm.h"
|
#include "apm.h"
|
||||||
@ -315,7 +315,7 @@ cpu_startup(dummy)
|
|||||||
if( physmem > 1024)
|
if( physmem > 1024)
|
||||||
nbuf += min((physmem - 1024) / 8, 2048);
|
nbuf += min((physmem - 1024) / 8, 2048);
|
||||||
}
|
}
|
||||||
nswbuf = max(min(nbuf/4, 128), 16);
|
nswbuf = max(min(nbuf/4, 64), 16);
|
||||||
|
|
||||||
valloc(swbuf, struct buf, nswbuf);
|
valloc(swbuf, struct buf, nswbuf);
|
||||||
valloc(buf, struct buf, nbuf);
|
valloc(buf, struct buf, nbuf);
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||||
* $Id: machdep.c,v 1.69 1998/01/12 15:38:51 kato Exp $
|
* $Id: machdep.c,v 1.70 1998/01/24 03:15:37 kato Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "apm.h"
|
#include "apm.h"
|
||||||
@ -315,7 +315,7 @@ cpu_startup(dummy)
|
|||||||
if( physmem > 1024)
|
if( physmem > 1024)
|
||||||
nbuf += min((physmem - 1024) / 8, 2048);
|
nbuf += min((physmem - 1024) / 8, 2048);
|
||||||
}
|
}
|
||||||
nswbuf = max(min(nbuf/4, 128), 16);
|
nswbuf = max(min(nbuf/4, 64), 16);
|
||||||
|
|
||||||
valloc(swbuf, struct buf, nswbuf);
|
valloc(swbuf, struct buf, nswbuf);
|
||||||
valloc(buf, struct buf, nbuf);
|
valloc(buf, struct buf, nbuf);
|
||||||
|
Loading…
Reference in New Issue
Block a user