mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
eZ80: ensure DECL_SAVESTATE() is done when needed
This commit is contained in:
committed by
Xiang Xiao
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);
|
||||
|
||||
Reference in New Issue
Block a user