summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorAlmudena Garcia <liberamenso10000@gmail.com>2020-10-06 23:19:58 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-10-07 00:03:09 +0200
commitfa44a67ec670302e0b8df98cabe931f61db1caff (patch)
treed0833a7b2aa2d77e997f45c324eaa1d132d37f7c /i386
parenta76bc939142f61e615fcc39fc940961e39a26207 (diff)
fix: fix kernel panic in SMP mode Add mp_desc_init() call in BSP processor, to initialize some structures needed for SMP
Diffstat (limited to 'i386')
-rw-r--r--i386/i386at/model_dep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 346f2b9c..e9b2eb3b 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -58,6 +58,7 @@
#include <i386/ktss.h>
#include <i386/ldt.h>
#include <i386/machspl.h>
+#include <i386/mp_desc.h>
#include <i386/pic.h>
#include <i386/pit.h>
#include <i386/pmap.h>
@@ -501,6 +502,10 @@ i386at_init(void)
ldt_init();
ktss_init();
+#if NCPUS > 1
+ mp_desc_init(0);
+#endif // NCPUS
+
#if INIT_VM_MIN_KERNEL_ADDRESS != LINEAR_MIN_KERNEL_ADDRESS
/* Get rid of the temporary direct mapping and flush it out of the TLB. */
for (i = 0 ; i < nb_direct; i++) {