[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/6 gnumach] pmap: Separate temporary_mapping from set_page_dir
From: |
Damien Zammit |
Subject: |
[PATCH 4/6 gnumach] pmap: Separate temporary_mapping from set_page_dir |
Date: |
Mon, 09 Dec 2024 12:17:45 +0000 |
Prepare for smp parallel init where we want to call these
two functions on different cpus at different times.
---
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
--
2.45.2
- [PATCH 0/6 gnumach] Preparation for parallel SMP init, Damien Zammit, 2024/12/09
- [PATCH 1/6 gnumach] i386/cpuboot: Simplify for legibility, Damien Zammit, 2024/12/09
- [PATCH 2/6 gnumach] i386/cpuboot: Dont use CPU_NUMBER_NO_STACK() early, Damien Zammit, 2024/12/09
- [PATCH 3/6 gnumach] i386/cpuboot: Write gs selector correctly, Damien Zammit, 2024/12/09
- [PATCH 4/6 gnumach] pmap: Separate temporary_mapping from set_page_dir,
Damien Zammit <=
- [PATCH 5/6 gnumach] smp: Use logical destination not physical apic id, Damien Zammit, 2024/12/09
- [PATCH 6/6 gnumach] i386/apic: Fix condition on non-BSP, Damien Zammit, 2024/12/09