mirror of https://github.com/acidanthera/audk.git
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 <liming.gao@intel.com> Cc: Wang Jian J <jian.j.wang@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
parent
792ace0ac3
commit
a24de121cf
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
Ia32 arch definition for CPU Exception Handler Library.
|
||||
|
||||
Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue