@@ -20,6 +20,8 @@
#ifndef __ASSEMBLY__
struct irqaction;
struct pt_regs;
+extern void __iomem *asm_irq_base;
+extern unsigned int asm_irq_flags;
extern void migrate_irqs(void);
extern void asm_do_IRQ(unsigned int, struct pt_regs *);
@@ -63,6 +63,19 @@
.endm
+/*
+ * Allow machine specific code to initialize asm_irq_base and asm_irq_flags
+ * for use in get_irqnr_preamble and get_irqnr_and_base macros
+ */
+ .pushsection .data
+ .globl asm_irq_base
+asm_irq_base:
+ .long 0
+ .globl asm_irq_flags
+asm_irq_flags:
+ .long 0
+ .popsection
+
#ifdef CONFIG_KPROBES
.section .kprobes.text,"ax",%progbits
#else