Move the spl_init flag lower down after the percpu area is set up,
so that gs segment is not attempted to be read until after
percpu area is set up.
---
i386/i386at/model_dep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 071c23fa..e713cc8a 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -383,7 +383,6 @@ i386at_init(void)
#else /* MACH_HYP */
hyp_intrinit();
#endif /* MACH_HYP */
- spl_init = 1;
/*
* Read memory map and load it into the physical page allocator.
@@ -501,6 +500,7 @@ i386at_init(void)
#endif /* MACH_XEN */
interrupt_stack_alloc();
+ spl_init = 1;
}
/*
--
2.45.2