summaryrefslogtreecommitdiff
path: root/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c
diff options
context:
space:
mode:
authorAbdul Lateef Attar <AbdulLateef.Attar@amd.com>2026-09-26 07:57:16 +0300
committerAbdul Lateef Attar <80956128+abdattar@users.noreply.github.com>2026-09-29 09:11:04 +0300
commit3e3d876be50232511b23ff6ea67af394a8fba2f2 (patch)
tree1b5c450e40b6cc79bd0b82ca34c555a337527e34 /Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c
parent595b079c5fa322f0cf890f9ea4b68498f7dac96b (diff)
downloadedk2-platforms-master.tar.xz
AmdMinBoardPkg: Add Stuart CI config and shared library-class scaffoldingHEADmaster
Add AmdMinBoardPkg.ci.yaml, wiring up the Stuart CI plugins for this package (LicenseCheck, EccCheck with an ExceptionList for library classes ECC can't resolve without the full PACKAGES_PATH, DscCompleteCheck, HostUnitTestDscCompleteCheck, GuidCheck, SpellCheck, CodeQlAnalyze, etc.), and AmdMinBoardPkg.inc.dsc, a shared DSC include with this package's phase-scoped library-class mappings (ReportFvLib/PlatformSecLib/SpcrDeviceLib, BoardInitLib/SetCacheMtrrLib for PEIM, BoardBdsHookLib for DXE_DRIVER) for platforms that include this package elsewhere. Add StackCheckLib|StackCheckLibNull to [LibraryClasses.common] (now required by newer BaseTools), move [PcdsDynamicDefault] next to [Packages], and drop the [BuildOptions] block (DISABLE_NEW_DEPRECATED_ INTERFACES/USE_EDKII_HEADER_FILE/MDEPKG_NDEBUG flags), which is no longer needed with the rest of this update. Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
Diffstat (limited to 'Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c')
-rw-r--r--Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c b/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c
index 06f530582c..58d3d15e8d 100644
--- a/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c
+++ b/Platform/AMD/AmdMinBoardPkg/Library/SetCacheMtrrLib/SetCacheMtrrLib.c
@@ -120,8 +120,9 @@ SetCacheMtrrAfterEndOfPei (
)
{
EFI_STATUS Status;
- UINT32 Mmio64Hi = 0, Mmio64Low = 0;
- UINT64 ROM3MmioBase = 0;
+ UINT32 Mmio64Hi;
+ UINT32 Mmio64Low;
+ UINT64 ROM3MmioBase;
Status = MtrrSetMemoryAttribute (
PcdGet32 (PcdFlashAreaBaseAddress),