From afdae548dcb48eb8fd8f76c12bed79ee19821d67 Mon Sep 17 00:00:00 2001 From: Damien Zammit via Bug reports for the GNU Hurd Date: Mon, 9 Dec 2024 12:17:45 +0000 Subject: 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> --- i386/i386/mp_desc.c | 1 + i386/i386at/model_dep.c | 1 + i386/intel/pmap.c | 2 -- 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 -- cgit v1.2.3