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

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

34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
39 */
40
41#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003 Peter Wemm.
3 * Copyright (c) 1992 Terrence R. Lambert.
4 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * William Jolitz.

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

34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
39 */
40
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/sys/amd64/amd64/machdep.c 141374 2005-02-05 23:16:27Z njl $");
42__FBSDID("$FreeBSD: head/sys/amd64/amd64/machdep.c 141378 2005-02-06 01:55:08Z njl $");
43
44#include "opt_atalk.h"
45#include "opt_atpic.h"
46#include "opt_compat.h"
47#include "opt_cpu.h"
48#include "opt_ddb.h"
49#include "opt_inet.h"
50#include "opt_ipx.h"
51#include "opt_isa.h"
52#include "opt_kstack_pages.h"
53#include "opt_maxmem.h"
54#include "opt_msgbuf.h"
55#include "opt_perfmon.h"
56
57#include <sys/param.h>
43
44#include "opt_atalk.h"
45#include "opt_atpic.h"
46#include "opt_compat.h"
47#include "opt_cpu.h"
48#include "opt_ddb.h"
49#include "opt_inet.h"
50#include "opt_ipx.h"
51#include "opt_isa.h"
52#include "opt_kstack_pages.h"
53#include "opt_maxmem.h"
54#include "opt_msgbuf.h"
55#include "opt_perfmon.h"
56
57#include <sys/param.h>
58#include <sys/proc.h>
58#include <sys/systm.h>
59#include <sys/bio.h>
60#include <sys/buf.h>
61#include <sys/bus.h>
62#include <sys/callout.h>
59#include <sys/systm.h>
60#include <sys/bio.h>
61#include <sys/buf.h>
62#include <sys/bus.h>
63#include <sys/callout.h>
64#include <sys/cons.h>
63#include <sys/cpu.h>
64#include <sys/eventhandler.h>
65#include <sys/cpu.h>
66#include <sys/eventhandler.h>
67#include <sys/exec.h>
65#include <sys/imgact.h>
66#include <sys/kdb.h>
67#include <sys/kernel.h>
68#include <sys/ktr.h>
69#include <sys/linker.h>
70#include <sys/lock.h>
71#include <sys/malloc.h>
72#include <sys/memrange.h>
68#include <sys/imgact.h>
69#include <sys/kdb.h>
70#include <sys/kernel.h>
71#include <sys/ktr.h>
72#include <sys/linker.h>
73#include <sys/lock.h>
74#include <sys/malloc.h>
75#include <sys/memrange.h>
76#include <sys/msgbuf.h>
73#include <sys/mutex.h>
74#include <sys/pcpu.h>
77#include <sys/mutex.h>
78#include <sys/pcpu.h>
75#include <sys/proc.h>
79#include <sys/ptrace.h>
76#include <sys/reboot.h>
80#include <sys/reboot.h>
77#include <sys/msgbuf.h>
78#include <sys/sched.h>
79#include <sys/signalvar.h>
81#include <sys/sched.h>
82#include <sys/signalvar.h>
80#include <sys/sysent.h>
81#include <sys/sysctl.h>
83#include <sys/sysctl.h>
84#include <sys/sysent.h>
82#include <sys/sysproto.h>
83#include <sys/ucontext.h>
84#include <sys/vmmeter.h>
85
85#include <sys/sysproto.h>
86#include <sys/ucontext.h>
87#include <sys/vmmeter.h>
88
86#include <machine/clock.h>
87#include <machine/pcb.h>
88
89#include <vm/vm.h>
89#include <vm/vm.h>
90#include <vm/vm_param.h>
90#include <vm/vm_extern.h>
91#include <vm/vm_kern.h>
91#include <vm/vm_kern.h>
92#include <vm/vm_object.h>
93#include <vm/vm_page.h>
94#include <vm/vm_map.h>
92#include <vm/vm_page.h>
93#include <vm/vm_map.h>
94#include <vm/vm_object.h>
95#include <vm/vm_pager.h>
95#include <vm/vm_pager.h>
96#include <vm/vm_extern.h>
96#include <vm/vm_param.h>
97
97
98#include <sys/exec.h>
99#include <sys/cons.h>
100
101#ifdef DDB
102#ifndef KDB
103#error KDB must be enabled in order for DDB to work!
104#endif
105#endif
106#include <ddb/ddb.h>
107
108#include <net/netisr.h>
109
98#ifdef DDB
99#ifndef KDB
100#error KDB must be enabled in order for DDB to work!
101#endif
102#endif
103#include <ddb/ddb.h>
104
105#include <net/netisr.h>
106
107#include <machine/clock.h>
110#include <machine/cpu.h>
111#include <machine/cputypes.h>
108#include <machine/cpu.h>
109#include <machine/cputypes.h>
112#include <machine/reg.h>
113#include <machine/clock.h>
114#include <machine/specialreg.h>
115#include <machine/intr_machdep.h>
116#include <machine/md_var.h>
110#include <machine/intr_machdep.h>
111#include <machine/md_var.h>
117#include <machine/pc/bios.h>
118#include <machine/metadata.h>
112#include <machine/metadata.h>
113#include <machine/pc/bios.h>
114#include <machine/pcb.h>
119#include <machine/proc.h>
115#include <machine/proc.h>
116#include <machine/reg.h>
117#include <machine/sigframe.h>
118#include <machine/specialreg.h>
120#ifdef PERFMON
121#include <machine/perfmon.h>
122#endif
123#include <machine/tss.h>
124#ifdef SMP
125#include <machine/smp.h>
126#endif
127
128#include <amd64/isa/icu.h>
129
130#include <isa/isareg.h>
131#include <isa/rtc.h>
119#ifdef PERFMON
120#include <machine/perfmon.h>
121#endif
122#include <machine/tss.h>
123#ifdef SMP
124#include <machine/smp.h>
125#endif
126
127#include <amd64/isa/icu.h>
128
129#include <isa/isareg.h>
130#include <isa/rtc.h>
132#include <sys/ptrace.h>
133#include <machine/sigframe.h>
134
135/* Sanity check for __curthread() */
136CTASSERT(offsetof(struct pcpu, pc_curthread) == 0);
137
138extern u_int64_t hammer_time(u_int64_t, u_int64_t);
139extern void dblfault_handler(void);
140
141extern void printcpuinfo(void); /* XXX header file */

--- 1761 unchanged lines hidden ---
131
132/* Sanity check for __curthread() */
133CTASSERT(offsetof(struct pcpu, pc_curthread) == 0);
134
135extern u_int64_t hammer_time(u_int64_t, u_int64_t);
136extern void dblfault_handler(void);
137
138extern void printcpuinfo(void); /* XXX header file */

--- 1761 unchanged lines hidden ---