[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/12] kdb: Fix TODO for multiprocessor
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 01/12] kdb: Fix TODO for multiprocessor |
Date: |
Tue, 25 Oct 2022 23:34:49 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Damien Zammit, le mar. 25 oct. 2022 10:55:30 +0000, a ecrit:
> ---
> ddb/db_mp.h | 1 +
> i386/i386/db_interface.c | 4 +++-
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/ddb/db_mp.h b/ddb/db_mp.h
> index b0d221ea..e32371d4 100644
> --- a/ddb/db_mp.h
> +++ b/ddb/db_mp.h
> @@ -22,6 +22,7 @@
> void remote_db(void);
> void lock_db(void);
> void unlock_db(void);
> +void db_on(int i);
>
> #if CONSOLE_ON_MASTER
> void db_console(void);
> diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c
> index 0ad1fde5..30de794e 100644
> --- a/i386/i386/db_interface.c
> +++ b/i386/i386/db_interface.c
> @@ -100,7 +100,9 @@ void db_load_context(pcb_t pcb)
> }
>
> void cpu_interrupt_to_db(int i){
> - printf("TODO: cpu_interrupt_to_db\n");
> +#if NCPUS > 1
> + db_on(i);
> +#endif
> }
>
> void db_get_debug_state(
> --
> 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
- Re: [PATCH 01/12] kdb: Fix TODO for multiprocessor,
Samuel Thibault <=
- [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
- [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