summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-11-03 15:48:11 +0800
committerJeff Fan <jeff.fan@intel.com>2016-11-09 16:00:15 +0800
commitaf34c1064934b8c02dca1660408b9aa7898c0e5b (patch)
tree6c073bcc6382d5a468123f1f66efc410c0de9b1b /UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
parent6fb389d0a180ae4e623c39d051a3ddb38515b614 (diff)
downloadedk2-af34c1064934b8c02dca1660408b9aa7898c0e5b.tar.gz
edk2-af34c1064934b8c02dca1660408b9aa7898c0e5b.tar.bz2
edk2-af34c1064934b8c02dca1660408b9aa7898c0e5b.zip
UefiCpuPkg: Display new stack base and size
Dump new stack base and size information could help developer to narrow down stack crash issue. 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: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c')
-rw-r--r--UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c b/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
index f907b301fd..d306fba561 100644
--- a/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
+++ b/UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
@@ -515,6 +515,13 @@ S3ResumeBootOs (
// Switch to native waking vector
//
TempStackTop = (UINTN)&TempStack + sizeof(TempStack);
+ DEBUG ((
+ DEBUG_INFO,
+ "%a() Stack Base: 0x%x, Stack Size: 0x%x\n",
+ __FUNCTION__,
+ TempStackTop,
+ sizeof (TempStack)
+ ));
if ((Facs->Version == EFI_ACPI_4_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION) &&
((Facs->Flags & EFI_ACPI_4_0_64BIT_WAKE_SUPPORTED_F) != 0) &&
((Facs->Flags & EFI_ACPI_4_0_OSPM_64BIT_WAKE__F) != 0)) {