Mmh, add #ifdef SVS around svs_init().

This commit is contained in:
maxv 2018-02-22 10:26:32 +00:00
parent 9e5f5b7ce0
commit f929364d1e
1 changed files with 4 additions and 2 deletions

View File

@ -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 */