Deleted Added
full compact
cpu_machdep.c (112888) cpu_machdep.c (112993)
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 * $FreeBSD: head/sys/i386/i386/machdep.c 112888 2003-03-31 22:49:17Z jeff $
38 * $FreeBSD: head/sys/i386/i386/machdep.c 112993 2003-04-02 23:53:30Z peter $
39 */
40
41#include "opt_atalk.h"
42#include "opt_compat.h"
43#include "opt_cpu.h"
44#include "opt_ddb.h"
45#include "opt_inet.h"
46#include "opt_ipx.h"
47#include "opt_isa.h"
48#include "opt_maxmem.h"
49#include "opt_msgbuf.h"
50#include "opt_npx.h"
51#include "opt_perfmon.h"
39 */
40
41#include "opt_atalk.h"
42#include "opt_compat.h"
43#include "opt_cpu.h"
44#include "opt_ddb.h"
45#include "opt_inet.h"
46#include "opt_ipx.h"
47#include "opt_isa.h"
48#include "opt_maxmem.h"
49#include "opt_msgbuf.h"
50#include "opt_npx.h"
51#include "opt_perfmon.h"
52#include "opt_swtch.h"
52#include "opt_kstack_pages.h"
53
54#include <sys/param.h>
55#include <sys/systm.h>
56#include <sys/sysproto.h>
57#include <sys/signalvar.h>
58#include <sys/imgact.h>
59#include <sys/kernel.h>

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

146static void fill_fpregs_xmm(struct savexmm *, struct save87 *);
147#endif /* CPU_ENABLE_SSE */
148SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
149
150int _udatasel, _ucodesel;
151u_int atdevbase;
152
153#if defined(SWTCH_OPTIM_STATS)
53#include "opt_kstack_pages.h"
54
55#include <sys/param.h>
56#include <sys/systm.h>
57#include <sys/sysproto.h>
58#include <sys/signalvar.h>
59#include <sys/imgact.h>
60#include <sys/kernel.h>

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

147static void fill_fpregs_xmm(struct savexmm *, struct save87 *);
148#endif /* CPU_ENABLE_SSE */
149SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL)
150
151int _udatasel, _ucodesel;
152u_int atdevbase;
153
154#if defined(SWTCH_OPTIM_STATS)
154extern int swtch_optim_stats;
155int stupid_switch;
156SYSCTL_INT(_debug, OID_AUTO, stupid_switch,
157 CTLFLAG_RW, &stupid_switch, 0, "");
158int swtch_optim_stats;
155SYSCTL_INT(_debug, OID_AUTO, swtch_optim_stats,
159SYSCTL_INT(_debug, OID_AUTO, swtch_optim_stats,
156 CTLFLAG_RD, &swtch_optim_stats, 0, "");
160 CTLFLAG_RW, &swtch_optim_stats, 0, "");
161int tlb_flush_count;
157SYSCTL_INT(_debug, OID_AUTO, tlb_flush_count,
162SYSCTL_INT(_debug, OID_AUTO, tlb_flush_count,
158 CTLFLAG_RD, &tlb_flush_count, 0, "");
163 CTLFLAG_RW, &tlb_flush_count, 0, "");
164int lazy_flush_count;
165SYSCTL_INT(_debug, OID_AUTO, lazy_flush_count,
166 CTLFLAG_RW, &lazy_flush_count, 0, "");
167int lazy_flush_fixup;
168SYSCTL_INT(_debug, OID_AUTO, lazy_flush_fixup,
169 CTLFLAG_RW, &lazy_flush_fixup, 0, "");
170#ifdef SMP
171int lazy_flush_smpfixup;
172SYSCTL_INT(_debug, OID_AUTO, lazy_flush_smpfixup,
173 CTLFLAG_RW, &lazy_flush_smpfixup, 0, "");
174int lazy_flush_smpipi;
175SYSCTL_INT(_debug, OID_AUTO, lazy_flush_smpipi,
176 CTLFLAG_RW, &lazy_flush_smpipi, 0, "");
177int lazy_flush_smpbadcr3;
178SYSCTL_INT(_debug, OID_AUTO, lazy_flush_smpbadcr3,
179 CTLFLAG_RW, &lazy_flush_smpbadcr3, 0, "");
180int lazy_flush_smpmiss;
181SYSCTL_INT(_debug, OID_AUTO, lazy_flush_smpmiss,
182 CTLFLAG_RW, &lazy_flush_smpmiss, 0, "");
159#endif
183#endif
184#endif
185#ifdef LAZY_SWITCH
186int lazy_flush_enable = 1;
187SYSCTL_INT(_debug, OID_AUTO, lazy_flush_enable,
188 CTLFLAG_RW, &lazy_flush_enable, 0, "");
189#endif
160
161int cold = 1;
162
163#ifdef COMPAT_43
164static void osendsig(sig_t catcher, int sig, sigset_t *mask, u_long code);
165#endif
166#ifdef COMPAT_FREEBSD4
167static void freebsd4_sendsig(sig_t catcher, int sig, sigset_t *mask,

--- 2574 unchanged lines hidden ---
190
191int cold = 1;
192
193#ifdef COMPAT_43
194static void osendsig(sig_t catcher, int sig, sigset_t *mask, u_long code);
195#endif
196#ifdef COMPAT_FREEBSD4
197static void freebsd4_sendsig(sig_t catcher, int sig, sigset_t *mask,

--- 2574 unchanged lines hidden ---