pm/apic: Keep irq to vector table in RAM when needed by PM

In scenarios where device PM is enabled and dynamic irqs are
used, move the irq to vector table to RAM and keep it updated,
so that we can use this to restore IOAPIC/LOAPIC vector entries.

Jira: ZEP-224
Change-Id: I0d4350d4e30f8ca337a2a1d4f012748c3cb450f4
Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
This commit is contained in:
Jithu Joseph 2016-05-06 21:21:56 -07:00 committed by Anas Nashif
commit 05158f76d7
2 changed files with 20 additions and 0 deletions

View file

@ -130,6 +130,13 @@ void _SysIntVecProgram(unsigned int vector, unsigned int irq, uint32_t flags)
} else {
_loapic_int_vec_set(irq - LOAPIC_IRQ_BASE, vector);
}
#ifndef CONFIG_MVIC
#if (ALL_DYN_IRQ_STUBS > 0) && defined(CONFIG_DEVICE_POWER_MANAGEMENT)
_irq_to_interrupt_vector[irq] = vector;
#endif
#endif
}
/**