bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 2/5 gnumach] i386: Refactor int stacks to be per cpu for SMP


From: Samuel Thibault
Subject: Re: [PATCH 2/5 gnumach] i386: Refactor int stacks to be per cpu for SMP
Date: Wed, 1 Feb 2023 18:53:58 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Hello,

Damien Zammit, le mer. 01 févr. 2023 10:05:47 +0000, a ecrit:
> This is a rather large commit, but difficult to break it up.

Perhaps you can separate out the moving of the i386at_init code

> @@ -448,47 +444,8 @@ i386at_init(void)
>        */
>       biosmem_setup();
> 
> -     /*
> -      * We'll have to temporarily install a direct mapping
> -      * between physical memory and low linear memory,
> -      * until we start using our new kernel segment descriptors.
> -      */
> -#if INIT_VM_MIN_KERNEL_ADDRESS != LINEAR_MIN_KERNEL_ADDRESS
> -     vm_offset_t delta = INIT_VM_MIN_KERNEL_ADDRESS - 
> LINEAR_MIN_KERNEL_ADDRESS;
> -     if ((vm_offset_t)(-delta) < delta)
> -             delta = (vm_offset_t)(-delta);
> -     int nb_direct = delta >> PDESHIFT;
> -     for (i = 0; i < nb_direct; i++)
> -             kernel_page_dir[lin2pdenum_cont(INIT_VM_MIN_KERNEL_ADDRESS) + 
> i] =
> -                     
> kernel_page_dir[lin2pdenum_cont(LINEAR_MIN_KERNEL_ADDRESS) + i];

[etc.]

into functions?

Samuel



reply via email to

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