summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/threadidledata.h
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/include/rtems/score/threadidledata.h
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 '')
-rw-r--r--cpukit/include/rtems/score/threadidledata.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/threadidledata.h b/cpukit/include/rtems/score/threadidledata.h
index 0011776ffa..79ac020576 100644
--- a/cpukit/include/rtems/score/threadidledata.h
+++ b/cpukit/include/rtems/score/threadidledata.h
@@ -56,6 +56,19 @@ extern "C" {
*/
extern const size_t _Thread_Idle_stack_size;
+/**
+ * @brief The idle thread body type.
+ */
+typedef void *( *Thread_Idle_body )( uintptr_t );
+
+/**
+ * @brief The idle thread body.
+ *
+ * This constant is defined by the application configuration via
+ * <rtems/confdefs.h>.
+ */
+extern const Thread_Idle_body _Thread_Idle_body;
+
/** @} */
#ifdef __cplusplus