z8f should use up_maskack_irq
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@697 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
fb76a5e579
commit
7629c2c811
|
@ -84,7 +84,7 @@ FAR chipreg_t *up_doirq(ubyte irq, FAR chipreg_t *regs)
|
||||||
#else
|
#else
|
||||||
if (irq < NR_IRQS)
|
if (irq < NR_IRQS)
|
||||||
{
|
{
|
||||||
/* Indicate that we have enter IRQ processing logic */
|
/* Indicate that we have entered IRQ processing logic */
|
||||||
|
|
||||||
IRQ_ENTER(irq, regs);
|
IRQ_ENTER(irq, regs);
|
||||||
|
|
||||||
|
@ -104,3 +104,4 @@ FAR chipreg_t *up_doirq(ubyte irq, FAR chipreg_t *regs)
|
||||||
return regs;
|
return regs;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,7 @@
|
||||||
do { \
|
do { \
|
||||||
g_z8irqstate.state = Z8_IRQSTATE_ENTRY; \
|
g_z8irqstate.state = Z8_IRQSTATE_ENTRY; \
|
||||||
g_z8irqstate.regs = (regs); \
|
g_z8irqstate.regs = (regs); \
|
||||||
|
up_maskask_irq(irq); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* The following macro is used when the system exits interrupt handling logic */
|
/* The following macro is used when the system exits interrupt handling logic */
|
||||||
|
@ -123,6 +124,7 @@
|
||||||
#define IRQ_LEAVE(irq) \
|
#define IRQ_LEAVE(irq) \
|
||||||
do { \
|
do { \
|
||||||
g_z8irqstate.state = Z8_IRQSTATE_NONE; \
|
g_z8irqstate.state = Z8_IRQSTATE_NONE; \
|
||||||
|
up_enable_irq(irq); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* The following macro is used to sample the interrupt state (as a opaque handle) */
|
/* The following macro is used to sample the interrupt state (as a opaque handle) */
|
||||||
|
|
Loading…
Reference in New Issue