]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c
MdeModulePkg/DxeIplPeim: UINTN used wrongly for EFI_PHYSICAL_ADDRESS
authorJeff Fan <jeff.fan@intel.com>
Fri, 4 Nov 2016 02:01:21 +0000 (10:01 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 9 Nov 2016 08:00:32 +0000 (16:00 +0800)
commitb028c1021cdfbfaa0202711f2a008c801752917f
treee27794035c10f6a634744ebc754e3d4e3904b508
parentaf34c1064934b8c02dca1660408b9aa7898c0e5b
MdeModulePkg/DxeIplPeim: UINTN used wrongly for EFI_PHYSICAL_ADDRESS

PeiServicesAllocatePages () will output sizeof (EFI_PHYSICAL_ADDRESS) value.
IdtTableForX64 is sizeof (UINTN) local variable. It will overwrite other local
variable.

This issue is found when we dump BaseOfStack value.

Cc: Feng Tian <feng.tian@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c