Deleted Added
full compact
mp_machdep.c (134553) mp_machdep.c (134591)
1/*-
2 * Copyright (c) 1996, by Steve Passe
3 * Copyright (c) 2003, by Peter Wemm
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1996, by Steve Passe
3 * Copyright (c) 2003, by Peter Wemm
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/amd64/amd64/mp_machdep.c 134553 2004-08-30 23:33:33Z peter $");
28__FBSDID("$FreeBSD: head/sys/amd64/amd64/mp_machdep.c 134591 2004-09-01 06:42:02Z julian $");
29
30#include "opt_cpu.h"
31#include "opt_kstack_pages.h"
32#include "opt_mp_watchdog.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bus.h>

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

108
109extern inthand_t IDTVEC(fast_syscall), IDTVEC(fast_syscall32);
110
111/*
112 * Local data and functions.
113 */
114
115static u_int logical_cpus;
29
30#include "opt_cpu.h"
31#include "opt_kstack_pages.h"
32#include "opt_mp_watchdog.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bus.h>

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

108
109extern inthand_t IDTVEC(fast_syscall), IDTVEC(fast_syscall32);
110
111/*
112 * Local data and functions.
113 */
114
115static u_int logical_cpus;
116static u_int logical_cpus_mask;
117
118/* used to hold the AP's until we are ready to release them */
119static struct mtx ap_boot_mtx;
120
121/* Set to 1 once we're ready to let the APs out of the pen. */
122static volatile int aps_ready = 0;
123
124/*

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

133
134static u_int boot_address;
135
136static void set_logical_apic_ids(void);
137static int start_all_aps(void);
138static int start_ap(int apic_id);
139static void release_aps(void *dummy);
140
116
117/* used to hold the AP's until we are ready to release them */
118static struct mtx ap_boot_mtx;
119
120/* Set to 1 once we're ready to let the APs out of the pen. */
121static volatile int aps_ready = 0;
122
123/*

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

132
133static u_int boot_address;
134
135static void set_logical_apic_ids(void);
136static int start_all_aps(void);
137static int start_ap(int apic_id);
138static void release_aps(void *dummy);
139
141static int hlt_cpus_mask;
142static int hlt_logical_cpus;
143static struct sysctl_ctx_list logical_cpu_clist;
144static u_int bootMP_size;
145
146static void
147mem_range_AP_init(void)
148{
149 if (mem_range_softc.mr_op && mem_range_softc.mr_op->initAP)

--- 936 unchanged lines hidden ---
140static int hlt_logical_cpus;
141static struct sysctl_ctx_list logical_cpu_clist;
142static u_int bootMP_size;
143
144static void
145mem_range_AP_init(void)
146{
147 if (mem_range_softc.mr_op && mem_range_softc.mr_op->initAP)

--- 936 unchanged lines hidden ---