[edk2] [Patch 6/7] UefiCpuPkg CpuDxe: Remove reference deprecated macro.

Eric Dong posted 7 patches 7 years, 4 months ago
[edk2] [Patch 6/7] UefiCpuPkg CpuDxe: Remove reference deprecated macro.
Posted by Eric Dong 7 years, 4 months ago
Cc: Jeff Fan <jeff.fan@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
---
 UefiCpuPkg/CpuDxe/CpuDxe.c | 22 +++++++++++-----------
 UefiCpuPkg/CpuDxe/CpuDxe.h |  1 +
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c
index 6218670..b386f3b 100644
--- a/UefiCpuPkg/CpuDxe/CpuDxe.c
+++ b/UefiCpuPkg/CpuDxe/CpuDxe.c
@@ -31,57 +31,57 @@ UINT64                    mTimerPeriod = 0;
 
 FIXED_MTRR    mFixedMtrrTable[] = {
   {
-    MTRR_LIB_IA32_MTRR_FIX64K_00000,
+    MSR_IA32_MTRR_FIX64K_00000,
     0,
     0x10000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX16K_80000,
+    MSR_IA32_MTRR_FIX16K_80000,
     0x80000,
     0x4000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX16K_A0000,
+    MSR_IA32_MTRR_FIX16K_A0000,
     0xA0000,
     0x4000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX4K_C0000,
+    MSR_IA32_MTRR_FIX4K_C0000,
     0xC0000,
     0x1000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX4K_C8000,
+    MSR_IA32_MTRR_FIX4K_C8000,
     0xC8000,
     0x1000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX4K_D0000,
+    MSR_IA32_MTRR_FIX4K_D0000,
     0xD0000,
     0x1000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX4K_D8000,
+    MSR_IA32_MTRR_FIX4K_D8000,
     0xD8000,
     0x1000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX4K_E0000,
+    MSR_IA32_MTRR_FIX4K_E0000,
     0xE0000,
     0x1000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX4K_E8000,
+    MSR_IA32_MTRR_FIX4K_E8000,
     0xE8000,
     0x1000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX4K_F0000,
+    MSR_IA32_MTRR_FIX4K_F0000,
     0xF0000,
     0x1000
   },
   {
-    MTRR_LIB_IA32_MTRR_FIX4K_F8000,
+    MSR_IA32_MTRR_FIX4K_F8000,
     0xF8000,
     0x1000
   },
diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.h b/UefiCpuPkg/CpuDxe/CpuDxe.h
index 27ad45b..4861abe 100644
--- a/UefiCpuPkg/CpuDxe/CpuDxe.h
+++ b/UefiCpuPkg/CpuDxe/CpuDxe.h
@@ -19,6 +19,7 @@
 
 #include <Protocol/Cpu.h>
 #include <Protocol/MpService.h>
+#include <Register/Msr.h>
 
 #include <Ppi/SecPlatformInformation.h>
 #include <Ppi/SecPlatformInformation2.h>
-- 
2.7.0.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [Patch 6/7] UefiCpuPkg CpuDxe: Remove reference deprecated macro.
Posted by Ni, Ruiyu 7 years, 4 months ago
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

Thanks/Ray

> -----Original Message-----
> From: Dong, Eric
> Sent: Thursday, August 3, 2017 5:32 PM
> To: edk2-devel@lists.01.org
> Cc: Fan, Jeff <jeff.fan@intel.com>; Ni, Ruiyu <ruiyu.ni@intel.com>
> Subject: [Patch 6/7] UefiCpuPkg CpuDxe: Remove reference deprecated
> macro.
> 
> Cc: Jeff Fan <jeff.fan@intel.com>
> Cc: Ruiyu Ni <ruiyu.ni@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Eric Dong <eric.dong@intel.com>
> ---
>  UefiCpuPkg/CpuDxe/CpuDxe.c | 22 +++++++++++-----------
> UefiCpuPkg/CpuDxe/CpuDxe.h |  1 +
>  2 files changed, 12 insertions(+), 11 deletions(-)
> 
> diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c
> index 6218670..b386f3b 100644
> --- a/UefiCpuPkg/CpuDxe/CpuDxe.c
> +++ b/UefiCpuPkg/CpuDxe/CpuDxe.c
> @@ -31,57 +31,57 @@ UINT64                    mTimerPeriod = 0;
> 
>  FIXED_MTRR    mFixedMtrrTable[] = {
>    {
> -    MTRR_LIB_IA32_MTRR_FIX64K_00000,
> +    MSR_IA32_MTRR_FIX64K_00000,
>      0,
>      0x10000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX16K_80000,
> +    MSR_IA32_MTRR_FIX16K_80000,
>      0x80000,
>      0x4000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX16K_A0000,
> +    MSR_IA32_MTRR_FIX16K_A0000,
>      0xA0000,
>      0x4000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX4K_C0000,
> +    MSR_IA32_MTRR_FIX4K_C0000,
>      0xC0000,
>      0x1000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX4K_C8000,
> +    MSR_IA32_MTRR_FIX4K_C8000,
>      0xC8000,
>      0x1000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX4K_D0000,
> +    MSR_IA32_MTRR_FIX4K_D0000,
>      0xD0000,
>      0x1000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX4K_D8000,
> +    MSR_IA32_MTRR_FIX4K_D8000,
>      0xD8000,
>      0x1000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX4K_E0000,
> +    MSR_IA32_MTRR_FIX4K_E0000,
>      0xE0000,
>      0x1000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX4K_E8000,
> +    MSR_IA32_MTRR_FIX4K_E8000,
>      0xE8000,
>      0x1000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX4K_F0000,
> +    MSR_IA32_MTRR_FIX4K_F0000,
>      0xF0000,
>      0x1000
>    },
>    {
> -    MTRR_LIB_IA32_MTRR_FIX4K_F8000,
> +    MSR_IA32_MTRR_FIX4K_F8000,
>      0xF8000,
>      0x1000
>    },
> diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.h b/UefiCpuPkg/CpuDxe/CpuDxe.h
> index 27ad45b..4861abe 100644
> --- a/UefiCpuPkg/CpuDxe/CpuDxe.h
> +++ b/UefiCpuPkg/CpuDxe/CpuDxe.h
> @@ -19,6 +19,7 @@
> 
>  #include <Protocol/Cpu.h>
>  #include <Protocol/MpService.h>
> +#include <Register/Msr.h>
> 
>  #include <Ppi/SecPlatformInformation.h>  #include
> <Ppi/SecPlatformInformation2.h>
> --
> 2.7.0.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel