Deleted Added
full compact
machdep.c (48476) machdep.c (48544)
1/*-
2 * Copyright (c) 1992 Terrence R. Lambert.
3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
1/*-
2 * Copyright (c) 1992 Terrence R. Lambert.
3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
38 * $Id: machdep.c,v 1.348 1999/07/02 04:33:05 peter Exp $
38 * $Id: machdep.c,v 1.349 1999/07/02 20:33:32 msmith Exp $
39 */
40
41#include "apm.h"
42#include "ether.h"
43#include "npx.h"
44#include "opt_atalk.h"
45#include "opt_cpu.h"
46#include "opt_ddb.h"

--- 296 unchanged lines hidden (view full) ---

343 valloc(msghdrs, struct msg, msginfo.msgtql);
344 valloc(msqids, struct msqid_ds, msginfo.msgmni);
345#endif
346
347 if (nbuf == 0) {
348 nbuf = 30;
349 if( physmem > 1024)
350 nbuf += min((physmem - 1024) / 8, 2048);
39 */
40
41#include "apm.h"
42#include "ether.h"
43#include "npx.h"
44#include "opt_atalk.h"
45#include "opt_cpu.h"
46#include "opt_ddb.h"

--- 296 unchanged lines hidden (view full) ---

343 valloc(msghdrs, struct msg, msginfo.msgtql);
344 valloc(msqids, struct msqid_ds, msginfo.msgmni);
345#endif
346
347 if (nbuf == 0) {
348 nbuf = 30;
349 if( physmem > 1024)
350 nbuf += min((physmem - 1024) / 8, 2048);
351 if( physmem > 65536)
352 nbuf += (physmem - 65536) / 20;
351 }
353 }
352 nswbuf = max(min(nbuf/4, 64), 16);
354 nswbuf = max(min(nbuf/4, 256), 16);
353
354 valloc(swbuf, struct buf, nswbuf);
355 valloc(buf, struct buf, nbuf);
356
357
358 /*
359 * End of first pass, size has been calculated so allocate memory
360 */

--- 1691 unchanged lines hidden ---
355
356 valloc(swbuf, struct buf, nswbuf);
357 valloc(buf, struct buf, nbuf);
358
359
360 /*
361 * End of first pass, size has been calculated so allocate memory
362 */

--- 1691 unchanged lines hidden ---