diff options
author | Almudena Garcia <liberamenso10000@gmail.com> | 2020-10-06 23:19:58 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-10-07 00:03:09 +0200 |
commit | fa44a67ec670302e0b8df98cabe931f61db1caff (patch) | |
tree | d0833a7b2aa2d77e997f45c324eaa1d132d37f7c /i386/i386at | |
parent | a76bc939142f61e615fcc39fc940961e39a26207 (diff) | |
download | gnumach-fa44a67ec670302e0b8df98cabe931f61db1caff.tar.gz gnumach-fa44a67ec670302e0b8df98cabe931f61db1caff.tar.bz2 gnumach-fa44a67ec670302e0b8df98cabe931f61db1caff.zip |
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/i386at')
-rw-r--r-- | i386/i386at/model_dep.c | 5 |
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++) { |