[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnumach] fix smp 1
From: |
Samuel Thibault |
Subject: |
Re: [gnumach] fix smp 1 |
Date: |
Sat, 11 Jan 2025 11:40:35 +0100 |
Applied, thanks!
gfleury, le sam. 11 janv. 2025 10:33:30 +0200, a ecrit:
> ---
> i386/i386/mp_desc.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
> index c90600f..e67aa76 100644
> --- a/i386/i386/mp_desc.c
> +++ b/i386/i386/mp_desc.c
> @@ -279,6 +279,9 @@ start_other_cpus(void)
> {
> int ncpus = smp_get_numcpus();
>
> + if (ncpus == 1)
> + return;
> +
> //Copy cpu initialization assembly routine
> memcpy((void*) phystokv(apboot_addr), (void*) &apboot,
> (uint32_t)&apbootend - (uint32_t)&apboot);
> --
> 2.39.5
>
>