Add DEBUG() macros for DEBUG_CACHE to MTRR Library show all changes memory caches setting changes.

If DEBUG_PROPERTY_DEBUG_CODE_ENABLED is also set in PcdDebugPropertyMask, then the entire set of MTRRs will be displayed on every memory cache setting change.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11231 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney
2011-01-06 02:57:26 +00:00
parent f9d1f97c45
commit f877f3006e
2 changed files with 170 additions and 46 deletions

View File

@@ -1,7 +1,7 @@
/** @file
CPU DXE Module.
Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -612,8 +612,6 @@ CpuSetMemoryAttributes (
return EFI_UNSUPPORTED;
}
DEBUG((EFI_D_ERROR, "CpuAp: SetMemorySpaceAttributes(BA=%08x, Len=%08x, Attr=%08x)\n", BaseAddress, Length, Attributes));
//
// If this function is called because GCD SetMemorySpaceAttributes () is called
// by RefreshGcdMemoryAttributes (), then we are just synchronzing GCD memory
@@ -652,15 +650,12 @@ CpuSetMemoryAttributes (
//
// call MTRR libary function
//
DEBUG((EFI_D_ERROR, " MtrrSetMemoryAttribute()\n"));
Status = MtrrSetMemoryAttribute(
Status = MtrrSetMemoryAttribute (
BaseAddress,
Length,
CacheType
);
MtrrDebugPrintAllMtrrs ();
return (EFI_STATUS) Status;
}