Deleted Added
full compact
machdep.c (341491) machdep.c (347568)
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: stable/11/sys/amd64/amd64/machdep.c 341491 2018-12-04 19:07:10Z markj $");
42__FBSDID("$FreeBSD: stable/11/sys/amd64/amd64/machdep.c 347568 2019-05-14 17:05:02Z kib $");
43
44#include "opt_atpic.h"
45#include "opt_compat.h"
46#include "opt_cpu.h"
47#include "opt_ddb.h"
48#include "opt_inet.h"
49#include "opt_isa.h"
50#include "opt_kstack_pages.h"

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

1859
1860#ifdef FDT
1861 x86_init_fdt();
1862#endif
1863 thread0.td_critnest = 0;
1864
1865 TUNABLE_INT_FETCH("hw.ibrs_disable", &hw_ibrs_disable);
1866 TUNABLE_INT_FETCH("hw.spec_store_bypass_disable", &hw_ssb_disable);
43
44#include "opt_atpic.h"
45#include "opt_compat.h"
46#include "opt_cpu.h"
47#include "opt_ddb.h"
48#include "opt_inet.h"
49#include "opt_isa.h"
50#include "opt_kstack_pages.h"

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

1859
1860#ifdef FDT
1861 x86_init_fdt();
1862#endif
1863 thread0.td_critnest = 0;
1864
1865 TUNABLE_INT_FETCH("hw.ibrs_disable", &hw_ibrs_disable);
1866 TUNABLE_INT_FETCH("hw.spec_store_bypass_disable", &hw_ssb_disable);
1867 TUNABLE_INT_FETCH("hw.mds_disable", &hw_mds_disable);
1867
1868 /* Location of kernel stack for locore */
1869 return ((u_int64_t)thread0.td_pcb);
1870}
1871
1872void
1873cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size)
1874{

--- 794 unchanged lines hidden ---
1868
1869 /* Location of kernel stack for locore */
1870 return ((u_int64_t)thread0.td_pcb);
1871}
1872
1873void
1874cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size)
1875{

--- 794 unchanged lines hidden ---