mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
xen: fix smp boot after r328157
mce_stack was left unset leading to early crashes
This commit is contained in:
parent
dacbef689d
commit
b345111b2b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329297
|
@ -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
|
||||
|
||||
|
@ -219,6 +220,8 @@ start_xen_ap(int 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);
|
||||
dpcpu =
|
||||
|
|
Loading…
Reference in a new issue