From 044eab869130e80af295ae250a67f036beed6b0f Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 30 Dec 2007 21:08:23 +0000 Subject: [PATCH] Add support of other resets git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@464 42af7a65-404d-4744-a932-0658087f49c3 --- configs/z80sim/src/z80_decodeirq.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configs/z80sim/src/z80_decodeirq.c b/configs/z80sim/src/z80_decodeirq.c index c1acfffb94e..0b52bc7a6da 100644 --- a/configs/z80sim/src/z80_decodeirq.c +++ b/configs/z80sim/src/z80_decodeirq.c @@ -68,7 +68,7 @@ * Public Functions ********************************************************************************/ -FAR chipreg_t *up_decodeirq(FAR chipreg_t *regs) +FAR chipreg_t *up_decodeirq(uint8 rstno, FAR chipreg_t *regs) { #ifdef CONFIG_SUPPRESS_INTERRUPTS @@ -85,9 +85,12 @@ FAR chipreg_t *up_decodeirq(FAR chipreg_t *regs) current_regs = regs; - /* Deliver the IRQ -- the simulation supports only timer interrupts */ + /* Deliver the IRQ -- the simulation supports only timer interrupts and + * the IRQ maps to the reset number (real hardware probably needs an + * additional level of interrupt decoding. + */ - irq_dispatch(Z80_IRQ_SYSTIMER, regs); + irq_dispatch((int)rstno, regs); /* If a context switch occurred, current_regs will hold the new context */