summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-01-24 08:44:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-02-08 09:18:53 +0100
commitb94205dc97cf2f794cef89512fb2e7f568def4d5 (patch)
treeb09b7159c00c04dd20d8f1b33b6e8ffc9f2d6b69
parentaefc67826ed9e8eea82851dec4de10b94015b062 (diff)
downloadbarebox-b94205dc97cf2f794cef89512fb2e7f568def4d5.tar.gz
ARM: Add UNWIND macro
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/include/asm/unwind.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/unwind.h b/arch/arm/include/asm/unwind.h
index 311ad3d..a6f3a91 100644
--- a/arch/arm/include/asm/unwind.h
+++ b/arch/arm/include/asm/unwind.h
@@ -48,4 +48,10 @@ extern void unwind_backtrace(struct pt_regs *regs);
#endif /* !__ASSEMBLY__ */
+#ifdef CONFIG_ARM_UNWIND
+#define UNWIND(code...) code
+#else
+#define UNWIND(code...)
+#endif
+
#endif /* __ASM_UNWIND_H */