Date: Thu, 15 Feb 2018 07:23:41 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329297 - head/sys/x86/xen Message-ID: <201802150723.w1F7NfKj037459@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Thu Feb 15 07:23:41 2018 New Revision: 329297 URL: https://svnweb.freebsd.org/changeset/base/329297 Log: xen: fix smp boot after r328157 mce_stack was left unset leading to early crashes Modified: head/sys/x86/xen/pv.c Modified: head/sys/x86/xen/pv.c ============================================================================== --- head/sys/x86/xen/pv.c Thu Feb 15 03:22:53 2018 (r329296) +++ head/sys/x86/xen/pv.c Thu Feb 15 07:23:41 2018 (r329297) @@ -99,6 +99,7 @@ static int xen_pv_start_all_aps(void); #ifdef SMP /* Variables used by amd64 mp_machdep to start APs */ extern char *doublefault_stack; +extern char *mce_stack; extern char *nmi_stack; #endif @@ -218,6 +219,8 @@ start_xen_ap(int cpu) bootstacks[cpu] = (void *)kmem_malloc(kernel_arena, stacksize, M_WAITOK | M_ZERO); doublefault_stack = + (char *)kmem_malloc(kernel_arena, PAGE_SIZE, M_WAITOK | M_ZERO); + mce_stack = (char *)kmem_malloc(kernel_arena, PAGE_SIZE, M_WAITOK | M_ZERO); nmi_stack = (char *)kmem_malloc(kernel_arena, PAGE_SIZE, M_WAITOK | M_ZERO);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802150723.w1F7NfKj037459>