machdep.c (141374) | machdep.c (141378) |
---|---|
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 * --- 24 unchanged lines hidden (view full) --- 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 */ 39 40#include <sys/cdefs.h> | 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 * --- 24 unchanged lines hidden (view full) --- 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 */ 39 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/sys/i386/i386/machdep.c 141374 2005-02-05 23:16:27Z njl $"); | 41__FBSDID("$FreeBSD: head/sys/i386/i386/machdep.c 141378 2005-02-06 01:55:08Z njl $"); |
42 43#include "opt_apic.h" 44#include "opt_atalk.h" 45#include "opt_compat.h" 46#include "opt_cpu.h" 47#include "opt_ddb.h" 48#include "opt_inet.h" 49#include "opt_ipx.h" 50#include "opt_isa.h" 51#include "opt_kstack_pages.h" 52#include "opt_maxmem.h" 53#include "opt_msgbuf.h" 54#include "opt_npx.h" 55#include "opt_perfmon.h" 56 57#include <sys/param.h> | 42 43#include "opt_apic.h" 44#include "opt_atalk.h" 45#include "opt_compat.h" 46#include "opt_cpu.h" 47#include "opt_ddb.h" 48#include "opt_inet.h" 49#include "opt_ipx.h" 50#include "opt_isa.h" 51#include "opt_kstack_pages.h" 52#include "opt_maxmem.h" 53#include "opt_msgbuf.h" 54#include "opt_npx.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> 73#include <sys/msgbuf.h> 74#include <sys/mutex.h> 75#include <sys/pcpu.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> 77#include <sys/mutex.h> 78#include <sys/pcpu.h> |
76#include <sys/proc.h> | 79#include <sys/ptrace.h> |
77#include <sys/reboot.h> 78#include <sys/sched.h> 79#include <sys/signalvar.h> 80#include <sys/sysctl.h> 81#include <sys/sysent.h> 82#include <sys/sysproto.h> 83#include <sys/ucontext.h> 84#include <sys/vmmeter.h> 85 86#include <vm/vm.h> | 80#include <sys/reboot.h> 81#include <sys/sched.h> 82#include <sys/signalvar.h> 83#include <sys/sysctl.h> 84#include <sys/sysent.h> 85#include <sys/sysproto.h> 86#include <sys/ucontext.h> 87#include <sys/vmmeter.h> 88 89#include <vm/vm.h> |
87#include <vm/vm_param.h> | 90#include <vm/vm_extern.h> |
88#include <vm/vm_kern.h> | 91#include <vm/vm_kern.h> |
89#include <vm/vm_object.h> | |
90#include <vm/vm_page.h> 91#include <vm/vm_map.h> | 92#include <vm/vm_page.h> 93#include <vm/vm_map.h> |
94#include <vm/vm_object.h> |
|
92#include <vm/vm_pager.h> | 95#include <vm/vm_pager.h> |
93#include <vm/vm_extern.h> | 96#include <vm/vm_param.h> |
94 | 97 |
95#include <sys/exec.h> 96#include <sys/cons.h> 97 | |
98#ifdef DDB 99#ifndef KDB 100#error KDB must be enabled in order for DDB to work! 101#endif 102#include <ddb/ddb.h> 103#include <ddb/db_sym.h> 104#endif 105 | 98#ifdef DDB 99#ifndef KDB 100#error KDB must be enabled in order for DDB to work! 101#endif 102#include <ddb/ddb.h> 103#include <ddb/db_sym.h> 104#endif 105 |
106#include <isa/rtc.h> 107 |
|
106#include <net/netisr.h> 107 | 108#include <net/netisr.h> 109 |
110#include <machine/bootinfo.h> |
|
108#include <machine/clock.h> 109#include <machine/cpu.h> 110#include <machine/cputypes.h> | 111#include <machine/clock.h> 112#include <machine/cpu.h> 113#include <machine/cputypes.h> |
111#include <machine/reg.h> 112#include <machine/clock.h> 113#include <machine/specialreg.h> 114#include <machine/bootinfo.h> | |
115#include <machine/intr_machdep.h> 116#include <machine/md_var.h> 117#include <machine/pc/bios.h> 118#include <machine/pcb.h> 119#include <machine/pcb_ext.h> 120#include <machine/proc.h> | 114#include <machine/intr_machdep.h> 115#include <machine/md_var.h> 116#include <machine/pc/bios.h> 117#include <machine/pcb.h> 118#include <machine/pcb_ext.h> 119#include <machine/proc.h> |
120#include <machine/reg.h> 121#include <machine/sigframe.h> 122#include <machine/specialreg.h> 123#include <machine/vm86.h> |
|
121#ifdef PERFMON 122#include <machine/perfmon.h> 123#endif 124#ifdef SMP 125#include <machine/privatespace.h> 126#include <machine/smp.h> 127#endif 128 129#ifdef DEV_ISA 130#include <i386/isa/icu.h> 131#endif 132 | 124#ifdef PERFMON 125#include <machine/perfmon.h> 126#endif 127#ifdef SMP 128#include <machine/privatespace.h> 129#include <machine/smp.h> 130#endif 131 132#ifdef DEV_ISA 133#include <i386/isa/icu.h> 134#endif 135 |
133#include <isa/rtc.h> 134#include <machine/vm86.h> 135#include <sys/ptrace.h> 136#include <machine/sigframe.h> 137 | |
138/* Sanity check for __curthread() */ 139CTASSERT(offsetof(struct pcpu, pc_curthread) == 0); 140 141extern void init386(int first); 142extern void dblfault_handler(void); 143 144extern void printcpuinfo(void); /* XXX header file */ 145extern void finishidentcpu(void); --- 2833 unchanged lines hidden --- | 136/* Sanity check for __curthread() */ 137CTASSERT(offsetof(struct pcpu, pc_curthread) == 0); 138 139extern void init386(int first); 140extern void dblfault_handler(void); 141 142extern void printcpuinfo(void); /* XXX header file */ 143extern void finishidentcpu(void); --- 2833 unchanged lines hidden --- |