From nobody Sat Nov 2 12:24:57 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 14907566351751013.9070471075726; Tue, 28 Mar 2017 20:03:55 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 41DC020D2C3B9; Tue, 28 Mar 2017 20:03:52 -0700 (PDT) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E4E0C21BC6A25 for ; Tue, 28 Mar 2017 20:03:50 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP; 28 Mar 2017 20:03:50 -0700 Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by orsmga001.jf.intel.com with ESMTP; 28 Mar 2017 20:03:50 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,239,1486454400"; d="scan'208";a="1113146579" From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Wed, 29 Mar 2017 11:03:37 +0800 Message-Id: <20170329030346.249872-2-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 In-Reply-To: <20170329030346.249872-1-ruiyu.ni@intel.com> References: <20170329030346.249872-1-ruiyu.ni@intel.com> Subject: [edk2] [PATCH 01/10] UefiCpuPkg/MtrrLib: Correct typo in comments and remove TABs X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jeff Fan MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Jeff Fan --- UefiCpuPkg/Include/Library/MtrrLib.h | 14 +++++++------- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/UefiCpuPkg/Include/Library/MtrrLib.h b/UefiCpuPkg/Include/Libr= ary/MtrrLib.h index 4973d84..a769279 100644 --- a/UefiCpuPkg/Include/Library/MtrrLib.h +++ b/UefiCpuPkg/Include/Library/MtrrLib.h @@ -1,7 +1,7 @@ /** @file MTRR setting library =20 - 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 BS= D License which accompanies this distribution. The full text of the license may b= e found at @@ -16,7 +16,7 @@ #define _MTRR_LIB_H_ =20 // -// 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 // =20 @@ -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; =20 // -// 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 ( =20 @param[out] VariableSettings A buffer to hold variable MTRRs content. =20 - @return The buffer point to MTRR_VARIABLE_SETTINGS in which holds the co= ntent of the variable mtrr + @return The buffer point to MTRR_VARIABLE_SETTINGS in which holds the co= ntent of the variable MTRR =20 **/ MTRR_VARIABLE_SETTINGS* @@ -220,7 +220,7 @@ MtrrGetVariableMtrr ( =20 =20 /** - This function sets fixed MTRRs + This function sets variable MTRRs =20 @param[in] VariableSettings A buffer to hold variable MTRRs content. =20 diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/Mtrr= Lib/MtrrLib.c index 7783b63..2647dda 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -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 =3D=3D *Base && MtrrEnd =3D=3D E= ndAddress) { InvalidateShadowMtrr (Index, VariableMtrr, UsedMtrr); @@ -1278,7 +1278,7 @@ MtrrGetMemoryAttribute ( /** Worker function prints all MTRRs for debugging. =20 - 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. =20 --=20 2.9.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel