mirror_edk2/MdeModulePkg
Dandan Bi dd3907f221 MdeModulePkg/SmmCorePerformanceLib: Update mPerformanceLength
In mSmmBootPerformanceTable there are two parts,
one is the FPDT table header and the other is FPDT records.
Currently:
mPerformanceLength: The length of existing FPDT records.
mMaxPerformanceLength: The maximum length allocated for
mSmmBootPerformanceTable(including FPDT table header length
and existing FPDT records length)
But when compare mPerformanceLength with mMaxPerformanceLength
to check whether need to allocate new buffer for new FPDT
record, we miss to add mPerformanceLength with header length,
which will cause pool allocation behavior is not correct.

Now update the mPerformanceLength to fix this issue:
updated mPerformanceLength = FPDT table header length
+ existing FPDT records length.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2018-07-04 10:42:36 +08:00
..
Application MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Bus MdeModulePkg SataControllerDxe: Use compare logic in if condition 2018-07-03 14:44:08 +08:00
Core MdeModulePkg PeiCore: Not assume PpiDescriptor and Ppi in same range 2018-07-02 11:29:50 +08:00
Include MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Library MdeModulePkg/SmmCorePerformanceLib: Update mPerformanceLength 2018-07-04 10:42:36 +08:00
Logo MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
Universal MdeModulePkg Variable: Add/Correct GetHobVariableStore para description 2018-07-03 14:44:08 +08:00
MdeModulePkg.dec MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
MdeModulePkg.dsc MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
MdeModulePkg.uni MdeModulePkg/Variable/RuntimeDxe: introduce PcdMaxVolatileVariableSize 2018-03-30 21:17:07 +02:00
MdeModulePkgExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00