Deleted Added
full compact
mp_machdep.c (263878) mp_machdep.c (264984)
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 263878 2014-03-28 16:07:27Z kib $");
28__FBSDID("$FreeBSD: head/sys/amd64/amd64/mp_machdep.c 264984 2014-04-26 20:27:54Z scottl $");
29
30#include "opt_cpu.h"
31#include "opt_ddb.h"
32#include "opt_kstack_pages.h"
33#include "opt_sched.h"
34#include "opt_smp.h"
35
36#include <sys/param.h>

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

766 CPU_SET(cpuid, &logical_cpus_mask);
767
768 if (bootverbose)
769 lapic_dump("AP");
770
771 if (smp_cpus == mp_ncpus) {
772 /* enable IPI's, tlb shootdown, freezes etc */
773 atomic_store_rel_int(&smp_started, 1);
29
30#include "opt_cpu.h"
31#include "opt_ddb.h"
32#include "opt_kstack_pages.h"
33#include "opt_sched.h"
34#include "opt_smp.h"
35
36#include <sys/param.h>

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

766 CPU_SET(cpuid, &logical_cpus_mask);
767
768 if (bootverbose)
769 lapic_dump("AP");
770
771 if (smp_cpus == mp_ncpus) {
772 /* enable IPI's, tlb shootdown, freezes etc */
773 atomic_store_rel_int(&smp_started, 1);
774 smp_active = 1; /* historic */
775 }
776
777 /*
778 * Enable global pages TLB extension
779 * This also implicitly flushes the TLB
780 */
781
782 load_cr4(rcr4() | CR4_PGE);

--- 937 unchanged lines hidden ---
774 }
775
776 /*
777 * Enable global pages TLB extension
778 * This also implicitly flushes the TLB
779 */
780
781 load_cr4(rcr4() | CR4_PGE);

--- 937 unchanged lines hidden ---