[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 02/12] kern/startup: Disable interrupts before starting APs
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 02/12] kern/startup: Disable interrupts before starting APs |
Date: |
Tue, 25 Oct 2022 23:43:57 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Hello,
Damien Zammit, le mar. 25 oct. 2022 10:55:36 +0000, a ecrit:
> ---
> kern/startup.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/kern/startup.c b/kern/startup.c
> index 1f873192..499ef0f1 100644
> --- a/kern/startup.c
> +++ b/kern/startup.c
> @@ -242,6 +242,7 @@ void start_kernel_threads(void)
> /*
> * Allow other CPUs to run.
> */
> + splhigh();
I'd say we'd rather do it also when NCPUS==1? Otherwise we'll have
different behavior in smp and non-smp, which is prone to bring headaches
later.
> start_other_cpus();
> #endif /* NCPUS > 1 */
>
> --
> 2.34.1
>
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
- [PATCH 0/12 - gnumach] SMP almost working!, Damien Zammit, 2022/10/25
- [PATCH 01/12] kdb: Fix TODO for multiprocessor, Damien Zammit, 2022/10/25
- [PATCH 03/12] bios32: Use phystokv() on low bios addresses, Damien Zammit, 2022/10/25
- [PATCH 02/12] kern/startup: Disable interrupts before starting APs, Damien Zammit, 2022/10/25
- Re: [PATCH 02/12] kern/startup: Disable interrupts before starting APs,
Samuel Thibault <=
- [PATCH 04/12] acpi: Add lapic_addr, Damien Zammit, 2022/10/25
- [PATCH 07/12] i386/pit: Tune delays, Damien Zammit, 2022/10/25
- [PATCH 05/12] linux: Reduce worst case wait to 10 seconds for disks, Damien Zammit, 2022/10/25