summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/cpu/irq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c
index d1711af..74b89ad 100644
--- a/arch/x86/cpu/irq.c
+++ b/arch/x86/cpu/irq.c
@@ -209,5 +209,8 @@ void pirq_init(void)
u32 write_pirq_routing_table(u32 addr)
{
+ if (!pirq_routing_table)
+ return addr;
+
return copy_pirq_routing_table(addr, pirq_routing_table);
}