summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-04-19 12:29:31 +0100
committerLeif Lindholm <leif.lindholm@linaro.org>2017-10-11 12:36:45 +0100
commit548f7d15a8fa4f47d3d91ea849cf6cab14b1673e (patch)
tree65af2da796ccfc528216dd1e1c92582a67dec3b5
parenta4213b29dee386afff9e5b24a16e1a32780234d9 (diff)
downloadedk2-platforms-548f7d15a8fa4f47d3d91ea849cf6cab14b1673e.tar.xz
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 <ard.biesheuvel@linaro.org> Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S1
1 files changed, 1 insertions, 0 deletions
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 <Library/ArmLib.h>
ASM_FUNC(ArmPlatformPeiBootAction)
+ mov x29, xzr
ret
//UINTN