Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 Mmh, add #ifdef SVS around svs_init().



details:   https://anonhg.NetBSD.org/src/rev/1e6d2e5f593f
branches:  trunk
changeset: 359723:1e6d2e5f593f
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Feb 22 10:26:32 2018 +0000

description:
Mmh, add #ifdef SVS around svs_init().

diffstat:

 sys/arch/amd64/amd64/machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 930cec3e7377 -r 1e6d2e5f593f sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c    Thu Feb 22 10:12:54 2018 +0000
+++ b/sys/arch/amd64/amd64/machdep.c    Thu Feb 22 10:26:32 2018 +0000
@@ -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 @@
        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 */



Home | Main Index | Thread Index | Old Index