[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: |
Damien Zammit |
Subject: |
Re: [PATCH 2/5 gnumach] i386: Refactor int stacks to be per cpu for SMP |
Date: |
Sat, 04 Feb 2023 01:24:49 +0000 |
Hi Almu,
On 3/2/23 02:56, Almudena Garcia wrote:
> I already suggested move this to a function
>
> +#ifndef MACH_HYP
> + /* Turn paging on.
> + * TODO: Why does setting the WP bit here cause a crash?
> + */
> + set_cr0(get_cr0() | CR0_PG /* | CR0_WP */);
> + set_cr0(get_cr0() & ~(CR0_CD | CR0_NW));
> + if (CPU_HAS_FEATURE(CPU_FEATURE_PGE))
> + set_cr4(get_cr4() | CR4_PGE);
I moved this to a function called paging_enable()
> I miss the stack's memory reserve and assignation for AP processors, which
> was usually make before startup these. Where are this?
Interrupt stacks are pre-assigned by the compiler at a fixed location per cpu.
See "solid_intstack".
Damien
- Re: [PATCH 1/5 gnumach] pmap: Debug printf when pmap_update_interrupt runs, (continued)
[PATCH 3/5 gnumach] linux: No need to init PIT timer twice, Damien Zammit, 2023/02/01
Re: [PATCH 0/5 gnumach] Progress with SMP revisited, Almudena Garcia, 2023/02/01