The ZYNQMP_RPU_CORE_INDEX macro is undefined in the code, making BSP_ARM_GIC_MULTI_PROCESSOR_SECONDARY never being defined, which makes the secondary core initialize GIC again. It should be changed to ZYNQMP_RPU_SPLIT_INDEX.