We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05bb1a5 commit eb79a8aCopy full SHA for eb79a8a
libcpu/arm/cortex-a/trap.c
@@ -155,12 +155,14 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
155
void rt_hw_trap_irq(void)
156
{
157
void *param;
158
+ int int_ack;
159
int ir;
160
rt_isr_handler_t isr_func;
161
extern struct rt_irq_desc isr_table[];
162
- ir = rt_hw_interrupt_get_irq();
163
+ int_ack = rt_hw_interrupt_get_irq();
164
165
+ ir = int_ack & GIC_ACK_INTID_MASK;
166
if (ir == 1023)
167
168
/* Spurious interrupt */
@@ -181,7 +183,7 @@ void rt_hw_trap_irq(void)
181
183
}
182
184
185
/* end of interrupt */
- rt_hw_interrupt_ack(ir);
186
+ rt_hw_interrupt_ack(int_ack);
187
188
189
void rt_hw_trap_fiq(void)
0 commit comments