diff --git a/arch/xtensa/core/xtensa_backtrace.c b/arch/xtensa/core/xtensa_backtrace.c index 70e36c961a3..145d52ce58d 100644 --- a/arch/xtensa/core/xtensa_backtrace.c +++ b/arch/xtensa/core/xtensa_backtrace.c @@ -46,8 +46,6 @@ static inline bool xtensa_stack_ptr_is_sane(uint32_t sp) valid = esp_stack_ptr_is_sane(sp); #elif defined(CONFIG_SOC_FAMILY_INTEL_ADSP) valid = intel_adsp_ptr_is_sane(sp); -#elif defined(CONFIG_SOC_XTENSA_DC233C) - valid = xtensa_dc233c_stack_ptr_is_sane(sp); #else /* Platform does not have additional requirements on * whether stack pointer is valid. So use the generic diff --git a/soc/cdns/dc233c/include/backtrace_helpers.h b/soc/cdns/dc233c/include/backtrace_helpers.h index 8793ebcd7a1..117faf4df74 100644 --- a/soc/cdns/dc233c/include/backtrace_helpers.h +++ b/soc/cdns/dc233c/include/backtrace_helpers.h @@ -20,9 +20,4 @@ static inline bool xtensa_dc233c_ptr_executable(const void *p) return (in_text || in_vecbase); } -static inline bool xtensa_dc233c_stack_ptr_is_sane(uint32_t sp) -{ - return ((char *)sp >= __text_region_start); -} - #endif /* ZEPHYR_SOC_XTENSA_DC233C_BACKTRACE_HELPERS_H_ */