aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit via Bug reports for the GNU Hurd <bug-hurd@gnu.org>2024-12-09 12:17:45 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-09 22:31:12 +0100
commitafdae548dcb48eb8fd8f76c12bed79ee19821d67 (patch)
tree08ed25eb642e90b0a66586e8fd9ec57141906fe0
parent6486deedefca41e4908988dd0600dbf4a624bd84 (diff)
downloadgnumach-afdae548dcb48eb8fd8f76c12bed79ee19821d67.tar.gz
gnumach-afdae548dcb48eb8fd8f76c12bed79ee19821d67.tar.bz2
gnumach-afdae548dcb48eb8fd8f76c12bed79ee19821d67.zip
pmap: Separate temporary_mapping from set_page_dir
Prepare for smp parallel init where we want to call these two functions on different cpus at different times. Message-ID: <20241209121706.879984-5-damien@zamaudio.com>
-rw-r--r--i386/i386/mp_desc.c1
-rw-r--r--i386/i386at/model_dep.c1
-rw-r--r--i386/intel/pmap.c2
3 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index 5fff2a68..8455f8ef 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -234,6 +234,7 @@ void
cpu_setup(int cpu)
{
pmap_make_temporary_mapping();
+ pmap_set_page_dir();
printf("AP=(%u) tempmap done\n", cpu);
paging_enable();
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 01489353..30449c37 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -455,6 +455,7 @@ i386at_init(void)
biosmem_setup();
pmap_make_temporary_mapping();
+ pmap_set_page_dir();
#ifndef MACH_HYP
/* Turn paging on.
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index da7dfc37..b496353c 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -3289,8 +3289,6 @@ pmap_make_temporary_mapping(void)
#endif
#endif /* PAE */
#endif /* MACH_PV_PAGETABLES */
-
- pmap_set_page_dir();
}
void