lib/sw_apps/zynqmp_pmufw/src/pm_proc.c
static s32 RPUSaveResumeAddr(PmProc* const proc, const u64 address)
{
	s32 status = XST_SUCCESS;
	u32 addrLow = (u32) (address & 0xffffffffULL);

	/*
	 * For RPU processors lower 32-bits matter - only 2 values are
	 * possible to configure, report an error is addrLow is none of
	 * these.
	 */
	if ((PM_PROC_RPU_LOVEC_ADDR != addrLow) &&
	    (PM_PROC_RPU_HIVEC_ADDR != addrLow)) {
		status = XST_INVALID_PARAM;
		goto done;
	}
	/* Set bit0 to mark address as valid */
	proc->resumeAddress = address | (u64)1ULL;
done:
	return status;
}
/**
 * RPUSaveResumeAddr() - Saved address from which RPU core should resume
 * @proc        Processor to which the address should be restored upon wake-up
 * @address     Resume address (64-bit)
 *
 * @return      XStatus of performing save operation
 *              - XST_SUCCESS is address is successfully saved
 *              - XST_INVALID_PARAM if address is invalid
 */
Saved address from which RPU core should resume
@proc        Processor to which the address should be restored upon wake-up
@address     Resume address (64-bit)

@return      XStatus of performing save operation
- XST_SUCCESS is address is successfully saved
- XST_INVALID_PARAM if address is invalid
Saved address from which RPU core should resume @proc Processor to which the address should be restored upon wake - up @address Resume address ( 64 - bit ) @return XStatus of performing save operation - XST_SUCCESS is address is successfully saved - XST_INVALID_PARAM if address is invalid
static s32 RPUSaveResumeAddr(PmProc* const proc, const u64 address)
{
	s32 status = XST_SUCCESS;
	u32 addrLow = (u32) (address & 0xffffffffULL);
	if ((PM_PROC_RPU_LOVEC_ADDR != addrLow) &&
	    (PM_PROC_RPU_HIVEC_ADDR != addrLow)) {
		status = XST_INVALID_PARAM;
		goto done;
	}
	proc->resumeAddress = address | (u64)1ULL;
done:
	return status;
}
static s32 RPUSaveResumeAddr ( PmProc * const proc , const u64 address ) { s32 status = XST_SUCCESS ; u32 addrLow = ( u32 ) ( address & 0xffffffffULL ) ; if ( ( PM_PROC_RPU_LOVEC_ADDR != addrLow ) && ( PM_PROC_RPU_HIVEC_ADDR != addrLow ) ) { status = XST_INVALID_PARAM ; goto done ; } proc -> resumeAddress = address | ( u64 ) 1ULL ; done : return status ; }
RPUSaveResumeAddr() - Saved address from which RPU core should resume
 @proc        Processor to which the address should be restored upon wake-up
 @address     Resume address (64-bit)
RPUSaveResumeAddr () - Saved address from which RPU core should resume @proc Processor to which the address should be restored upon wake - up @address Resume address ( 64 - bit )
/*
	 * For RPU processors lower 32-bits matter - only 2 values are
	 * possible to configure, report an error is addrLow is none of
	 * these.
	 */ /* Set bit0 to mark address as valid */