bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/6 gnumach] pmap: Separate temporary_mapping from set_page_d


From: Samuel Thibault
Subject: Re: [PATCH 4/6 gnumach] pmap: Separate temporary_mapping from set_page_dir
Date: Mon, 9 Dec 2024 22:31:27 +0100

Applied, thanks!

Damien Zammit via Bug reports for the GNU Hurd, le lun. 09 déc. 2024 12:17:45 
+0000, a ecrit:
> 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
> 
> 
> 

-- 
Samuel
 > Voici mon problème, j'ai deux PCs relies par des cartes ethernet, 
 > configures avec le protocole PPP.
 -+- Romain in Guide du linuxien pervers - "Ils sont fous ces romains !" -+-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]