eZ80: ensure DECL_SAVESTATE() is done when needed
This commit is contained in:
parent
f0ccce3212
commit
e50b5bef8b
@ -47,6 +47,8 @@ FAR chipreg_t *z80_doirq(uint8_t irq, FAR chipreg_t *regs)
|
||||
{
|
||||
board_autoled_on(LED_INIRQ);
|
||||
|
||||
DECL_SAVESTATE();
|
||||
|
||||
#ifdef CONFIG_SUPPRESS_INTERRUPTS
|
||||
|
||||
IRQ_ENTER(regs);
|
||||
@ -61,8 +63,6 @@ FAR chipreg_t *z80_doirq(uint8_t irq, FAR chipreg_t *regs)
|
||||
|
||||
if (irq < NR_IRQS)
|
||||
{
|
||||
DECL_SAVESTATE();
|
||||
|
||||
/* Indicate that we have entered IRQ processing logic */
|
||||
|
||||
IRQ_ENTER(irq, regs);
|
||||
|
Loading…
Reference in New Issue
Block a user