Deleted Added
full compact
vm_machdep.c (129876) vm_machdep.c (129906)
1/*-
2 * Copyright (c) 1982, 1986 The Regents of the University of California.
3 * Copyright (c) 1989, 1990 William Jolitz
4 * Copyright (c) 1994 John Dyson
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * the Systems Programming Group of the University of Utah Computer

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

36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
40 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
41 */
42
43#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986 The Regents of the University of California.
3 * Copyright (c) 1989, 1990 William Jolitz
4 * Copyright (c) 1994 John Dyson
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * the Systems Programming Group of the University of Utah Computer

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

36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91
40 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
41 */
42
43#include <sys/cdefs.h>
44__FBSDID("$FreeBSD: head/sys/i386/i386/vm_machdep.c 129876 2004-05-30 17:57:46Z phk $");
44__FBSDID("$FreeBSD: head/sys/i386/i386/vm_machdep.c 129906 2004-05-31 21:46:06Z bmilekic $");
45
46#include "opt_isa.h"
47#include "opt_npx.h"
48#ifdef PC98
49#include "opt_pc98.h"
50#endif
51#include "opt_reset.h"
52#include "opt_cpu.h"

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

90#include <vm/vm_param.h>
91
92#ifdef PC98
93#include <pc98/pc98/pc98.h>
94#else
95#include <i386/isa/isa.h>
96#endif
97
45
46#include "opt_isa.h"
47#include "opt_npx.h"
48#ifdef PC98
49#include "opt_pc98.h"
50#endif
51#include "opt_reset.h"
52#include "opt_cpu.h"

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

90#include <vm/vm_param.h>
91
92#ifdef PC98
93#include <pc98/pc98/pc98.h>
94#else
95#include <i386/isa/isa.h>
96#endif
97
98#ifndef NSFBUFS
99#define NSFBUFS (512 + maxusers * 16)
100#endif
101
98static void cpu_reset_real(void);
99#ifdef SMP
100static void cpu_reset_proxy(void);
101static u_int cpu_reset_proxyid;
102static volatile u_int cpu_reset_proxy_active;
103#endif
104static void sf_buf_init(void *arg);
105SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL)

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

579 */
580static void
581sf_buf_init(void *arg)
582{
583 struct sf_buf *sf_bufs;
584 vm_offset_t sf_base;
585 int i;
586
102static void cpu_reset_real(void);
103#ifdef SMP
104static void cpu_reset_proxy(void);
105static u_int cpu_reset_proxyid;
106static volatile u_int cpu_reset_proxy_active;
107#endif
108static void sf_buf_init(void *arg);
109SYSINIT(sock_sf, SI_SUB_MBUF, SI_ORDER_ANY, sf_buf_init, NULL)

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

583 */
584static void
585sf_buf_init(void *arg)
586{
587 struct sf_buf *sf_bufs;
588 vm_offset_t sf_base;
589 int i;
590
591 nsfbufs = NSFBUFS;
592 TUNABLE_INT_FETCH("kern.ipc.nsfbufs", &nsfbufs);
593
587 sf_buf_active = hashinit(nsfbufs, M_TEMP, &sf_buf_hashmask);
588 TAILQ_INIT(&sf_buf_freelist);
589 sf_base = kmem_alloc_nofault(kernel_map, nsfbufs * PAGE_SIZE);
590 sf_bufs = malloc(nsfbufs * sizeof(struct sf_buf), M_TEMP,
591 M_NOWAIT | M_ZERO);
592 for (i = 0; i < nsfbufs; i++) {
593 sf_bufs[i].kva = sf_base + i * PAGE_SIZE;
594 TAILQ_INSERT_TAIL(&sf_buf_freelist, &sf_bufs[i], free_entry);

--- 110 unchanged lines hidden ---
594 sf_buf_active = hashinit(nsfbufs, M_TEMP, &sf_buf_hashmask);
595 TAILQ_INIT(&sf_buf_freelist);
596 sf_base = kmem_alloc_nofault(kernel_map, nsfbufs * PAGE_SIZE);
597 sf_bufs = malloc(nsfbufs * sizeof(struct sf_buf), M_TEMP,
598 M_NOWAIT | M_ZERO);
599 for (i = 0; i < nsfbufs; i++) {
600 sf_bufs[i].kva = sf_base + i * PAGE_SIZE;
601 TAILQ_INSERT_TAIL(&sf_buf_freelist, &sf_bufs[i], free_entry);

--- 110 unchanged lines hidden ---