MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / gicv2_irq_ack

Function gicv2_irq_ack

components/drivers/pic/pic-gicv2.c:155–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155static void gicv2_irq_ack(struct rt_pic_irq *pirq)
156{
157 int hwirq = pirq->hwirq;
158 struct gicv2 *gic = raw_to_gicv2(pirq->pic);
159
160 if (!_gicv2_eoi_mode_ns)
161 {
162 HWREG32(gic->dist_base + GIC_DIST_PENDING_CLEAR + hwirq / 32 * 4) = 1U << (hwirq % 32);
163 }
164
165 HWREG32(gic->cpu_base + GIC_CPU_EOI) = hwirq;
166}
167
168static void gicv2_irq_mask(struct rt_pic_irq *pirq)
169{

Callers 1

gicv2_handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected