From 682067216c5dd3084ab4c7c043e519be43ad73db Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 13 Dec 2012 18:13:22 +0000 Subject: Add special register definitions needed for z80181 and z80182 git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5434 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/xtrs/src/xtr_irq.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'nuttx/configs/xtrs/src') diff --git a/nuttx/configs/xtrs/src/xtr_irq.c b/nuttx/configs/xtrs/src/xtr_irq.c index 72f6c10e2..e72c0be3b 100644 --- a/nuttx/configs/xtrs/src/xtr_irq.c +++ b/nuttx/configs/xtrs/src/xtr_irq.c @@ -71,7 +71,7 @@ void up_irqinitialize(void) { - /* Attach the timer interrupt -- There is not special timer interrupt + /* Attach the timer interrupt -- There is no special timer interrupt * enable in the simulation so it must be enabled here before interrupts * are enabled. * @@ -97,10 +97,12 @@ void up_irqinitialize(void) * ****************************************************************************/ +#ifndef CONFIG_ARCH_NOINTC void up_disable_irq(int irq) { irqrestore(0); } +#endif /**************************************************************************** * Name: up_enable_irq @@ -110,7 +112,9 @@ void up_disable_irq(int irq) * ****************************************************************************/ +#ifndef CONFIG_ARCH_NOINTC void up_enable_irq(int irq) { - irqrestore(true); + irqrestore(Z80_C_FLAG); } +#endif -- cgit v1.2.3