lib/sw_apps/libmetal_echo_demo/src/system/freertos/zynqmp_r5/zynqmp_amp_demo/sys_init.c
int init_irq()
{
	xPortInstallInterruptHandler(IPI_IRQ_VECT_ID,
				     (Xil_ExceptionHandler)metal_xlnx_irq_isr,
				     (void *)IPI_IRQ_VECT_ID);
	vPortEnableInterrupt(IPI_IRQ_VECT_ID);
	return 0;
}
/**
 * @brief init_irq() - Register metal_xlnx_irq_isr to handle the IPI
 *	Use FreeRTOS API to install and enable the ISR for the interrupt
 *	controller instance initialized by the FreeRTOS porting layer.
 *	Add error checking for non-debug. The xPortInstallInterruptHandler()
 *	asserts on error unless use_freertos_asserts is false.
 *
 * @return 0
 */
@brief init_irq() - Register metal_xlnx_irq_isr to handle the IPI
Use FreeRTOS API to install and enable the ISR for the interrupt
controller instance initialized by the FreeRTOS porting layer.
Add error checking for non-debug. The xPortInstallInterruptHandler()
asserts on error unless use_freertos_asserts is false.

@return 0
@brief init_irq () - Register metal_xlnx_irq_isr to handle the IPI Use FreeRTOS API to install and enable the ISR for the interrupt controller instance initialized by the FreeRTOS porting layer . Add error checking for non - debug . The xPortInstallInterruptHandler () asserts on error unless use_freertos_asserts is false . @return 0
int init_irq()
{
	xPortInstallInterruptHandler(IPI_IRQ_VECT_ID,
				     (Xil_ExceptionHandler)metal_xlnx_irq_isr,
				     (void *)IPI_IRQ_VECT_ID);
	vPortEnableInterrupt(IPI_IRQ_VECT_ID);
	return 0;
}
int init_irq ( ) { xPortInstallInterruptHandler ( IPI_IRQ_VECT_ID , ( Xil_ExceptionHandler ) metal_xlnx_irq_isr , ( void * ) IPI_IRQ_VECT_ID ) ; vPortEnableInterrupt ( IPI_IRQ_VECT_ID ) ; return 0 ; }
@brief init_irq() - Register metal_xlnx_irq_isr to handle the IPI
      Use FreeRTOS API to install and enable the ISR for the interrupt
      controller instance initialized by the FreeRTOS porting layer.
@brief init_irq () - Register metal_xlnx_irq_isr to handle the IPI Use FreeRTOS API to install and enable the ISR for the interrupt controller instance initialized by the FreeRTOS porting layer .