From 548f7d15a8fa4f47d3d91ea849cf6cab14b1673e Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Wed, 19 Apr 2017 12:29:31 +0100 Subject: Marvell/Armada: Armada70x0Lib: Terminate call stack list at entry To avoid dereferencing junk when walking the call stack in exception handlers (which may prevent us from getting a full backtrace), set the frame pointer to 0x0 when first entering UEFI. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Signed-off-by: Marcin Wojtas Reviewed-by: Leif Lindholm --- .../Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S | 1 + 1 file changed, 1 insertion(+) diff --git a/Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S b/Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S index 9265636ca5..72f8cfce77 100644 --- a/Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S +++ b/Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S @@ -16,6 +16,7 @@ #include ASM_FUNC(ArmPlatformPeiBootAction) + mov x29, xzr ret //UINTN -- cgit v1.2.3