From: Liming Gao Date: Fri, 16 Mar 2018 01:47:06 +0000 (+0800) Subject: UefiCpuPkg CpuExceptionHandlerLib: use FixedPcdGetSize() as the macro value X-Git-Tag: edk2-stable201903~2110 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=a24de121cf70bc48555b68d942b94fd10a074387 UefiCpuPkg CpuExceptionHandlerLib: use FixedPcdGetSize() as the macro value 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 Reviewed-by: Jian J Wang --- 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