diff --git a/sched/init/os_start.c b/sched/init/os_start.c index 091b6095c8b..689abaf6b6c 100644 --- a/sched/init/os_start.c +++ b/sched/init/os_start.c @@ -154,31 +154,31 @@ volatile dq_queue_t g_pendingtasks; volatile dq_queue_t g_waitingforsemaphore; +#ifndef CONFIG_DISABLE_SIGNALS /* This is the list of all tasks that are blocked waiting for a signal */ -#ifndef CONFIG_DISABLE_SIGNALS volatile dq_queue_t g_waitingforsignal; #endif +#ifndef CONFIG_DISABLE_MQUEUE /* This is the list of all tasks that are blocked waiting for a message * queue to become non-empty. */ -#ifndef CONFIG_DISABLE_MQUEUE volatile dq_queue_t g_waitingformqnotempty; #endif +#ifndef CONFIG_DISABLE_MQUEUE /* This is the list of all tasks that are blocked waiting for a message * queue to become non-full. */ -#ifndef CONFIG_DISABLE_MQUEUE volatile dq_queue_t g_waitingformqnotfull; #endif +#ifdef CONFIG_PAGING /* This is the list of all tasks that are blocking waiting for a page fill */ -#ifdef CONFIG_PAGING volatile dq_queue_t g_waitingforfill; #endif @@ -188,14 +188,14 @@ volatile dq_queue_t g_waitingforfill; volatile dq_queue_t g_inactivetasks; +#if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \ + defined(CONFIG_MM_KERNEL_HEAP) /* These are lists of delayed memory deallocations that need to be handled * within the IDLE loop or worker thread. These deallocations get queued * by sched_kufree and sched_kfree() if the OS needs to deallocate memory * while it is within an interrupt handler. */ -#if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \ - defined(CONFIG_MM_KERNEL_HEAP) volatile sq_queue_t g_delayed_kfree; #endif diff --git a/sched/signal/sig_dispatch.c b/sched/signal/sig_dispatch.c index 1cfe1b97c02..1085b168b6b 100644 --- a/sched/signal/sig_dispatch.c +++ b/sched/signal/sig_dispatch.c @@ -391,11 +391,11 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info) nxsem_wait_irq(stcb, EINTR); } +#ifndef CONFIG_DISABLE_MQUEUE /* If the task is blocked waiting on a message queue, then that task * must be unblocked when a signal is received. */ -#ifndef CONFIG_DISABLE_MQUEUE if (stcb->task_state == TSTATE_WAIT_MQNOTEMPTY || stcb->task_state == TSTATE_WAIT_MQNOTFULL) {