arm/backtrace: fix compile warning

common/arm_backtrace_unwind.c: In function 'up_backtrace':
common/arm_backtrace_unwind.c:626:27:
warning: assignment to 'long unsigned int' from 'uint8_t (*)[]'\
{aka 'unsigned char (*)[]'} makes integer from pointer without a cast [-Wint-conversion]

  626 |           frame.stack_top = &g_intstacktop;
      |
This commit is contained in:
chao an 2023-02-06 16:47:57 +08:00 committed by Xiang Xiao
parent 14f8a6c2dd
commit 5ac638944b

View File

@ -623,7 +623,7 @@ int up_backtrace(struct tcb_s *tcb,
# ifdef CONFIG_SMP
frame.stack_top = arm_intstack_top();
# else
frame.stack_top = &g_intstacktop;
frame.stack_top = (unsigned long)&g_intstacktop;
# endif /* CONFIG_SMP */
#endif /* CONFIG_ARCH_INTERRUPTSTACK > 7 */