lib/sw_services/xilloader/src/xloader.c
int XLoader_LoadPdi(XilPdi* PdiPtr, PdiSrc_t PdiSrc, u64 PdiAddr)
{
	int Status = XST_FAILURE;

	XPlmi_Printf(DEBUG_DETAILED, "%s \n\r", __func__);

	XPlmi_SetPlmMode(XPLMI_MODE_CONFIGURATION);

	XSECURE_TEMPORAL_CHECK(END, Status, XLoader_PdiInit, PdiPtr,
			PdiSrc, PdiAddr);
	Status = XLoader_LoadAndStartSubSystemPdi(PdiPtr);
	if (Status != XST_SUCCESS) {
		goto END;
	}

END:
	XPlmi_SetPlmMode(XPLMI_MODE_OPERATIONAL);
	return Status;
}
/*****************************************************************************/
/**
 * @brief	This function provides loading PDI.
 *
 * @param	PdiPtr is the instance pointer that points to PDI details
 * @param	PdiSrc is source of PDI. It can be in Boot Device or DDR.
 * @param	PdiAddr is the address at PDI is located in the PDI source
 *
 * @return	XST_SUCCESS on success and error code on failure
 *
 *****************************************************************************/
@brief       This function provides loading PDI.
@param       PdiPtr is the instance pointer that points to PDI details
@param       PdiSrc is source of PDI. It can be in Boot Device or DDR.
@param       PdiAddr is the address at PDI is located in the PDI source

@return      XST_SUCCESS on success and error code on failure
@brief This function provides loading PDI . @param PdiPtr is the instance pointer that points to PDI details @param PdiSrc is source of PDI . It can be in Boot Device or DDR . @param PdiAddr is the address at PDI is located in the PDI source @return XST_SUCCESS on success and error code on failure
int XLoader_LoadPdi(XilPdi* PdiPtr, PdiSrc_t PdiSrc, u64 PdiAddr)
{
	int Status = XST_FAILURE;
	XPlmi_Printf(DEBUG_DETAILED, "%s \n\r", __func__);
	XPlmi_SetPlmMode(XPLMI_MODE_CONFIGURATION);
	XSECURE_TEMPORAL_CHECK(END, Status, XLoader_PdiInit, PdiPtr,
			PdiSrc, PdiAddr);
	Status = XLoader_LoadAndStartSubSystemPdi(PdiPtr);
	if (Status != XST_SUCCESS) {
		goto END;
	}
END:
	XPlmi_SetPlmMode(XPLMI_MODE_OPERATIONAL);
	return Status;
}
int XLoader_LoadPdi ( XilPdi * PdiPtr , PdiSrc_t PdiSrc , u64 PdiAddr ) { int Status = XST_FAILURE ; XPlmi_Printf ( DEBUG_DETAILED , " \n \r " , __func__ ) ; XPlmi_SetPlmMode ( XPLMI_MODE_CONFIGURATION ) ; XSECURE_TEMPORAL_CHECK ( END , Status , XLoader_PdiInit , PdiPtr , PdiSrc , PdiAddr ) ; Status = XLoader_LoadAndStartSubSystemPdi ( PdiPtr ) ; if ( Status != XST_SUCCESS ) { goto END ; } END : XPlmi_SetPlmMode ( XPLMI_MODE_OPERATIONAL ) ; return Status ; }
@brief       This function provides loading PDI.
@brief This function provides loading PDI .