summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/ez80/switch.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z80/src/ez80/switch.h')
-rw-r--r--nuttx/arch/z80/src/ez80/switch.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/arch/z80/src/ez80/switch.h b/nuttx/arch/z80/src/ez80/switch.h
index de6506490..0bac6aed1 100644
--- a/nuttx/arch/z80/src/ez80/switch.h
+++ b/nuttx/arch/z80/src/ez80/switch.h
@@ -2,7 +2,7 @@
* arch/z80/src/ez80/switch.h
* arch/z80/src/chip/switch.h
*
- * Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009, 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -69,6 +69,9 @@
/* The following macro is used when the system enters interrupt handling logic */
+#define DECL_SAVESTATE() \
+ FAR chipreg_t *savestate
+
#define IRQ_ENTER(irq, regs) \
do { \
savestate = (FAR chipreg_t *)current_regs; \