]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/MtrrLib: Correct typo in comments and remove TABs
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 18 Aug 2016 07:34:54 +0000 (15:34 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 31 Mar 2017 05:57:30 +0000 (13:57 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
UefiCpuPkg/Include/Library/MtrrLib.h
UefiCpuPkg/Library/MtrrLib/MtrrLib.c

index 4973d847a6e26c9e47ce73367aca4233f47b7e92..c37e776d9ac61d879e78f3088995fda334b7b190 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   MTRR setting library\r
 \r
-  Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2008 - 2017, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -16,7 +16,7 @@
 #define  _MTRR_LIB_H_\r
 \r
 //\r
-// According to IA32 SDM, MTRRs number and msr offset are always consistent\r
+// According to IA32 SDM, MTRRs number and MSR offset are always consistent\r
 // for IA32 processor family\r
 //\r
 \r
@@ -92,11 +92,11 @@ typedef struct _MTRR_VARIABLE_SETTING_ {
 // Array for variable MTRRs\r
 //\r
 typedef struct _MTRR_VARIABLE_SETTINGS_ {\r
-       MTRR_VARIABLE_SETTING   Mtrr[MTRR_NUMBER_OF_VARIABLE_MTRR];\r
-}      MTRR_VARIABLE_SETTINGS;\r
+  MTRR_VARIABLE_SETTING   Mtrr[MTRR_NUMBER_OF_VARIABLE_MTRR];\r
+} MTRR_VARIABLE_SETTINGS;\r
 \r
 //\r
-// Array for fixed mtrrs\r
+// Array for fixed MTRRs\r
 //\r
 typedef  struct  _MTRR_FIXED_SETTINGS_ {\r
   UINT64       Mtrr[MTRR_NUMBER_OF_FIXED_MTRR];\r
@@ -209,7 +209,7 @@ MtrrGetMemoryAttribute (
 \r
   @param[out]  VariableSettings   A buffer to hold variable MTRRs content.\r
 \r
-  @return The buffer point to MTRR_VARIABLE_SETTINGS in which holds the content of the variable mtrr\r
+  @return The buffer point to MTRR_VARIABLE_SETTINGS in which holds the content of the variable MTRR\r
 \r
 **/\r
 MTRR_VARIABLE_SETTINGS*\r
@@ -220,7 +220,7 @@ MtrrGetVariableMtrr (
 \r
 \r
 /**\r
-  This function sets fixed MTRRs\r
+  This function sets variable MTRRs\r
 \r
   @param[in]  VariableSettings   A buffer to hold variable MTRRs content.\r
 \r
index 7783b63d8267e222e2e060d2de5f43b88628e1c1..547f827e506a5ac826731245899078b3557047ce 100644 (file)
@@ -5,7 +5,7 @@
     Most of services in this library instance are suggested to be invoked by BSP only,\r
     except for MtrrSetAllMtrrs() which is used to sync BSP's MTRR setting to APs.\r
 \r
-  Copyright (c) 2008 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2008 - 2017, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -786,7 +786,7 @@ CombineMemoryAttribute (
       continue;\r
     } else {\r
       //\r
-      // The cache type is different, but the range is convered by one MTRR\r
+      // The cache type is different, but the range is covered by one MTRR\r
       //\r
       if (VariableMtrr[Index].BaseAddress == *Base && MtrrEnd == EndAddress) {\r
         InvalidateShadowMtrr (Index, VariableMtrr, UsedMtrr);\r
@@ -1278,7 +1278,7 @@ MtrrGetMemoryAttribute (
 /**\r
   Worker function prints all MTRRs for debugging.\r
 \r
-  If MtrrSetting is not NULL, print MTRR settings from from input MTRR\r
+  If MtrrSetting is not NULL, print MTRR settings from input MTRR\r
   settings buffer.\r
   If MtrrSetting is NULL, print MTRR settings from MTRRs.\r
 \r