forked from Bananymous/banan-os
Kernel: Store current processor pointer in IA32_GS_BASE
This allows easier access to processors fields
This commit is contained in:
@@ -8,11 +8,10 @@ namespace Kernel
|
||||
|
||||
void Interruptable::set_irq(int irq)
|
||||
{
|
||||
auto& processor = Processor::current();
|
||||
if (m_irq != -1)
|
||||
processor.idt().register_irq_handler(m_irq, nullptr);
|
||||
Processor::idt().register_irq_handler(m_irq, nullptr);
|
||||
m_irq = irq;
|
||||
processor.idt().register_irq_handler(irq, this);
|
||||
Processor::idt().register_irq_handler(irq, this);
|
||||
}
|
||||
|
||||
void Interruptable::enable_interrupt()
|
||||
|
||||
Reference in New Issue
Block a user