summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Library/MtrrLib
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-07-19 08:41:57 +0800
committerJeff Fan <jeff.fan@intel.com>2016-07-20 11:13:02 +0800
commit81f560498bf1ca2bfa738741f63f9bc90a4db7d2 (patch)
treed1bd59e254763f846ff396134e41317f6b2a5797 /UefiCpuPkg/Library/MtrrLib
parent9fc34794d60d4922bcac10efc7ed57f827720e92 (diff)
downloadedk2-81f560498bf1ca2bfa738741f63f9bc90a4db7d2.tar.gz
edk2-81f560498bf1ca2bfa738741f63f9bc90a4db7d2.tar.bz2
edk2-81f560498bf1ca2bfa738741f63f9bc90a4db7d2.zip
UefiCpuPkg/MtrrLib: Add notes for usage by BSP/APs
Except for MtrrSetAllMtrrs(), others services are not suggested to be invoked by APs because they are not necessary and may invoke DEBUG() to dump MTRR setting. Cc: Feng Tian <feng.tian@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'UefiCpuPkg/Library/MtrrLib')
-rw-r--r--UefiCpuPkg/Library/MtrrLib/MtrrLib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c
index f667a8f796..5aef7724e2 100644
--- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c
+++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c
@@ -1,6 +1,10 @@
/** @file
MTRR setting library
+ @par Note:
+ Most of services in this library instance are suggested to be invoked by BSP only,
+ except for MtrrSetAllMtrrs() which is used to sync BSP's MTRR setting to APs.
+
Copyright (c) 2008 - 2016, 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