Module Name: src Committed By: maxv Date: Thu Feb 22 10:26:32 UTC 2018
Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: Mmh, add #ifdef SVS around svs_init(). To generate a diff of this commit: cvs rdiff -u -r1.299 -r1.300 src/sys/arch/amd64/amd64/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/amd64/amd64/machdep.c diff -u src/sys/arch/amd64/amd64/machdep.c:1.299 src/sys/arch/amd64/amd64/machdep.c:1.300 --- src/sys/arch/amd64/amd64/machdep.c:1.299 Thu Feb 22 09:41:06 2018 +++ src/sys/arch/amd64/amd64/machdep.c Thu Feb 22 10:26:32 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.299 2018/02/22 09:41:06 maxv Exp $ */ +/* $NetBSD: machdep.c,v 1.300 2018/02/22 10:26:32 maxv Exp $ */ /* * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011 @@ -110,7 +110,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.299 2018/02/22 09:41:06 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.300 2018/02/22 10:26:32 maxv Exp $"); /* #define XENDEBUG_LOW */ @@ -1598,7 +1598,9 @@ init_x86_64(paddr_t first_avail) uvm_lwp_setuarea(&lwp0, lwp0uarea); cpu_probe(&cpu_info_primary); +#ifdef SVS svs_init(true); +#endif cpu_init_msrs(&cpu_info_primary, true); use_pae = 1; /* PAE always enabled in long mode */