lib/sw_services/xilloader/src/xloader.c
int XLoader_Init(void)
{
	volatile int Status = XST_FAILURE;

	/* Initialize the loader commands */
	XLoader_CmdsInit();

	/* Initialize the loader interrupts */
	Status = XLoader_IntrInit();
	if (Status != XST_SUCCESS) {
		goto END;
	}

#ifndef PLM_DEBUG_MODE
	Status = XLoader_CframeInit();
	if (Status != XST_SUCCESS) {
		goto END;
	}
#endif

	/* Setting the secure state of boot in registers and global variables */
	XSECURE_TEMPORAL_CHECK(END, Status, XLoader_SetSecureState);

#ifndef PLM_SECURE_EXCLUDE
	/* Adding task to the scheduler to handle Authenticated JTAG message */
	Status = XLoader_AddAuthJtagToScheduler();
#endif

END:
	return Status;
}
/*****************************************************************************/
/**
 * @brief	This function initializes the loader instance and registers loader
 * commands with PLM.
 *
 * @return	XST_SUCCESS on success and error code on failure
 *
 *****************************************************************************/
@brief       This function initializes the loader instance and registers loader
commands with PLM.

@return      XST_SUCCESS on success and error code on failure
@brief This function initializes the loader instance and registers loader commands with PLM . @return XST_SUCCESS on success and error code on failure
int XLoader_Init(void)
{
	volatile int Status = XST_FAILURE;
	XLoader_CmdsInit();
	Status = XLoader_IntrInit();
	if (Status != XST_SUCCESS) {
		goto END;
	}
#ifndef PLM_DEBUG_MODE
	Status = XLoader_CframeInit();
	if (Status != XST_SUCCESS) {
		goto END;
	}
#endif
	XSECURE_TEMPORAL_CHECK(END, Status, XLoader_SetSecureState);
#ifndef PLM_SECURE_EXCLUDE
	Status = XLoader_AddAuthJtagToScheduler();
#endif
END:
	return Status;
}
int XLoader_Init ( void ) { volatile int Status = XST_FAILURE ; XLoader_CmdsInit ( ) ; Status = XLoader_IntrInit ( ) ; if ( Status != XST_SUCCESS ) { goto END ; } #ifndef PLM_DEBUG_MODE Status = XLoader_CframeInit ( ) ; if ( Status != XST_SUCCESS ) { goto END ; } #endif XSECURE_TEMPORAL_CHECK ( END , Status , XLoader_SetSecureState ) ; #ifndef PLM_SECURE_EXCLUDE Status = XLoader_AddAuthJtagToScheduler ( ) ; #endif END : return Status ; }
@brief       This function initializes the loader instance and registers loader
 commands with PLM.
@brief This function initializes the loader instance and registers loader commands with PLM .
/* Initialize the loader commands */ /* Initialize the loader interrupts */ /* Setting the secure state of boot in registers and global variables */ /* Adding task to the scheduler to handle Authenticated JTAG message */