[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] i386/apic: Add ifdefs for APIC for mask/unmask irqs
From: |
Damien Zammit |
Subject: |
[PATCH 1/4] i386/apic: Add ifdefs for APIC for mask/unmask irqs |
Date: |
Sat, 21 Jan 2023 08:04:44 +0000 |
This prepares for --enable-ncpus=2 with --disable-apic option
---
i386/i386/apic.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/i386/i386/apic.h b/i386/i386/apic.h
index 10c83c01..0bb1bd73 100644
--- a/i386/i386/apic.h
+++ b/i386/i386/apic.h
@@ -207,6 +207,7 @@ extern volatile ApicLocalUnit* lapic;
#ifndef __ASSEMBLER__
+#ifdef APIC
static inline void mask_irq (unsigned int irq_nr) {
ioapic_toggle(irq_nr, IOAPIC_MASK_DISABLED);
}
@@ -214,6 +215,7 @@ static inline void mask_irq (unsigned int irq_nr) {
static inline void unmask_irq (unsigned int irq_nr) {
ioapic_toggle(irq_nr, IOAPIC_MASK_ENABLED);
}
+#endif
#endif /* !__ASSEMBLER__ */
--
2.34.1
- [PATCH 0/4] gnumach smp preparation, Damien Zammit, 2023/01/21
- [PATCH 1/4] i386/apic: Add ifdefs for APIC for mask/unmask irqs,
Damien Zammit <=
- [PATCH 2/4] i386: Add AP variants of descriptor tables, Damien Zammit, 2023/01/21
- [PATCH 4/4] Add cpu_number and cpuboot, Damien Zammit, 2023/01/21
- Re: [PATCH 4/4] Add cpu_number and cpuboot, Flávio Cruz, 2023/01/24
- Re: [PATCH 4/4] Add cpu_number and cpuboot, Samuel Thibault, 2023/01/24
- Re: [PATCH 4/4] Add cpu_number and cpuboot, Almudena Garcia, 2023/01/24
- Re: [PATCH 4/4] Add cpu_number and cpuboot, Flávio Cruz, 2023/01/25
- Re: [PATCH 4/4] Add cpu_number and cpuboot, Jessica Clarke, 2023/01/25
- Re: [PATCH 4/4] Add cpu_number and cpuboot, Flávio Cruz, 2023/01/25