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

Function arm_gic_cpu_init

libcpu/aarch64/common/gic.c:449–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449int arm_gic_cpu_init(rt_uint64_t index, rt_uint64_t cpu_base)
450{
451 RT_ASSERT(index < ARM_GIC_MAX_NR);
452
453 if (!_gic_table[index].cpu_hw_base)
454 {
455 _gic_table[index].cpu_hw_base = cpu_base;
456 }
457 cpu_base = _gic_table[index].cpu_hw_base;
458
459 GIC_CPU_PRIMASK(cpu_base) = 0xf0U;
460 GIC_CPU_BINPOINT(cpu_base) = 0x7U;
461 /* Enable CPU interrupt */
462 GIC_CPU_CTRL(cpu_base) = 0x01U;
463
464 return 0;
465}
466
467void arm_gic_dump_type(rt_uint64_t index)
468{

Callers 2

rt_hw_interrupt_initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected