summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuDxe/CpuDxe.c
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2011-01-06 02:57:26 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2011-01-06 02:57:26 +0000
commitf877f3006efcb6225d8392e61b934b61077a5881 (patch)
tree4e1d78e51f6ac94d64c388645c15374258c78777 /UefiCpuPkg/CpuDxe/CpuDxe.c
parentf9d1f97c45699eb67775ece15ab14b186d076c07 (diff)
downloadedk2-f877f3006efcb6225d8392e61b934b61077a5881.tar.gz
edk2-f877f3006efcb6225d8392e61b934b61077a5881.tar.bz2
edk2-f877f3006efcb6225d8392e61b934b61077a5881.zip
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
Diffstat (limited to 'UefiCpuPkg/CpuDxe/CpuDxe.c')
-rw-r--r--UefiCpuPkg/CpuDxe/CpuDxe.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c
index 6e7498344e..99fdbd7757 100644
--- a/UefiCpuPkg/CpuDxe/CpuDxe.c
+++ b/UefiCpuPkg/CpuDxe/CpuDxe.c
@@ -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;
}