From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DE07B1A1E06 for ; Fri, 2 Sep 2016 06:58:54 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP; 02 Sep 2016 06:58:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,271,1470726000"; d="scan'208";a="3896976" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by fmsmga005.fm.intel.com with ESMTP; 02 Sep 2016 06:58:54 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Cc: Jeff Fan Date: Fri, 2 Sep 2016 21:58:41 +0800 Message-Id: <20160902135850.251164-2-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 In-Reply-To: <20160902135850.251164-1-ruiyu.ni@intel.com> References: <20160902135850.251164-1-ruiyu.ni@intel.com> Subject: [PATCH 01/10] UefiCpuPkg/MtrrLib: Correct typo in comments and remove TABs X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2016 13:58:55 -0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Jeff Fan --- UefiCpuPkg/Include/Library/MtrrLib.h | 16 ++++++++-------- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/UefiCpuPkg/Include/Library/MtrrLib.h b/UefiCpuPkg/Include/Library/MtrrLib.h index 36cd2cd..a769279 100644 --- a/UefiCpuPkg/Include/Library/MtrrLib.h +++ b/UefiCpuPkg/Include/Library/MtrrLib.h @@ -1,7 +1,7 @@ /** @file MTRR setting library - Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.
+ 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 which accompanies this distribution. The full text of the license may be found at @@ -16,7 +16,7 @@ #define _MTRR_LIB_H_ // -// According to IA32 SDM, MTRRs number and msr offset are always consistent +// According to IA32 SDM, MTRRs number and MSR offset are always consistent // for IA32 processor family // @@ -92,11 +92,11 @@ typedef struct _MTRR_VARIABLE_SETTING_ { // Array for variable MTRRs // typedef struct _MTRR_VARIABLE_SETTINGS_ { - MTRR_VARIABLE_SETTING Mtrr[MTRR_NUMBER_OF_VARIABLE_MTRR]; -} MTRR_VARIABLE_SETTINGS; + MTRR_VARIABLE_SETTING Mtrr[MTRR_NUMBER_OF_VARIABLE_MTRR]; +} MTRR_VARIABLE_SETTINGS; // -// Array for fixed mtrrs +// Array for fixed MTRRs // typedef struct _MTRR_FIXED_SETTINGS_ { UINT64 Mtrr[MTRR_NUMBER_OF_FIXED_MTRR]; @@ -209,7 +209,7 @@ MtrrGetMemoryAttribute ( @param[out] VariableSettings A buffer to hold variable MTRRs content. - @return The buffer point to MTRR_VARIABLE_SETTINGS in which holds the content of the variable mtrr + @return The buffer point to MTRR_VARIABLE_SETTINGS in which holds the content of the variable MTRR **/ MTRR_VARIABLE_SETTINGS* @@ -220,7 +220,7 @@ MtrrGetVariableMtrr ( /** - This function sets fixed MTRRs + This function sets variable MTRRs @param[in] VariableSettings A buffer to hold variable MTRRs content. @@ -306,7 +306,7 @@ MtrrSetAllMtrrs ( MtrrValidBitsMask & 0xfffffffffffff000ULL @param[out] VariableMtrr The array to shadow variable MTRRs content - @return The ruturn value of this paramter indicates the number of + @return The return value of this parameter indicates the number of MTRRs which has been used. **/ UINT32 diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c index 5aef772..2647dda 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -606,7 +606,7 @@ MtrrGetMemoryAttributeInVariableMtrrWorker ( @param[in] MtrrValidAddressMask The valid address mask for MTRR @param[out] VariableMtrr The array to shadow variable MTRRs content - @return The return value of this paramter indicates the + @return The return value of this parameter indicates the number of MTRRs which has been used. **/ @@ -786,7 +786,7 @@ CombineMemoryAttribute ( continue; } else { // - // The cache type is different, but the range is convered by one MTRR + // The cache type is different, but the range is covered by one MTRR // if (VariableMtrr[Index].BaseAddress == *Base && MtrrEnd == EndAddress) { InvalidateShadowMtrr (Index, VariableMtrr, UsedMtrr); @@ -1278,7 +1278,7 @@ MtrrGetMemoryAttribute ( /** Worker function prints all MTRRs for debugging. - If MtrrSetting is not NULL, print MTRR settings from from input MTRR + If MtrrSetting is not NULL, print MTRR settings from input MTRR settings buffer. If MtrrSetting is NULL, print MTRR settings from MTRRs. -- 2.9.0.windows.1