lib/sw_apps/zynqmp_pmufw/src/pm_proc.c
static void APURestoreResumeAddr(PmProc* const proc)
{
	/* mask out resumeAddress BIT0, which indicates address validity */
	u32 addrLow = (u32) (proc->resumeAddress & 0xfffffffeULL);
	u32 addrHigh = (u32) (proc->resumeAddress >> 32ULL);

	if (0ULL == (proc->resumeAddress & 1ULL)) {
		goto done;
	}

	XPfw_Write32(proc->resumeCfg, addrLow);
	XPfw_Write32(proc->resumeCfg + 4U, addrHigh);

	/* Mark resume address as invalid by setting it to 0 */
	proc->resumeAddress = 0ULL;
done:
	return;
}
/**
 * APURestoreResumeAddr() - Restore resume address for APU core
 * @proc        Processor whose address should be restored
 */
Restore resume address for APU core
@proc        Processor whose address should be restored
Restore resume address for APU core @proc Processor whose address should be restored
static void APURestoreResumeAddr(PmProc* const proc)
{
	u32 addrLow = (u32) (proc->resumeAddress & 0xfffffffeULL);
	u32 addrHigh = (u32) (proc->resumeAddress >> 32ULL);
	if (0ULL == (proc->resumeAddress & 1ULL)) {
		goto done;
	}
	XPfw_Write32(proc->resumeCfg, addrLow);
	XPfw_Write32(proc->resumeCfg + 4U, addrHigh);
	proc->resumeAddress = 0ULL;
done:
	return;
}
static void APURestoreResumeAddr ( PmProc * const proc ) { u32 addrLow = ( u32 ) ( proc -> resumeAddress & 0xfffffffeULL ) ; u32 addrHigh = ( u32 ) ( proc -> resumeAddress >> 32ULL ) ; if ( 0ULL == ( proc -> resumeAddress & 1ULL ) ) { goto done ; } XPfw_Write32 ( proc -> resumeCfg , addrLow ) ; XPfw_Write32 ( proc -> resumeCfg + 4U , addrHigh ) ; proc -> resumeAddress = 0ULL ; done : return ; }
APURestoreResumeAddr() - Restore resume address for APU core
 @proc        Processor whose address should be restored
APURestoreResumeAddr () - Restore resume address for APU core @proc Processor whose address should be restored
/* mask out resumeAddress BIT0, which indicates address validity */ /* Mark resume address as invalid by setting it to 0 */