From f929364d1ea0574ddbb3b00822267034c7bc1117 Mon Sep 17 00:00:00 2001 From: maxv Date: Thu, 22 Feb 2018 10:26:32 +0000 Subject: [PATCH] Mmh, add #ifdef SVS around svs_init(). --- sys/arch/amd64/amd64/machdep.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 974163035501..c351aedefe1c 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -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 -__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 */