summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/z180/z180_irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/z80/src/z180/z180_irq.c')
-rw-r--r--nuttx/arch/z80/src/z180/z180_irq.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/arch/z80/src/z180/z180_irq.c b/nuttx/arch/z80/src/z180/z180_irq.c
index 929f38d6a..d5d625b33 100644
--- a/nuttx/arch/z80/src/z180/z180_irq.c
+++ b/nuttx/arch/z80/src/z180/z180_irq.c
@@ -58,6 +58,14 @@
volatile chipreg_t *current_regs;
+/* This holds the value of the MMU's CBR register. This value is set to the
+ * interrupted tasks's CBR on interrupt entry, changed to the new task's CBR if
+ * an interrrupt level context switch occurs, and restored on interrupt exit. In
+ * this way, the CBR is always correct on interrupt exit.
+ */
+
+uint8_t current_cbr;
+
/****************************************************************************
* Private Data
****************************************************************************/