mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-07 21:39:19 +00:00
Optimize
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user