serial_console: Use static wrappers with right _IntExit()
Instead of calling directly isr call static wrapper with right _IntExit() at the end. Change-Id: Ic5ca74200be6477837bf6a25803540990e9e8889 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
c121074115
commit
c6a72c2f81
2 changed files with 18 additions and 4 deletions
|
|
@ -63,12 +63,19 @@ vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = {
|
|||
|
||||
extern void _SpuriousIRQ(void);
|
||||
|
||||
/* placeholders: fill with real ISRs */
|
||||
#if defined(CONFIG_CONSOLE_HANDLER)
|
||||
static void _uart_console_isr(void)
|
||||
{
|
||||
uart_console_isr(NULL);
|
||||
_IntExit();
|
||||
}
|
||||
#endif /* CONFIG_CONSOLE_HANDLER */
|
||||
|
||||
/* placeholders: fill with real ISRs */
|
||||
vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = {
|
||||
[0 ...(CONFIG_NUM_IRQS - 1)] = _SpuriousIRQ,
|
||||
#if defined(CONFIG_CONSOLE_HANDLER)
|
||||
[CONFIG_UART_CONSOLE_IRQ] = (vth)uart_console_isr,
|
||||
[CONFIG_UART_CONSOLE_IRQ] = _uart_console_isr,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -63,12 +63,19 @@ vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = {
|
|||
|
||||
extern void _SpuriousIRQ(void);
|
||||
|
||||
/* placeholders: fill with real ISRs */
|
||||
#if defined(CONFIG_CONSOLE_HANDLER)
|
||||
static void _uart_console_isr(void)
|
||||
{
|
||||
uart_console_isr(NULL);
|
||||
_IntExit();
|
||||
}
|
||||
#endif /* CONFIG_CONSOLE_HANDLER */
|
||||
|
||||
/* placeholders: fill with real ISRs */
|
||||
vth __irq_vector_table _IrqVectorTable[CONFIG_NUM_IRQS] = {
|
||||
[0 ...(CONFIG_NUM_IRQS - 1)] = _SpuriousIRQ,
|
||||
#if defined(CONFIG_CONSOLE_HANDLER)
|
||||
[CONFIG_UART_CONSOLE_IRQ] = (vth)uart_console_isr,
|
||||
[CONFIG_UART_CONSOLE_IRQ] = _uart_console_isr,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue