summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadcreateidle.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-14 13:36:30 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-25 07:15:19 +0100
commit5180762ccb480e72c0dac5eb3c8c27a2ad62a240 (patch)
tree484ebfde56a8ab000eaa09c2717388d4b68b1aaa /cpukit/score/src/threadcreateidle.c
parentconfig: Add _Thread_Idle_stack_size (diff)
downloadrtems-5180762ccb480e72c0dac5eb3c8c27a2ad62a240.tar.bz2
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.
Diffstat (limited to 'cpukit/score/src/threadcreateidle.c')
-rw-r--r--cpukit/score/src/threadcreateidle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c
index 66ed92702e..52c3ad4534 100644
--- a/cpukit/score/src/threadcreateidle.c
+++ b/cpukit/score/src/threadcreateidle.c
@@ -25,7 +25,6 @@
#include <rtems/score/stackimpl.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/userextimpl.h>
-#include <rtems/config.h>
#include <string.h>
@@ -79,7 +78,7 @@ static void _Thread_Create_idle_for_CPU( Per_CPU_Control *cpu )
idle->is_idle = true;
idle->Start.Entry.adaptor = _Thread_Entry_adaptor_idle;
- idle->Start.Entry.Kinds.Idle.entry = rtems_configuration_get_idle_task();
+ idle->Start.Entry.Kinds.Idle.entry = _Thread_Idle_body;
_Thread_Load_environment( idle );