AMD F14h boards: Use std memset/memcpy func over AGESA
In amd/{persimmon,inagua} and derived boards avoid using AGESA
reimplementation of memcpy as following the reasoning in:
e2f3bfc
jetway/nf81-t56n-lf: Use std memset/memcpy func over AGESA
Change-Id: I943b46103c3bf1c5fd88b25e9f9595b9adfcafeb
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/5625
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
8e5435a74b
commit
8864e1c149
@@ -24,6 +24,8 @@
|
|||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------------*/
|
||||||
@@ -127,24 +129,9 @@ OemCustomizeInitEarly (
|
|||||||
AllocHeapParams.BufferPtr += sizeof(PortList);
|
AllocHeapParams.BufferPtr += sizeof(PortList);
|
||||||
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieComplexListPtr,
|
memcpy(BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos));
|
||||||
0,
|
memcpy(BrazosPciePortPtr, &PortList[0], sizeof(PortList));
|
||||||
sizeof(Brazos),
|
memcpy(BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList));
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPciePortPtr,
|
|
||||||
0,
|
|
||||||
sizeof(PortList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieDdiPtr,
|
|
||||||
0,
|
|
||||||
sizeof(DdiList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemCopy (BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPciePortPtr, &PortList[0], sizeof(PortList), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList), &InitEarly->StdHeader);
|
|
||||||
|
|
||||||
|
|
||||||
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
||||||
|
@@ -184,15 +184,8 @@ agesawrapper_amdinitreset (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
LibAmdMemFill (&AmdResetParams,
|
|
||||||
0,
|
|
||||||
sizeof (AMD_RESET_PARAMS),
|
|
||||||
&(AmdResetParams.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
||||||
AmdParamStruct.AllocationMethod = ByHost;
|
AmdParamStruct.AllocationMethod = ByHost;
|
||||||
@@ -220,10 +213,7 @@ agesawrapper_amdinitearly (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -254,10 +244,7 @@ agesawrapper_amdinitpost (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -295,10 +282,7 @@ agesawrapper_amdinitenv (
|
|||||||
PCI_ADDR PciAddress;
|
PCI_ADDR PciAddress;
|
||||||
UINT32 PciValue;
|
UINT32 PciValue;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -422,10 +406,7 @@ agesawrapper_amdinitmid (
|
|||||||
/* Enable MMIO on AMD CPU Address Map Controller */
|
/* Enable MMIO on AMD CPU Address Map Controller */
|
||||||
agesawrapper_amdinitcpuio ();
|
agesawrapper_amdinitcpuio ();
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -452,10 +433,7 @@ agesawrapper_amdinitlate (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -506,10 +484,7 @@ agesawrapper_amdlaterunaptask (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill (&ApExeParams,
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AP_EXE_PARAMS),
|
|
||||||
&(ApExeParams.StdHeader));
|
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
||||||
@@ -535,10 +510,7 @@ agesawrapper_amdreadeventlog (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
EVENT_PARAMS AmdEventParams;
|
EVENT_PARAMS AmdEventParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdEventParams,
|
memset(&AmdEventParams, 0, sizeof(EVENT_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (EVENT_PARAMS),
|
|
||||||
&(AmdEventParams.StdHeader));
|
|
||||||
|
|
||||||
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
||||||
|
@@ -25,6 +25,8 @@
|
|||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#include "BiosCallOuts.h"
|
#include "BiosCallOuts.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------------*/
|
||||||
@@ -136,24 +138,9 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||||||
AllocHeapParams.BufferPtr += sizeof(PortList);
|
AllocHeapParams.BufferPtr += sizeof(PortList);
|
||||||
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieComplexListPtr,
|
memcpy(BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos));
|
||||||
0,
|
memcpy(BrazosPciePortPtr, &PortList[0], sizeof(PortList));
|
||||||
sizeof(Brazos),
|
memcpy(BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList));
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPciePortPtr,
|
|
||||||
0,
|
|
||||||
sizeof(PortList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieDdiPtr,
|
|
||||||
0,
|
|
||||||
sizeof(DdiList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemCopy (BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPciePortPtr, &PortList[0], sizeof(PortList), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList), &InitEarly->StdHeader);
|
|
||||||
|
|
||||||
|
|
||||||
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
||||||
|
@@ -188,15 +188,8 @@ agesawrapper_amdinitreset (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
LibAmdMemFill (&AmdResetParams,
|
|
||||||
0,
|
|
||||||
sizeof (AMD_RESET_PARAMS),
|
|
||||||
&(AmdResetParams.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
||||||
AmdParamStruct.AllocationMethod = ByHost;
|
AmdParamStruct.AllocationMethod = ByHost;
|
||||||
@@ -224,10 +217,7 @@ agesawrapper_amdinitearly (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -275,10 +265,7 @@ agesawrapper_amdinitpost (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -316,10 +303,7 @@ agesawrapper_amdinitenv (
|
|||||||
PCI_ADDR PciAddress;
|
PCI_ADDR PciAddress;
|
||||||
UINT32 PciValue;
|
UINT32 PciValue;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -443,10 +427,7 @@ agesawrapper_amdinitmid (
|
|||||||
/* Enable MMIO on AMD CPU Address Map Controller */
|
/* Enable MMIO on AMD CPU Address Map Controller */
|
||||||
agesawrapper_amdinitcpuio ();
|
agesawrapper_amdinitcpuio ();
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -473,10 +454,7 @@ agesawrapper_amdinitlate (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -528,10 +506,7 @@ agesawrapper_amdinitresume (
|
|||||||
AMD_RESUME_PARAMS *AmdResumeParamsPtr;
|
AMD_RESUME_PARAMS *AmdResumeParamsPtr;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESUME;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESUME;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -570,10 +545,8 @@ agesawrapper_amds3laterestore (
|
|||||||
AMD_S3LATE_PARAMS *AmdS3LateParamsPtr;
|
AMD_S3LATE_PARAMS *AmdS3LateParamsPtr;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdS3LateParams,
|
memset(&AmdS3LateParams, 0, sizeof(AMD_S3LATE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_S3LATE_PARAMS),
|
|
||||||
&(AmdS3LateParams.StdHeader));
|
|
||||||
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
||||||
AmdInterfaceParams.AllocationMethod = ByHost;
|
AmdInterfaceParams.AllocationMethod = ByHost;
|
||||||
AmdInterfaceParams.AgesaFunctionName = AMD_S3LATE_RESTORE;
|
AmdInterfaceParams.AgesaFunctionName = AMD_S3LATE_RESTORE;
|
||||||
@@ -611,10 +584,7 @@ agesawrapper_amdS3Save (
|
|||||||
AMD_INTERFACE_PARAMS AmdInterfaceParams;
|
AMD_INTERFACE_PARAMS AmdInterfaceParams;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdInterfaceParams,
|
memset(&AmdInterfaceParams, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdInterfaceParams.StdHeader));
|
|
||||||
|
|
||||||
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
||||||
AmdInterfaceParams.StdHeader.HeapStatus = HEAP_SYSTEM_MEM;
|
AmdInterfaceParams.StdHeader.HeapStatus = HEAP_SYSTEM_MEM;
|
||||||
@@ -669,10 +639,7 @@ agesawrapper_amdlaterunaptask (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill (&ApExeParams,
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AP_EXE_PARAMS),
|
|
||||||
&(ApExeParams.StdHeader));
|
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
||||||
@@ -698,10 +665,7 @@ agesawrapper_amdreadeventlog (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
EVENT_PARAMS AmdEventParams;
|
EVENT_PARAMS AmdEventParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdEventParams,
|
memset(&AmdEventParams, 0, sizeof(EVENT_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (EVENT_PARAMS),
|
|
||||||
&(AmdEventParams.StdHeader));
|
|
||||||
|
|
||||||
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
||||||
|
@@ -24,6 +24,8 @@
|
|||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------------*/
|
||||||
@@ -135,24 +137,9 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||||||
AllocHeapParams.BufferPtr += sizeof(PortList);
|
AllocHeapParams.BufferPtr += sizeof(PortList);
|
||||||
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieComplexListPtr,
|
memcpy(BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos));
|
||||||
0,
|
memcpy(BrazosPciePortPtr, &PortList[0], sizeof(PortList));
|
||||||
sizeof(Brazos),
|
memcpy(BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList));
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPciePortPtr,
|
|
||||||
0,
|
|
||||||
sizeof(PortList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieDdiPtr,
|
|
||||||
0,
|
|
||||||
sizeof(DdiList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemCopy (BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPciePortPtr, &PortList[0], sizeof(PortList), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList), &InitEarly->StdHeader);
|
|
||||||
|
|
||||||
|
|
||||||
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
||||||
|
@@ -184,15 +184,8 @@ agesawrapper_amdinitreset (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
LibAmdMemFill (&AmdResetParams,
|
|
||||||
0,
|
|
||||||
sizeof (AMD_RESET_PARAMS),
|
|
||||||
&(AmdResetParams.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
||||||
AmdParamStruct.AllocationMethod = ByHost;
|
AmdParamStruct.AllocationMethod = ByHost;
|
||||||
@@ -220,10 +213,7 @@ agesawrapper_amdinitearly (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -254,10 +244,7 @@ agesawrapper_amdinitpost (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -295,10 +282,7 @@ agesawrapper_amdinitenv (
|
|||||||
PCI_ADDR PciAddress;
|
PCI_ADDR PciAddress;
|
||||||
UINT32 PciValue;
|
UINT32 PciValue;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -422,10 +406,7 @@ agesawrapper_amdinitmid (
|
|||||||
/* Enable MMIO on AMD CPU Address Map Controller */
|
/* Enable MMIO on AMD CPU Address Map Controller */
|
||||||
agesawrapper_amdinitcpuio ();
|
agesawrapper_amdinitcpuio ();
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -452,10 +433,7 @@ agesawrapper_amdinitlate (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -501,10 +479,7 @@ agesawrapper_amdlaterunaptask (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill (&ApExeParams,
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AP_EXE_PARAMS),
|
|
||||||
&(ApExeParams.StdHeader));
|
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
||||||
@@ -530,10 +505,7 @@ agesawrapper_amdreadeventlog (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
EVENT_PARAMS AmdEventParams;
|
EVENT_PARAMS AmdEventParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdEventParams,
|
memset(&AmdEventParams, 0, sizeof(EVENT_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (EVENT_PARAMS),
|
|
||||||
&(AmdEventParams.StdHeader));
|
|
||||||
|
|
||||||
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
||||||
|
@@ -24,6 +24,8 @@
|
|||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------------*/
|
||||||
@@ -137,24 +139,9 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||||||
AllocHeapParams.BufferPtr += sizeof(PortList);
|
AllocHeapParams.BufferPtr += sizeof(PortList);
|
||||||
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieComplexListPtr,
|
memcpy(BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos));
|
||||||
0,
|
memcpy(BrazosPciePortPtr, &PortList[0], sizeof(PortList));
|
||||||
sizeof(Brazos),
|
memcpy(BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList));
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPciePortPtr,
|
|
||||||
0,
|
|
||||||
sizeof(PortList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieDdiPtr,
|
|
||||||
0,
|
|
||||||
sizeof(DdiList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemCopy (BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPciePortPtr, &PortList[0], sizeof(PortList), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList), &InitEarly->StdHeader);
|
|
||||||
|
|
||||||
|
|
||||||
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
||||||
|
@@ -184,15 +184,8 @@ agesawrapper_amdinitreset (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
LibAmdMemFill (&AmdResetParams,
|
|
||||||
0,
|
|
||||||
sizeof (AMD_RESET_PARAMS),
|
|
||||||
&(AmdResetParams.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
||||||
AmdParamStruct.AllocationMethod = ByHost;
|
AmdParamStruct.AllocationMethod = ByHost;
|
||||||
@@ -220,10 +213,7 @@ agesawrapper_amdinitearly (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -254,10 +244,7 @@ agesawrapper_amdinitpost (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -295,10 +282,7 @@ agesawrapper_amdinitenv (
|
|||||||
PCI_ADDR PciAddress;
|
PCI_ADDR PciAddress;
|
||||||
UINT32 PciValue;
|
UINT32 PciValue;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -422,10 +406,7 @@ agesawrapper_amdinitmid (
|
|||||||
/* Enable MMIO on AMD CPU Address Map Controller */
|
/* Enable MMIO on AMD CPU Address Map Controller */
|
||||||
agesawrapper_amdinitcpuio ();
|
agesawrapper_amdinitcpuio ();
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -452,10 +433,7 @@ agesawrapper_amdinitlate (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -501,10 +479,7 @@ agesawrapper_amdlaterunaptask (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill (&ApExeParams,
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AP_EXE_PARAMS),
|
|
||||||
&(ApExeParams.StdHeader));
|
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
||||||
@@ -530,10 +505,7 @@ agesawrapper_amdreadeventlog (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
EVENT_PARAMS AmdEventParams;
|
EVENT_PARAMS AmdEventParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdEventParams,
|
memset(&AmdEventParams, 0, sizeof(EVENT_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (EVENT_PARAMS),
|
|
||||||
&(AmdEventParams.StdHeader));
|
|
||||||
|
|
||||||
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
||||||
|
@@ -24,6 +24,8 @@
|
|||||||
#include "PlatformGnbPcieComplex.h"
|
#include "PlatformGnbPcieComplex.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------------*/
|
||||||
@@ -137,24 +139,9 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||||||
AllocHeapParams.BufferPtr += sizeof(PortList);
|
AllocHeapParams.BufferPtr += sizeof(PortList);
|
||||||
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieComplexListPtr,
|
memcpy(BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos));
|
||||||
0,
|
memcpy(BrazosPciePortPtr, &PortList[0], sizeof(PortList));
|
||||||
sizeof(Brazos),
|
memcpy(BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList));
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPciePortPtr,
|
|
||||||
0,
|
|
||||||
sizeof(PortList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieDdiPtr,
|
|
||||||
0,
|
|
||||||
sizeof(DdiList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemCopy (BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPciePortPtr, &PortList[0], sizeof(PortList), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList), &InitEarly->StdHeader);
|
|
||||||
|
|
||||||
|
|
||||||
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
||||||
|
@@ -184,15 +184,8 @@ agesawrapper_amdinitreset (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
LibAmdMemFill (&AmdResetParams,
|
|
||||||
0,
|
|
||||||
sizeof (AMD_RESET_PARAMS),
|
|
||||||
&(AmdResetParams.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
||||||
AmdParamStruct.AllocationMethod = ByHost;
|
AmdParamStruct.AllocationMethod = ByHost;
|
||||||
@@ -220,10 +213,7 @@ agesawrapper_amdinitearly (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -254,10 +244,7 @@ agesawrapper_amdinitpost (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -295,10 +282,7 @@ agesawrapper_amdinitenv (
|
|||||||
PCI_ADDR PciAddress;
|
PCI_ADDR PciAddress;
|
||||||
UINT32 PciValue;
|
UINT32 PciValue;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -422,10 +406,7 @@ agesawrapper_amdinitmid (
|
|||||||
/* Enable MMIO on AMD CPU Address Map Controller */
|
/* Enable MMIO on AMD CPU Address Map Controller */
|
||||||
agesawrapper_amdinitcpuio ();
|
agesawrapper_amdinitcpuio ();
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -452,10 +433,7 @@ agesawrapper_amdinitlate (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -501,10 +479,7 @@ agesawrapper_amdlaterunaptask (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill (&ApExeParams,
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AP_EXE_PARAMS),
|
|
||||||
&(ApExeParams.StdHeader));
|
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
||||||
@@ -530,10 +505,7 @@ agesawrapper_amdreadeventlog (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
EVENT_PARAMS AmdEventParams;
|
EVENT_PARAMS AmdEventParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdEventParams,
|
memset(&AmdEventParams, 0, sizeof(EVENT_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (EVENT_PARAMS),
|
|
||||||
&(AmdEventParams.StdHeader));
|
|
||||||
|
|
||||||
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
||||||
|
@@ -26,6 +26,8 @@
|
|||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#include "BiosCallOuts.h"
|
#include "BiosCallOuts.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------------*/
|
||||||
/**
|
/**
|
||||||
* OemCustomizeInitEarly
|
* OemCustomizeInitEarly
|
||||||
@@ -135,24 +137,9 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||||||
AllocHeapParams.BufferPtr += sizeof(PortList);
|
AllocHeapParams.BufferPtr += sizeof(PortList);
|
||||||
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieComplexListPtr,
|
memcpy(BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos));
|
||||||
0,
|
memcpy(BrazosPciePortPtr, &PortList[0], sizeof(PortList));
|
||||||
sizeof(Brazos),
|
memcpy(BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList));
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPciePortPtr,
|
|
||||||
0,
|
|
||||||
sizeof(PortList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieDdiPtr,
|
|
||||||
0,
|
|
||||||
sizeof(DdiList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemCopy (BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPciePortPtr, &PortList[0], sizeof(PortList), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList), &InitEarly->StdHeader);
|
|
||||||
|
|
||||||
|
|
||||||
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
||||||
|
@@ -189,15 +189,8 @@ agesawrapper_amdinitreset (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
LibAmdMemFill (&AmdResetParams,
|
|
||||||
0,
|
|
||||||
sizeof (AMD_RESET_PARAMS),
|
|
||||||
&(AmdResetParams.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
||||||
AmdParamStruct.AllocationMethod = ByHost;
|
AmdParamStruct.AllocationMethod = ByHost;
|
||||||
@@ -225,10 +218,7 @@ agesawrapper_amdinitearly (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -276,10 +266,7 @@ agesawrapper_amdinitpost (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -317,10 +304,7 @@ agesawrapper_amdinitenv (
|
|||||||
PCI_ADDR PciAddress;
|
PCI_ADDR PciAddress;
|
||||||
UINT32 PciValue;
|
UINT32 PciValue;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -444,10 +428,7 @@ agesawrapper_amdinitmid (
|
|||||||
/* Enable MMIO on AMD CPU Address Map Controller */
|
/* Enable MMIO on AMD CPU Address Map Controller */
|
||||||
agesawrapper_amdinitcpuio ();
|
agesawrapper_amdinitcpuio ();
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -474,10 +455,7 @@ agesawrapper_amdinitlate (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -529,10 +507,7 @@ agesawrapper_amdinitresume (
|
|||||||
AMD_RESUME_PARAMS *AmdResumeParamsPtr;
|
AMD_RESUME_PARAMS *AmdResumeParamsPtr;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESUME;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESUME;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -571,10 +546,8 @@ agesawrapper_amds3laterestore (
|
|||||||
AMD_S3LATE_PARAMS *AmdS3LateParamsPtr;
|
AMD_S3LATE_PARAMS *AmdS3LateParamsPtr;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdS3LateParams,
|
memset(&AmdS3LateParams, 0, sizeof(AMD_S3LATE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_S3LATE_PARAMS),
|
|
||||||
&(AmdS3LateParams.StdHeader));
|
|
||||||
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
||||||
AmdInterfaceParams.AllocationMethod = ByHost;
|
AmdInterfaceParams.AllocationMethod = ByHost;
|
||||||
AmdInterfaceParams.AgesaFunctionName = AMD_S3LATE_RESTORE;
|
AmdInterfaceParams.AgesaFunctionName = AMD_S3LATE_RESTORE;
|
||||||
@@ -612,10 +585,7 @@ agesawrapper_amdS3Save (
|
|||||||
AMD_INTERFACE_PARAMS AmdInterfaceParams;
|
AMD_INTERFACE_PARAMS AmdInterfaceParams;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdInterfaceParams,
|
memset(&AmdInterfaceParams, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdInterfaceParams.StdHeader));
|
|
||||||
|
|
||||||
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
||||||
AmdInterfaceParams.StdHeader.HeapStatus = HEAP_SYSTEM_MEM;
|
AmdInterfaceParams.StdHeader.HeapStatus = HEAP_SYSTEM_MEM;
|
||||||
@@ -670,10 +640,7 @@ agesawrapper_amdlaterunaptask (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill (&ApExeParams,
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AP_EXE_PARAMS),
|
|
||||||
&(ApExeParams.StdHeader));
|
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
||||||
@@ -699,10 +666,7 @@ agesawrapper_amdreadeventlog (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
EVENT_PARAMS AmdEventParams;
|
EVENT_PARAMS AmdEventParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdEventParams,
|
memset(&AmdEventParams, 0, sizeof(EVENT_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (EVENT_PARAMS),
|
|
||||||
&(AmdEventParams.StdHeader));
|
|
||||||
|
|
||||||
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
||||||
|
@@ -25,6 +25,8 @@
|
|||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#include "BiosCallOuts.h"
|
#include "BiosCallOuts.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------------*/
|
||||||
@@ -136,24 +138,9 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||||||
AllocHeapParams.BufferPtr += sizeof(PortList);
|
AllocHeapParams.BufferPtr += sizeof(PortList);
|
||||||
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieComplexListPtr,
|
memcpy(BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos));
|
||||||
0,
|
memcpy(BrazosPciePortPtr, &PortList[0], sizeof(PortList));
|
||||||
sizeof(Brazos),
|
memcpy(BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList));
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPciePortPtr,
|
|
||||||
0,
|
|
||||||
sizeof(PortList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieDdiPtr,
|
|
||||||
0,
|
|
||||||
sizeof(DdiList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemCopy (BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPciePortPtr, &PortList[0], sizeof(PortList), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList), &InitEarly->StdHeader);
|
|
||||||
|
|
||||||
|
|
||||||
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
||||||
|
@@ -188,15 +188,8 @@ agesawrapper_amdinitreset (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
LibAmdMemFill (&AmdResetParams,
|
|
||||||
0,
|
|
||||||
sizeof (AMD_RESET_PARAMS),
|
|
||||||
&(AmdResetParams.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
||||||
AmdParamStruct.AllocationMethod = ByHost;
|
AmdParamStruct.AllocationMethod = ByHost;
|
||||||
@@ -224,10 +217,7 @@ agesawrapper_amdinitearly (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -275,10 +265,7 @@ agesawrapper_amdinitpost (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -316,10 +303,7 @@ agesawrapper_amdinitenv (
|
|||||||
PCI_ADDR PciAddress;
|
PCI_ADDR PciAddress;
|
||||||
UINT32 PciValue;
|
UINT32 PciValue;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -443,10 +427,7 @@ agesawrapper_amdinitmid (
|
|||||||
/* Enable MMIO on AMD CPU Address Map Controller */
|
/* Enable MMIO on AMD CPU Address Map Controller */
|
||||||
agesawrapper_amdinitcpuio ();
|
agesawrapper_amdinitcpuio ();
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -473,10 +454,7 @@ agesawrapper_amdinitlate (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -528,10 +506,7 @@ agesawrapper_amdinitresume (
|
|||||||
AMD_RESUME_PARAMS *AmdResumeParamsPtr;
|
AMD_RESUME_PARAMS *AmdResumeParamsPtr;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESUME;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESUME;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -570,10 +545,8 @@ agesawrapper_amds3laterestore (
|
|||||||
AMD_S3LATE_PARAMS *AmdS3LateParamsPtr;
|
AMD_S3LATE_PARAMS *AmdS3LateParamsPtr;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdS3LateParams,
|
memset(&AmdS3LateParams, 0, sizeof(AMD_S3LATE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_S3LATE_PARAMS),
|
|
||||||
&(AmdS3LateParams.StdHeader));
|
|
||||||
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
||||||
AmdInterfaceParams.AllocationMethod = ByHost;
|
AmdInterfaceParams.AllocationMethod = ByHost;
|
||||||
AmdInterfaceParams.AgesaFunctionName = AMD_S3LATE_RESTORE;
|
AmdInterfaceParams.AgesaFunctionName = AMD_S3LATE_RESTORE;
|
||||||
@@ -611,10 +584,7 @@ agesawrapper_amdS3Save (
|
|||||||
AMD_INTERFACE_PARAMS AmdInterfaceParams;
|
AMD_INTERFACE_PARAMS AmdInterfaceParams;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdInterfaceParams,
|
memset(&AmdInterfaceParams, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdInterfaceParams.StdHeader));
|
|
||||||
|
|
||||||
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
||||||
AmdInterfaceParams.StdHeader.HeapStatus = HEAP_SYSTEM_MEM;
|
AmdInterfaceParams.StdHeader.HeapStatus = HEAP_SYSTEM_MEM;
|
||||||
@@ -669,10 +639,7 @@ agesawrapper_amdlaterunaptask (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill (&ApExeParams,
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AP_EXE_PARAMS),
|
|
||||||
&(ApExeParams.StdHeader));
|
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
||||||
@@ -698,10 +665,7 @@ agesawrapper_amdreadeventlog (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
EVENT_PARAMS AmdEventParams;
|
EVENT_PARAMS AmdEventParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdEventParams,
|
memset(&AmdEventParams, 0, sizeof(EVENT_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (EVENT_PARAMS),
|
|
||||||
&(AmdEventParams.StdHeader));
|
|
||||||
|
|
||||||
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
||||||
|
@@ -25,6 +25,8 @@
|
|||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#include "BiosCallOuts.h"
|
#include "BiosCallOuts.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
#define FILECODE PROC_RECOVERY_MEM_NB_ON_MRNON_FILECODE
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------------*/
|
||||||
@@ -136,24 +138,9 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||||||
AllocHeapParams.BufferPtr += sizeof(PortList);
|
AllocHeapParams.BufferPtr += sizeof(PortList);
|
||||||
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
BrazosPcieDdiPtr = (PCIe_DDI_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieComplexListPtr,
|
memcpy(BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos));
|
||||||
0,
|
memcpy(BrazosPciePortPtr, &PortList[0], sizeof(PortList));
|
||||||
sizeof(Brazos),
|
memcpy(BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList));
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPciePortPtr,
|
|
||||||
0,
|
|
||||||
sizeof(PortList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemFill (BrazosPcieDdiPtr,
|
|
||||||
0,
|
|
||||||
sizeof(DdiList),
|
|
||||||
&InitEarly->StdHeader);
|
|
||||||
|
|
||||||
LibAmdMemCopy (BrazosPcieComplexListPtr, &Brazos, sizeof(Brazos), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPciePortPtr, &PortList[0], sizeof(PortList), &InitEarly->StdHeader);
|
|
||||||
LibAmdMemCopy (BrazosPcieDdiPtr, &DdiList[0], sizeof(DdiList), &InitEarly->StdHeader);
|
|
||||||
|
|
||||||
|
|
||||||
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
((PCIe_COMPLEX_DESCRIPTOR*)BrazosPcieComplexListPtr)->PciePortList = (PCIe_PORT_DESCRIPTOR*)BrazosPciePortPtr;
|
||||||
|
@@ -188,15 +188,8 @@ agesawrapper_amdinitreset (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
LibAmdMemFill (&AmdResetParams,
|
|
||||||
0,
|
|
||||||
sizeof (AMD_RESET_PARAMS),
|
|
||||||
&(AmdResetParams.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESET;
|
||||||
AmdParamStruct.AllocationMethod = ByHost;
|
AmdParamStruct.AllocationMethod = ByHost;
|
||||||
@@ -224,10 +217,7 @@ agesawrapper_amdinitearly (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -275,10 +265,7 @@ agesawrapper_amdinitpost (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
BIOS_HEAP_MANAGER *BiosManagerPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -316,10 +303,7 @@ agesawrapper_amdinitenv (
|
|||||||
PCI_ADDR PciAddress;
|
PCI_ADDR PciAddress;
|
||||||
UINT32 PciValue;
|
UINT32 PciValue;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -443,10 +427,7 @@ agesawrapper_amdinitmid (
|
|||||||
/* Enable MMIO on AMD CPU Address Map Controller */
|
/* Enable MMIO on AMD CPU Address Map Controller */
|
||||||
agesawrapper_amdinitcpuio ();
|
agesawrapper_amdinitcpuio ();
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -473,10 +454,7 @@ agesawrapper_amdinitlate (
|
|||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
AMD_LATE_PARAMS * AmdLateParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
@@ -528,10 +506,7 @@ agesawrapper_amdinitresume (
|
|||||||
AMD_RESUME_PARAMS *AmdResumeParamsPtr;
|
AMD_RESUME_PARAMS *AmdResumeParamsPtr;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdParamStruct,
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdParamStruct.StdHeader));
|
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESUME;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_RESUME;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
@@ -570,10 +545,8 @@ agesawrapper_amds3laterestore (
|
|||||||
AMD_S3LATE_PARAMS *AmdS3LateParamsPtr;
|
AMD_S3LATE_PARAMS *AmdS3LateParamsPtr;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdS3LateParams,
|
memset(&AmdS3LateParams, 0, sizeof(AMD_S3LATE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_S3LATE_PARAMS),
|
|
||||||
&(AmdS3LateParams.StdHeader));
|
|
||||||
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
||||||
AmdInterfaceParams.AllocationMethod = ByHost;
|
AmdInterfaceParams.AllocationMethod = ByHost;
|
||||||
AmdInterfaceParams.AgesaFunctionName = AMD_S3LATE_RESTORE;
|
AmdInterfaceParams.AgesaFunctionName = AMD_S3LATE_RESTORE;
|
||||||
@@ -611,10 +584,7 @@ agesawrapper_amdS3Save (
|
|||||||
AMD_INTERFACE_PARAMS AmdInterfaceParams;
|
AMD_INTERFACE_PARAMS AmdInterfaceParams;
|
||||||
S3_DATA_TYPE S3DataType;
|
S3_DATA_TYPE S3DataType;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdInterfaceParams,
|
memset(&AmdInterfaceParams, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AMD_INTERFACE_PARAMS),
|
|
||||||
&(AmdInterfaceParams.StdHeader));
|
|
||||||
|
|
||||||
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
AmdInterfaceParams.StdHeader.ImageBasePtr = 0;
|
||||||
AmdInterfaceParams.StdHeader.HeapStatus = HEAP_SYSTEM_MEM;
|
AmdInterfaceParams.StdHeader.HeapStatus = HEAP_SYSTEM_MEM;
|
||||||
@@ -669,10 +639,7 @@ agesawrapper_amdlaterunaptask (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill (&ApExeParams,
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (AP_EXE_PARAMS),
|
|
||||||
&(ApExeParams.StdHeader));
|
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) &GetBiosCallout;
|
||||||
@@ -698,10 +665,7 @@ agesawrapper_amdreadeventlog (
|
|||||||
AGESA_STATUS Status;
|
AGESA_STATUS Status;
|
||||||
EVENT_PARAMS AmdEventParams;
|
EVENT_PARAMS AmdEventParams;
|
||||||
|
|
||||||
LibAmdMemFill (&AmdEventParams,
|
memset(&AmdEventParams, 0, sizeof(EVENT_PARAMS));
|
||||||
0,
|
|
||||||
sizeof (EVENT_PARAMS),
|
|
||||||
&(AmdEventParams.StdHeader));
|
|
||||||
|
|
||||||
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
AmdEventParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
AmdEventParams.StdHeader.CalloutPtr = NULL;
|
||||||
|
Reference in New Issue
Block a user