lib/sw_services/xilloader/src/xloader.c
static int XLoader_LoadAndStartSubSystemPdi(XilPdi *PdiPtr)
{
	int Status = XST_FAILURE;

	Status = XLoader_LoadAndStartSubSystemImages(PdiPtr);
	if (Status != XST_SUCCESS) {
		goto END;
	}

	Status = XLoader_LoadAndStartSecPdi(PdiPtr);
	if (Status != XST_SUCCESS) {
		goto END;
	}

	/* Mark PDI loading is completed */
	XPlmi_Out32(PMC_GLOBAL_DONE, XLOADER_PDI_LOAD_COMPLETE);

END:
	return Status;
}
/*****************************************************************************/
/**
 * @brief	This function is used to load the primary and secondary PDIs.
 *
 * @param	PdiPtr is Pdi instance pointer
 *
 * @return	XST_SUCCESS on success and error code on failure
 *
 *****************************************************************************/
@brief       This function is used to load the primary and secondary PDIs.
@param       PdiPtr is Pdi instance pointer

@return      XST_SUCCESS on success and error code on failure
@brief This function is used to load the primary and secondary PDIs . @param PdiPtr is Pdi instance pointer @return XST_SUCCESS on success and error code on failure
static int XLoader_LoadAndStartSubSystemPdi(XilPdi *PdiPtr)
{
	int Status = XST_FAILURE;
	Status = XLoader_LoadAndStartSubSystemImages(PdiPtr);
	if (Status != XST_SUCCESS) {
		goto END;
	}
	Status = XLoader_LoadAndStartSecPdi(PdiPtr);
	if (Status != XST_SUCCESS) {
		goto END;
	}
	XPlmi_Out32(PMC_GLOBAL_DONE, XLOADER_PDI_LOAD_COMPLETE);
END:
	return Status;
}
static int XLoader_LoadAndStartSubSystemPdi ( XilPdi * PdiPtr ) { int Status = XST_FAILURE ; Status = XLoader_LoadAndStartSubSystemImages ( PdiPtr ) ; if ( Status != XST_SUCCESS ) { goto END ; } Status = XLoader_LoadAndStartSecPdi ( PdiPtr ) ; if ( Status != XST_SUCCESS ) { goto END ; } XPlmi_Out32 ( PMC_GLOBAL_DONE , XLOADER_PDI_LOAD_COMPLETE ) ; END : return Status ; }
@brief       This function is used to load the primary and secondary PDIs.
@brief This function is used to load the primary and secondary PDIs .
/* Mark PDI loading is completed */