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

Function gicv2_init_fail

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

Source from the content-addressed store, hash-verified

574}
575
576static void gicv2_init_fail(struct gicv2 *gic)
577{
578 if (gic->dist_base)
579 {
580 rt_iounmap(gic->dist_base);
581 }
582 if (gic->cpu_base)
583 {
584 rt_iounmap(gic->cpu_base);
585 }
586 if (gic->hyp_base)
587 {
588 rt_iounmap(gic->hyp_base);
589 }
590 if (gic->vcpu_base)
591 {
592 rt_iounmap(gic->vcpu_base);
593 }
594 rt_memset(gic, 0, sizeof(*gic));
595}
596
597static rt_err_t gicv2_ofw_init(struct rt_ofw_node *np, const struct rt_ofw_node_id *id)
598{

Callers 1

gicv2_ofw_initFunction · 0.85

Calls 2

rt_iounmapFunction · 0.85
rt_memsetFunction · 0.85

Tested by

no test coverage detected