From 5180762ccb480e72c0dac5eb3c8c27a2ad62a240 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 14 Feb 2020 13:36:30 +0100 Subject: config: Add _Thread_Idle_body Move the idle thread body configuration constant out of the configuration table. Provide a default definition of the idle thread body constant. Update #3875. --- cpukit/include/rtems/confdefs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpukit/include/rtems/confdefs.h') diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index 442ee7af92..ae1dca11e0 100644 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -1092,10 +1092,12 @@ extern "C" { #ifndef CONFIGURE_IDLE_TASK_BODY #if defined(BSP_IDLE_TASK_BODY) #define CONFIGURE_IDLE_TASK_BODY BSP_IDLE_TASK_BODY - #else - #define CONFIGURE_IDLE_TASK_BODY _CPU_Thread_Idle_body #endif #endif + +#if defined(CONFIGURE_INIT) && defined(CONFIGURE_IDLE_TASK_BODY) +const Thread_Idle_body _Thread_Idle_body = CONFIGURE_IDLE_TASK_BODY; +#endif /**@}*/ /* end of IDLE thread configuration */ /** @@ -2636,7 +2638,6 @@ struct _reent *__getreent(void) */ const rtems_configuration_table Configuration = { CONFIGURE_EXECUTIVE_RAM_SIZE, /* required RTEMS workspace */ - CONFIGURE_IDLE_TASK_BODY, /* user's IDLE task */ #ifdef CONFIGURE_UNIFIED_WORK_AREAS /* true for unified work areas */ true, #else -- cgit v1.2.3