Deleted Added
full compact
machdep.c (250423) machdep.c (250840)
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 250423 2013-05-09 21:42:43Z dchagin $");
42__FBSDID("$FreeBSD: head/sys/amd64/amd64/machdep.c 250840 2013-05-21 03:05:49Z marcel $");
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_mp_watchdog.h"
55#include "opt_perfmon.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_mp_watchdog.h"
55#include "opt_perfmon.h"
56#include "opt_platform.h"
56#include "opt_sched.h"
57#include "opt_kdtrace.h"
58
59#include <sys/param.h>
60#include <sys/proc.h>
61#include <sys/systm.h>
62#include <sys/bio.h>
63#include <sys/buf.h>

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

128#include <machine/specialreg.h>
129#ifdef PERFMON
130#include <machine/perfmon.h>
131#endif
132#include <machine/tss.h>
133#ifdef SMP
134#include <machine/smp.h>
135#endif
57#include "opt_sched.h"
58#include "opt_kdtrace.h"
59
60#include <sys/param.h>
61#include <sys/proc.h>
62#include <sys/systm.h>
63#include <sys/bio.h>
64#include <sys/buf.h>

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

129#include <machine/specialreg.h>
130#ifdef PERFMON
131#include <machine/perfmon.h>
132#endif
133#include <machine/tss.h>
134#ifdef SMP
135#include <machine/smp.h>
136#endif
137#ifdef FDT
138#include <x86/fdt.h>
139#endif
136
137#ifdef DEV_ATPIC
138#include <x86/isa/icu.h>
139#else
140#include <machine/apicvar.h>
141#endif
142
143#include <isa/isareg.h>

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

1881 if (bootverbose)
1882 printf("Xen detected: disabling emulated block and network devices\n");
1883 outw(0x10, 3);
1884 }
1885#endif
1886
1887 cpu_probe_amdc1e();
1888
140
141#ifdef DEV_ATPIC
142#include <x86/isa/icu.h>
143#else
144#include <machine/apicvar.h>
145#endif
146
147#include <isa/isareg.h>

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

1885 if (bootverbose)
1886 printf("Xen detected: disabling emulated block and network devices\n");
1887 outw(0x10, 3);
1888 }
1889#endif
1890
1891 cpu_probe_amdc1e();
1892
1893#ifdef FDT
1894 x86_init_fdt();
1895#endif
1896
1889 /* Location of kernel stack for locore */
1890 return ((u_int64_t)thread0.td_pcb);
1891}
1892
1893void
1894cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size)
1895{
1896

--- 660 unchanged lines hidden ---
1897 /* Location of kernel stack for locore */
1898 return ((u_int64_t)thread0.td_pcb);
1899}
1900
1901void
1902cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size)
1903{
1904

--- 660 unchanged lines hidden ---