Esempio n. 1
0
AGESA_STATUS agesawrapper_amdlaterunaptask (
	UINT32 Func,
	UINT32 Data,
	VOID *ConfigPtr
	)
{
	AGESA_STATUS Status;
	AP_EXE_PARAMS ApExeParams;

	LibAmdMemFill (&ApExeParams,
		       0,
		       sizeof (AP_EXE_PARAMS),
		       &(ApExeParams.StdHeader));

	ApExeParams.StdHeader.AltImageBasePtr = 0;
	ApExeParams.StdHeader.CalloutPtr = &GetBiosCallout;
	ApExeParams.StdHeader.Func = 0;
	ApExeParams.StdHeader.ImageBasePtr = 0;
	ApExeParams.FunctionNumber = Func;
	ApExeParams.RelatedDataBlock = ConfigPtr;

	Status = AmdLateRunApTask (&ApExeParams);
	if (Status != AGESA_SUCCESS) {
		/* agesawrapper_amdreadeventlog(); */
		ASSERT(Status == AGESA_SUCCESS);
	}

	return Status;
}
Esempio n. 2
0
/**
 *  AgesaLaunchApForGivenTask
 *
 * Description
 *    Call the host environment interface to provide a user hook opportunity.
 *
 * @return   The AGESA Status returned from the callout.
 *
 */
AGESA_STATUS
AgesaLaunchApForGivenTask (
  VOID
  )
{
  AMD_INTERFACE_PARAMS  AmdInterfaceParams;
  AGESA_STATUS          AgesaStatus;
  AP_EXE_PARAMS         *ApExeParams;
  //
  // Invoke AmdAmdCpuLateInit
  //
  AmdInterfaceParams.AllocationMethod = PostMemDram;
  AmdInterfaceParams.AgesaFunctionName = AMD_LATE_RUN_AP_TASK;
  AgesaStatus = AmdCreateStruct (&AmdInterfaceParams);
  ApExeParams = (AP_EXE_PARAMS *)AmdInterfaceParams.NewStructPtr;

  ApExeParams->RelatedBlockLength = RelatedBlockLength;
  ApExeParams->RelatedDataBlock = RelatedDataBlock;
  ApExeParams->FunctionNumber = FunctionNumber;

  AgesaStatus = AmdLateRunApTask (ApExeParams);

  AmdReleaseStruct (&AmdInterfaceParams);

  return AgesaStatus;
}
Esempio n. 3
0
AGESA_STATUS agesawrapper_amdlaterunaptask(UINT32 Func, UINT32 Data, VOID * ConfigPtr)
{
	AGESA_STATUS status;
	AP_EXE_PARAMS ApExeParams;

	memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));

	ApExeParams.StdHeader.AltImageBasePtr = 0;
	ApExeParams.StdHeader.CalloutPtr = &GetBiosCallout;
	ApExeParams.StdHeader.Func = 0;
	ApExeParams.StdHeader.ImageBasePtr = 0;
	ApExeParams.FunctionNumber = Func;
	ApExeParams.RelatedDataBlock = ConfigPtr;

	status = AmdLateRunApTask(&ApExeParams);
	AGESA_EVENTLOG(status, &ApExeParams.StdHeader);
	ASSERT(status == AGESA_SUCCESS);

	return status;
}