Also move the function out of the x86/Interrupts.h file into the generic Interrupts.h file and add a stub for aarch64.
@@ -21,4 +21,6 @@ GenericInterruptHandler& get_interrupt_handler(u8 interrupt_number);
void register_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
void unregister_generic_interrupt_handler(u8 number, GenericInterruptHandler&);
+void initialize_interrupts();
+
}
@@ -23,4 +23,9 @@ void unregister_generic_interrupt_handler(u8, GenericInterruptHandler&)
VERIFY_NOT_REACHED();
+void initialize_interrupts()
+{
+ VERIFY_NOT_REACHED();
+}
@@ -44,6 +44,4 @@ void register_interrupt_handler(u8 number, void (*handler)());
void register_user_callable_interrupt_handler(u8 number, void (*handler)());
void register_disabled_interrupt_handler(u8 number, GenericInterruptHandler& handler);
-void idt_init();
-
@@ -615,7 +615,7 @@ UNMAP_AFTER_INIT void flush_idt()
asm("lidt %0" ::"m"(s_idtr));
-UNMAP_AFTER_INIT void idt_init()
+UNMAP_AFTER_INIT void initialize_interrupts()
{
s_idtr.address = s_idt;
s_idtr.limit = 256 * sizeof(IDTEntry) - 1;
@@ -656,7 +656,7 @@ UNMAP_AFTER_INIT void Processor::initialize(u32 cpu)
#endif
if (cpu == 0)
- idt_init();
+ initialize_interrupts();
else
flush_idt();