diff options
author | Liav A <liavalb@gmail.com> | 2020-03-09 16:55:30 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-19 15:48:00 +0100 |
commit | a0a720491588e8f9a407ee3580c591fc48cfc7bf (patch) | |
tree | f1924822d8506a65fcdf8c3168b9d3efa28cd9b4 | |
parent | e880fe0765feeeb9cbc6de9cc508d397a5d6959c (diff) | |
download | serenity-a0a720491588e8f9a407ee3580c591fc48cfc7bf.zip |
Interrupts: Add an interface to determine if SMP is enabled
-rw-r--r-- | Kernel/Interrupts/InterruptManagement.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Interrupts/InterruptManagement.h b/Kernel/Interrupts/InterruptManagement.h index 9c448c45be..2f6815795a 100644 --- a/Kernel/Interrupts/InterruptManagement.h +++ b/Kernel/Interrupts/InterruptManagement.h @@ -51,6 +51,8 @@ public: virtual void switch_to_pic_mode(); virtual void switch_to_ioapic_mode(); + + bool smp_enabled() const { return m_smp_enabled; } RefPtr<IRQController> get_responsible_irq_controller(u8 interrupt_vector); Vector<RefPtr<ISAInterruptOverrideMetadata>> isa_overrides(); |