From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 CA184223FCF5C for ; Thu, 15 Mar 2018 18:40:50 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Mar 2018 18:47:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,313,1517904000"; d="scan'208";a="211790708" Received: from lgao4-mobl1.ccr.corp.intel.com ([10.254.210.232]) by fmsmga006.fm.intel.com with ESMTP; 15 Mar 2018 18:47:12 -0700 From: Liming Gao To: edk2-devel@lists.01.org Cc: Wang Jian J , Ruiyu Ni , Michael Kinney Date: Fri, 16 Mar 2018 09:47:06 +0800 Message-Id: <20180316014706.15952-1-liming.gao@intel.com> X-Mailer: git-send-email 2.11.0.windows.1 Subject: [Patch] UefiCpuPkg CpuExceptionHandlerLib: use FixedPcdGetSize() as the macro value X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2018 01:40:51 -0000 FixedPcdGetSize() is used as the macro value, PcdGetSize() is used as global variable or function. Here usage is to access macro value. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Cc: Wang Jian J Cc: Ruiyu Ni Cc: Michael Kinney --- UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchInterruptDefs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchInterruptDefs.h b/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchInterruptDefs.h index d9ded5977f..ac3650a2a3 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchInterruptDefs.h +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchInterruptDefs.h @@ -1,7 +1,7 @@ /** @file Ia32 arch definition for CPU Exception Handler Library. - Copyright (c) 2013, Intel Corporation. All rights reserved.
+ Copyright (c) 2013 - 2018, 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 @@ -43,10 +43,10 @@ typedef struct { #define CPU_TSS_DESC_SIZE \ (sizeof (IA32_TSS_DESCRIPTOR) * \ - (PcdGetSize (PcdCpuStackSwitchExceptionList) + 1)) + (FixedPcdGetSize (PcdCpuStackSwitchExceptionList) + 1)) #define CPU_TSS_SIZE \ (sizeof (IA32_TASK_STATE_SEGMENT) * \ - (PcdGetSize (PcdCpuStackSwitchExceptionList) + 1)) + (FixedPcdGetSize (PcdCpuStackSwitchExceptionList) + 1)) #endif -- 2.11.0.windows.1