arch/risc-v/rv32im/riscv_assert.c: Provide dummy definitions of dump
functions when ARCH_STACKDUMP is not enabled. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
94ded7a695
commit
778e3ed4ad
@ -59,8 +59,6 @@
|
|||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_STACKDUMP
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -69,6 +67,7 @@
|
|||||||
* Name: riscv_stackdump
|
* Name: riscv_stackdump
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
static void riscv_stackdump(uint32_t sp, uint32_t stack_top)
|
static void riscv_stackdump(uint32_t sp, uint32_t stack_top)
|
||||||
{
|
{
|
||||||
uint32_t stack ;
|
uint32_t stack ;
|
||||||
@ -81,6 +80,9 @@ static void riscv_stackdump(uint32_t sp, uint32_t stack_top)
|
|||||||
ptr[4], ptr[5], ptr[6], ptr[7]);
|
ptr[4], ptr[5], ptr[6], ptr[7]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
# define riscv_stackdump(sp, stack_top)
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: riscv_taskdump
|
* Name: riscv_taskdump
|
||||||
@ -122,6 +124,7 @@ static inline void riscv_showtasks(void)
|
|||||||
* Name: riscv_registerdump
|
* Name: riscv_registerdump
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
static inline void riscv_registerdump(void)
|
static inline void riscv_registerdump(void)
|
||||||
{
|
{
|
||||||
/* Are user registers available from interrupt processing? */
|
/* Are user registers available from interrupt processing? */
|
||||||
@ -162,11 +165,15 @@ static inline void riscv_registerdump(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
# define riscv_registerdump()
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: riscv_dumpstate
|
* Name: riscv_dumpstate
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_STACKDUMP
|
||||||
static void riscv_dumpstate(void)
|
static void riscv_dumpstate(void)
|
||||||
{
|
{
|
||||||
struct tcb_s *rtcb = running_task();
|
struct tcb_s *rtcb = running_task();
|
||||||
@ -248,8 +255,9 @@ static void riscv_dumpstate(void)
|
|||||||
riscv_stackdump(ustackbase, ustackbase + ustacksize);
|
riscv_stackdump(ustackbase, ustackbase + ustacksize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
#endif /* CONFIG_ARCH_STACKDUMP */
|
# define riscv_dumpstate()
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: riscv_assert
|
* Name: riscv_assert
|
||||||
|
Loading…
Reference in New Issue
Block a user