svn commit: r334147 - head/sys/x86/xen
Roger Pau Monné
royger at FreeBSD.org
Thu May 24 10:22:58 UTC 2018
Author: royger
Date: Thu May 24 10:22:57 2018
New Revision: 334147
URL: https://svnweb.freebsd.org/changeset/base/334147
Log:
xen/pvh: allocate dbg_stack
Or else init_secondary will hit a page fault (or write garbage
somewhere).
Sponsored by: Citrix Systems R&D
Modified:
head/sys/x86/xen/pv.c
Modified: head/sys/x86/xen/pv.c
==============================================================================
--- head/sys/x86/xen/pv.c Thu May 24 10:20:42 2018 (r334146)
+++ head/sys/x86/xen/pv.c Thu May 24 10:22:57 2018 (r334147)
@@ -101,6 +101,7 @@ static int xen_pv_start_all_aps(void);
extern char *doublefault_stack;
extern char *mce_stack;
extern char *nmi_stack;
+extern char *dbg_stack;
#endif
/*
@@ -224,6 +225,8 @@ start_xen_ap(int cpu)
(char *)kmem_malloc(kernel_arena, PAGE_SIZE, M_WAITOK | M_ZERO);
nmi_stack =
(char *)kmem_malloc(kernel_arena, PAGE_SIZE, M_WAITOK | M_ZERO);
+ dbg_stack =
+ (void *)kmem_malloc(kernel_arena, PAGE_SIZE, M_WAITOK | M_ZERO);
dpcpu =
(void *)kmem_malloc(kernel_arena, DPCPU_SIZE, M_WAITOK | M_ZERO);
More information about the svn-src-all
mailing list