From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 8468B21CE7417 for ; Sun, 6 Aug 2017 23:28:15 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP; 06 Aug 2017 23:30:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,336,1498546800"; d="scan'208";a="1000822338" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 06 Aug 2017 23:30:30 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 6 Aug 2017 23:30:30 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 6 Aug 2017 23:30:30 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.151]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.122]) with mapi id 14.03.0319.002; Mon, 7 Aug 2017 14:30:28 +0800 From: "Ni, Ruiyu" To: "Dong, Eric" , "edk2-devel@lists.01.org" CC: "Fan, Jeff" Thread-Topic: [Patch 6/7] UefiCpuPkg CpuDxe: Remove reference deprecated macro. Thread-Index: AQHTDDtyWKCSv/h2KkmYu5V8jX8suKJ4dHyA Date: Mon, 7 Aug 2017 06:30:27 +0000 Deferred-Delivery: Mon, 7 Aug 2017 06:30:00 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5B9CE2AB@SHSMSX104.ccr.corp.intel.com> References: <1501752726-14072-1-git-send-email-eric.dong@intel.com> <1501752726-14072-7-git-send-email-eric.dong@intel.com> In-Reply-To: <1501752726-14072-7-git-send-email-eric.dong@intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch 6/7] UefiCpuPkg CpuDxe: Remove reference deprecated macro. 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: , X-List-Received-Date: Mon, 07 Aug 2017 06:28:15 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni Thanks/Ray > -----Original Message----- > From: Dong, Eric > Sent: Thursday, August 3, 2017 5:32 PM > To: edk2-devel@lists.01.org > Cc: Fan, Jeff ; Ni, Ruiyu > Subject: [Patch 6/7] UefiCpuPkg CpuDxe: Remove reference deprecated > macro. >=20 > Cc: Jeff Fan > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Eric Dong > --- > UefiCpuPkg/CpuDxe/CpuDxe.c | 22 +++++++++++----------- > UefiCpuPkg/CpuDxe/CpuDxe.h | 1 + > 2 files changed, 12 insertions(+), 11 deletions(-) >=20 > 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 =3D 0; >=20 > FIXED_MTRR mFixedMtrrTable[] =3D { > { > - 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 @@ >=20 > #include > #include > +#include >=20 > #include #include > > -- > 2.7.0.windows.1