You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/02/17 10:32:23 UTC
[incubator-nuttx] 03/06: eZ80: ensure DECL_SAVESTATE() is done when
needed
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit e50b5bef8b17db0044184397487d7810218677ec
Author: Byron Ellacott <co...@bje.id.au>
AuthorDate: Wed Feb 17 17:38:04 2021 +1000
eZ80: ensure DECL_SAVESTATE() is done when needed
---
arch/z80/src/common/z80_doirq.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/z80/src/common/z80_doirq.c b/arch/z80/src/common/z80_doirq.c
index 5ee0c89..fad4c7a 100644
--- a/arch/z80/src/common/z80_doirq.c
+++ b/arch/z80/src/common/z80_doirq.c
@@ -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);