From 81f560498bf1ca2bfa738741f63f9bc90a4db7d2 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Tue, 19 Jul 2016 08:41:57 +0800 Subject: [PATCH] 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 Cc: Michael Kinney Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed: Laszlo Ersek --- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 4 ++++ 1 file changed, 4 insertions(+) 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.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License