This commit is contained in:
Alex
2023-02-27 22:20:02 +02:00
parent 392ebc9be2
commit 65dfa325e9
5 changed files with 221 additions and 145 deletions

View File

@ -124,14 +124,14 @@ namespace Interrupts
if (likely(CoreData != nullptr))
Core = CoreData->ID;
// If this is false, we have a big problem.
/* If this is false, we have a big problem. */
if (likely(Frame->InterruptNumber < CPU::x86::IRQ223 && Frame->InterruptNumber > CPU::x86::ISR0))
{
if (Frame->InterruptNumber == CPU::x86::IRQ29) // Halt core interrupt
/* Halt core interrupt */
if (unlikely(Frame->InterruptNumber == CPU::x86::IRQ29))
CPU::Stop();
Handler *handler = nullptr;
foreach (auto var in RegisteredEvents)
{
if (var.ID == static_cast<int>(Frame->InterruptNumber))