AGESA: Use memset() on agesawrappers
Change-Id: Icc8da62c6d1644e16f7db6c634796ad597c755c6 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7818 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
33205f0739
commit
7cfc70b19b
|
@ -51,10 +51,8 @@ AGESA_STATUS agesawrapper_amdinitreset(void)
|
||||||
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, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
|
|
||||||
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;
|
||||||
|
@ -79,8 +77,7 @@ AGESA_STATUS agesawrapper_amdinitearly(void)
|
||||||
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;
|
||||||
|
@ -105,8 +102,7 @@ AGESA_STATUS agesawrapper_amdinitpost(void)
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
|
|
||||||
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;
|
||||||
|
@ -131,8 +127,7 @@ AGESA_STATUS agesawrapper_amdinitenv(void)
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
|
|
||||||
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;
|
||||||
|
@ -178,8 +173,7 @@ AGESA_STATUS agesawrapper_amdinitmid(void)
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
|
|
||||||
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;
|
||||||
|
@ -202,7 +196,7 @@ AGESA_STATUS agesawrapper_amdinitlate(void)
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AMD_LATE_PARAMS AmdLateParams;
|
AMD_LATE_PARAMS AmdLateParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdLateParams, 0, sizeof(AMD_LATE_PARAMS), &(AmdLateParams.StdHeader));
|
memset(&AmdLateParams, 0, sizeof(AMD_LATE_PARAMS));
|
||||||
|
|
||||||
AmdLateParams.StdHeader.AltImageBasePtr = 0;
|
AmdLateParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdLateParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
AmdLateParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
||||||
|
@ -230,7 +224,7 @@ AGESA_STATUS agesawrapper_amdlaterunaptask(UINT32 Func, UINT32 Data, VOID * Conf
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill(&ApExeParams, 0, sizeof(AP_EXE_PARAMS), &(ApExeParams.StdHeader));
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
||||||
|
|
|
@ -66,9 +66,8 @@ AGESA_STATUS agesawrapper_amdinitreset(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
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;
|
||||||
|
@ -103,7 +102,7 @@ AGESA_STATUS agesawrapper_amdinitearly(void)
|
||||||
UINT32 TscRateInMhz;
|
UINT32 TscRateInMhz;
|
||||||
CPU_SPECIFIC_SERVICES *FamilySpecificServices;
|
CPU_SPECIFIC_SERVICES *FamilySpecificServices;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
|
@ -141,7 +140,7 @@ AGESA_STATUS agesawrapper_amdinitpost(void)
|
||||||
UINT32 TscRateInMhz;
|
UINT32 TscRateInMhz;
|
||||||
CPU_SPECIFIC_SERVICES *FamilySpecificServices;
|
CPU_SPECIFIC_SERVICES *FamilySpecificServices;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
|
@ -181,7 +180,7 @@ AGESA_STATUS agesawrapper_amdinitenv(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_ENV_PARAMS *EnvParams;
|
AMD_ENV_PARAMS *EnvParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -234,7 +233,7 @@ AGESA_STATUS agesawrapper_amdinitmid(void)
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -260,7 +259,7 @@ AGESA_STATUS agesawrapper_amdinitlate(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS *AmdLateParamsPtr;
|
AMD_LATE_PARAMS *AmdLateParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -307,7 +306,7 @@ AGESA_STATUS agesawrapper_amdlaterunaptask(UINT32 Func, UINT32 Data, VOID * Conf
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AMD_LATE_PARAMS AmdLateParams;
|
AMD_LATE_PARAMS AmdLateParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdLateParams, 0, sizeof(AMD_LATE_PARAMS), &(AmdLateParams.StdHeader));
|
memset(&AmdLateParams, 0, sizeof(AMD_LATE_PARAMS));
|
||||||
|
|
||||||
AmdLateParams.StdHeader.AltImageBasePtr = 0;
|
AmdLateParams.StdHeader.AltImageBasePtr = 0;
|
||||||
AmdLateParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
AmdLateParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
||||||
|
|
|
@ -58,9 +58,8 @@ AGESA_STATUS agesawrapper_amdinitreset(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
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;
|
||||||
|
@ -85,7 +84,7 @@ AGESA_STATUS agesawrapper_amdinitearly(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
|
@ -111,7 +110,7 @@ AGESA_STATUS agesawrapper_amdinitpost(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_POST_PARAMS *PostParams;
|
AMD_POST_PARAMS *PostParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
|
@ -137,7 +136,7 @@ AGESA_STATUS agesawrapper_amdinitenv(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_ENV_PARAMS *EnvParam;
|
AMD_ENV_PARAMS *EnvParam;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -183,7 +182,7 @@ AGESA_STATUS agesawrapper_amdinitmid(void)
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -208,7 +207,7 @@ AGESA_STATUS agesawrapper_amdinitlate(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS *AmdLateParams;
|
AMD_LATE_PARAMS *AmdLateParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -251,7 +250,7 @@ AGESA_STATUS agesawrapper_amdlaterunaptask(UINT32 Func, UINT32 Data, VOID * Conf
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill(&ApExeParams, 0, sizeof(AP_EXE_PARAMS), &(ApExeParams.StdHeader));
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
||||||
|
|
|
@ -58,9 +58,8 @@ AGESA_STATUS agesawrapper_amdinitreset(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
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;
|
||||||
|
@ -85,7 +84,7 @@ AGESA_STATUS agesawrapper_amdinitearly(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
|
@ -111,7 +110,7 @@ AGESA_STATUS agesawrapper_amdinitpost(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_POST_PARAMS *PostParams;
|
AMD_POST_PARAMS *PostParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
|
@ -137,7 +136,7 @@ AGESA_STATUS agesawrapper_amdinitenv(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_ENV_PARAMS *EnvParam;
|
AMD_ENV_PARAMS *EnvParam;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -183,7 +182,7 @@ AGESA_STATUS agesawrapper_amdinitmid(void)
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -208,7 +207,7 @@ AGESA_STATUS agesawrapper_amdinitlate(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS *AmdLateParams;
|
AMD_LATE_PARAMS *AmdLateParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -251,7 +250,7 @@ AGESA_STATUS agesawrapper_amdlaterunaptask(UINT32 Func, UINT32 Data, VOID * Conf
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill(&ApExeParams, 0, sizeof(AP_EXE_PARAMS), &(ApExeParams.StdHeader));
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
||||||
|
|
|
@ -58,9 +58,8 @@ AGESA_STATUS agesawrapper_amdinitreset(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_RESET_PARAMS AmdResetParams;
|
AMD_RESET_PARAMS AmdResetParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
memset(&AmdResetParams, 0, sizeof(AMD_RESET_PARAMS));
|
||||||
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;
|
||||||
|
@ -85,7 +84,7 @@ AGESA_STATUS agesawrapper_amdinitearly(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
AMD_EARLY_PARAMS *AmdEarlyParamsPtr;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_EARLY;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
|
@ -111,7 +110,7 @@ AGESA_STATUS agesawrapper_amdinitpost(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_POST_PARAMS *PostParams;
|
AMD_POST_PARAMS *PostParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_POST;
|
||||||
AmdParamStruct.AllocationMethod = PreMemHeap;
|
AmdParamStruct.AllocationMethod = PreMemHeap;
|
||||||
|
@ -137,7 +136,7 @@ AGESA_STATUS agesawrapper_amdinitenv(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_ENV_PARAMS *EnvParam;
|
AMD_ENV_PARAMS *EnvParam;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_ENV;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -183,7 +182,7 @@ AGESA_STATUS agesawrapper_amdinitmid(void)
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_MID;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -208,7 +207,7 @@ AGESA_STATUS agesawrapper_amdinitlate(void)
|
||||||
AMD_INTERFACE_PARAMS AmdParamStruct;
|
AMD_INTERFACE_PARAMS AmdParamStruct;
|
||||||
AMD_LATE_PARAMS *AmdLateParams;
|
AMD_LATE_PARAMS *AmdLateParams;
|
||||||
|
|
||||||
LibAmdMemFill(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS), &(AmdParamStruct.StdHeader));
|
memset(&AmdParamStruct, 0, sizeof(AMD_INTERFACE_PARAMS));
|
||||||
|
|
||||||
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
AmdParamStruct.AgesaFunctionName = AMD_INIT_LATE;
|
||||||
AmdParamStruct.AllocationMethod = PostMemDram;
|
AmdParamStruct.AllocationMethod = PostMemDram;
|
||||||
|
@ -251,7 +250,7 @@ AGESA_STATUS agesawrapper_amdlaterunaptask(UINT32 Func, UINT32 Data, VOID * Conf
|
||||||
AGESA_STATUS status;
|
AGESA_STATUS status;
|
||||||
AP_EXE_PARAMS ApExeParams;
|
AP_EXE_PARAMS ApExeParams;
|
||||||
|
|
||||||
LibAmdMemFill(&ApExeParams, 0, sizeof(AP_EXE_PARAMS), &(ApExeParams.StdHeader));
|
memset(&ApExeParams, 0, sizeof(AP_EXE_PARAMS));
|
||||||
|
|
||||||
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
ApExeParams.StdHeader.AltImageBasePtr = 0;
|
||||||
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
ApExeParams.StdHeader.CalloutPtr = (CALLOUT_ENTRY) & GetBiosCallout;
|
||||||
|
|
Loading…
Reference in New Issue