From 74dd276fe16ecd3de46d866e631273f286fbf7f2 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 6 Aug 2018 21:52:11 -0400 Subject: debug: Wrap rb_backtrace with HAVE_RB_BACKTRACE instead of CPU_ARM Basically, preparation for a non-ARM backtrace support. Change-Id: Icfd09fbc65a98f859e2a19f8d1111827a262a969 --- firmware/export/system.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/export/system.h') diff --git a/firmware/export/system.h b/firmware/export/system.h index f26b3d7f56..ebeef9c004 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -253,6 +253,11 @@ static inline void cpu_boost_unlock(void) #define MIN_STACK_ALIGN 8 #endif +/* Define this if target has support for generating backtraces */ +#ifdef CPU_ARM + #define HAVE_RB_BACKTRACE +#endif + #ifndef MIN_STACK_ALIGN #define MIN_STACK_ALIGN (sizeof (uintptr_t)) #endif -- cgit v1.2.3