From 4bb393a24e1e87f94fe3c50cd12d7599bc477883 Mon Sep 17 00:00:00 2001 From: haopengxiang Date: Fri, 29 Apr 2022 17:28:06 +0800 Subject: [PATCH] nuttx: change TCB_FLAG_MEM_CHECK to TCB_FLAG_HEAPCHECK Signed-off-by: haopengxiang --- include/nuttx/sched.h | 2 +- sched/irq/irq_dispatch.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h index 59115a10de..e3eaed1658 100644 --- a/include/nuttx/sched.h +++ b/include/nuttx/sched.h @@ -107,7 +107,7 @@ #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_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 */ /* Values for struct task_group tg_flags */ diff --git a/sched/irq/irq_dispatch.c b/sched/irq/irq_dispatch.c index a2afbb48c5..ddab930be1 100644 --- a/sched/irq/irq_dispatch.c +++ b/sched/irq/irq_dispatch.c @@ -175,8 +175,8 @@ void irq_dispatch(int irq, FAR void *context) #endif #ifdef CONFIG_DEBUG_MM - if ((g_running_tasks[this_cpu()]->flags & TCB_FLAG_MEM_CHECK) || \ - (this_task()->flags & TCB_FLAG_MEM_CHECK)) + if ((g_running_tasks[this_cpu()]->flags & TCB_FLAG_HEAPCHECK) || \ + (this_task()->flags & TCB_FLAG_HEAPCHECK)) { kmm_checkcorruption(); }