lib/sw_apps/openamp_rpc_demo/src/system/generic/machine/zynqmp_r5/helper.c
int init_system(void)
{
	int ret;
	struct metal_init_params metal_param = METAL_INIT_DEFAULTS;

	circ.c_buf = get_rsc_trace_info(&circ.c_len);
	if (circ.c_buf && circ.c_len){
		metal_param.log_handler = rsc_trace_logger;
		metal_param.log_level = METAL_LOG_DEBUG;
		circ.c_pos = circ.c_cnt = 0;
	};

	/* Low level abstraction layer for openamp initialization */
	metal_init(&metal_param);

	/* configure the global interrupt controller */
	app_gic_initialize();

	/* Initialize metal Xilinx IRQ controller */
	ret = metal_xlnx_irq_init();
	if (ret) {
		ML_ERR("metal_xlnx_irq_init failed.\n");
	}

	ML_DBG("c_buf,c_len = %p,%u\n", circ.c_buf, circ.c_len);
	return ret;
}
/* Main hw machinery initialization entry point, called from main()*/
/* return 0 on success */
Main hw machinery initialization entry point, called from main()
return 0 on success
Main hw machinery initialization entry point called from main () return 0 on success
int init_system(void)
{
	int ret;
	struct metal_init_params metal_param = METAL_INIT_DEFAULTS;
	circ.c_buf = get_rsc_trace_info(&circ.c_len);
	if (circ.c_buf && circ.c_len){
		metal_param.log_handler = rsc_trace_logger;
		metal_param.log_level = METAL_LOG_DEBUG;
		circ.c_pos = circ.c_cnt = 0;
	};
	metal_init(&metal_param);
	app_gic_initialize();
	ret = metal_xlnx_irq_init();
	if (ret) {
		ML_ERR("metal_xlnx_irq_init failed.\n");
	}
	ML_DBG("c_buf,c_len = %p,%u\n", circ.c_buf, circ.c_len);
	return ret;
}
int init_system ( void ) { int ret ; struct metal_init_params metal_param = METAL_INIT_DEFAULTS ; circ . c_buf = get_rsc_trace_info ( & circ . c_len ) ; if ( circ . c_buf && circ . c_len ) { metal_param . log_handler = rsc_trace_logger ; metal_param . log_level = METAL_LOG_DEBUG ; circ . c_pos = circ . c_cnt = 0 ; } ; metal_init ( & metal_param ) ; app_gic_initialize ( ) ; ret = metal_xlnx_irq_init ( ) ; if ( ret ) { ML_ERR ( " \n " ) ; } ML_DBG ( " \n " , circ . c_buf , circ . c_len ) ; return ret ; }
Main hw machinery initialization entry point, called from main()
return 0 on success
Main hw machinery initialization entry point called from main () return 0 on success
/* Low level abstraction layer for openamp initialization */ /* configure the global interrupt controller */ /* Initialize metal Xilinx IRQ controller */