@@ -1507,6 +1507,27 @@ void __init install_system_interrupt_handler(unsigned int n, const void *asm_add
alloc_intr_gate(n, asm_addr);
}
+/*
+ * External interrupt dispatch function.
+ *
+ * Until/unless common_interrupt() can be taught to deal with the
+ * special system vectors, split the dispatch.
+ *
+ * Note: common_interrupt() already deals with IRQ_MOVE_CLEANUP_VECTOR.
+ */
+__visible noinstr void external_interrupt(struct pt_regs *regs,
+ unsigned int vector)
+{
+ unsigned int sysvec = vector - FIRST_SYSTEM_VECTOR;
+
+ BUG_ON(vector < FIRST_EXTERNAL_VECTOR);
+
+ if (sysvec < NR_SYSTEM_VECTORS)
+ return system_interrupt_handler_table[sysvec](regs, vector);
+
+ common_interrupt(regs, vector);
+}
+
void __init trap_init(void)
{
/* Init cpu_entry_area before IST entries are set up */