diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-30 21:08:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-30 21:08:23 +0000 |
commit | 9f740c40ba0aabdc4501452e93d0a22524cb4c7d (patch) | |
tree | dd5696bdff3cc00d9b4115380394549197922e8f /nuttx/configs/z80sim/src | |
parent | 3eb484bd4d79de731b743d9dccf9a2535b82699f (diff) | |
download | px4-nuttx-9f740c40ba0aabdc4501452e93d0a22524cb4c7d.tar.gz px4-nuttx-9f740c40ba0aabdc4501452e93d0a22524cb4c7d.tar.bz2 px4-nuttx-9f740c40ba0aabdc4501452e93d0a22524cb4c7d.zip |
Add support of other resets
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@464 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/z80sim/src')
-rw-r--r-- | nuttx/configs/z80sim/src/z80_decodeirq.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/configs/z80sim/src/z80_decodeirq.c b/nuttx/configs/z80sim/src/z80_decodeirq.c index c1acfffb9..0b52bc7a6 100644 --- a/nuttx/configs/z80sim/src/z80_decodeirq.c +++ b/nuttx/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 */ |