nuttx: change TCB_FLAG_MEM_CHECK to TCB_FLAG_HEAPCHECK
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
This commit is contained in:
parent
dbb82c3191
commit
4bb393a24e
|
@ -107,7 +107,7 @@
|
||||||
#define TCB_FLAG_SYSCALL (1 << 10) /* Bit 9: In a system call */
|
#define TCB_FLAG_SYSCALL (1 << 10) /* Bit 9: In a system call */
|
||||||
#define TCB_FLAG_EXIT_PROCESSING (1 << 11) /* Bit 10: Exitting */
|
#define TCB_FLAG_EXIT_PROCESSING (1 << 11) /* Bit 10: Exitting */
|
||||||
#define TCB_FLAG_FREE_STACK (1 << 12) /* Bit 12: Free stack after exit */
|
#define TCB_FLAG_FREE_STACK (1 << 12) /* Bit 12: Free stack after exit */
|
||||||
#define TCB_FLAG_MEM_CHECK (1 << 13) /* Bit 13: Memory check */
|
#define TCB_FLAG_HEAPCHECK (1 << 13) /* Bit 13: Heap check */
|
||||||
/* Bits 14-15: Available */
|
/* Bits 14-15: Available */
|
||||||
|
|
||||||
/* Values for struct task_group tg_flags */
|
/* Values for struct task_group tg_flags */
|
||||||
|
|
|
@ -175,8 +175,8 @@ void irq_dispatch(int irq, FAR void *context)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_MM
|
#ifdef CONFIG_DEBUG_MM
|
||||||
if ((g_running_tasks[this_cpu()]->flags & TCB_FLAG_MEM_CHECK) || \
|
if ((g_running_tasks[this_cpu()]->flags & TCB_FLAG_HEAPCHECK) || \
|
||||||
(this_task()->flags & TCB_FLAG_MEM_CHECK))
|
(this_task()->flags & TCB_FLAG_HEAPCHECK))
|
||||||
{
|
{
|
||||||
kmm_checkcorruption();
|
kmm_checkcorruption();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue