mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03:00
CPU: Allow to use IRQs in range of 50 to 178
This commit is contained in:
parent
30fc78bfaf
commit
f33fb151b4
Notes:
sideshowbarker
2024-07-19 08:52:57 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/f33fb151b49 Pull-request: https://github.com/SerenityOS/serenity/pull/1355 Reviewed-by: https://github.com/awesomekling
@ -625,6 +625,8 @@ void idt_init()
|
||||
register_interrupt_handler(0xce, interrupt_126_asm_entry);
|
||||
register_interrupt_handler(0xcf, interrupt_127_asm_entry);
|
||||
|
||||
dbg() << "Installing Unhandled Handlers";
|
||||
|
||||
for (u8 i = 0; i < GENERIC_INTERRUPT_HANDLERS_COUNT; ++i) {
|
||||
new UnhandledInterruptHandler(i);
|
||||
}
|
||||
@ -643,7 +645,7 @@ void handle_interrupt(RegisterState regs)
|
||||
{
|
||||
clac();
|
||||
++g_in_irq;
|
||||
ASSERT(regs.isr_number >= 0x50 && regs.isr_number <= 0x5f);
|
||||
ASSERT(regs.isr_number >= IRQ_VECTOR_BASE && regs.isr_number <= (IRQ_VECTOR_BASE + GENERIC_INTERRUPT_HANDLERS_COUNT));
|
||||
u8 irq = (u8)(regs.isr_number - 0x50);
|
||||
ASSERT(s_interrupt_handler[irq]);
|
||||
s_interrupt_handler[irq]->handle_interrupt(regs);
|
||||
|
Loading…
Reference in New Issue
Block a user