[rtems commit] validation: Allow custom idle task body

Sebastian Huber sebh at rtems.org
Tue Apr 12 06:34:34 UTC 2022


Module:    rtems
Branch:    master
Commit:    ba36e4a2360479545cc59f3b96907603f2541fe5
Changeset: http://git.rtems.org/rtems/commit/?id=ba36e4a2360479545cc59f3b96907603f2541fe5

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Apr 12 08:29:00 2022 +0200

validation: Allow custom idle task body

---

 testsuites/validation/ts-fatal-sysinit.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/testsuites/validation/ts-fatal-sysinit.h b/testsuites/validation/ts-fatal-sysinit.h
index 33a5232813..5744bc6fea 100644
--- a/testsuites/validation/ts-fatal-sysinit.h
+++ b/testsuites/validation/ts-fatal-sysinit.h
@@ -127,8 +127,13 @@ RTEMS_SYSINIT_ITEM(
   { .fatal = TestSuiteFatalExtension }
 
 #if !defined(CONFIGURE_RTEMS_INIT_TASKS_TABLE)
+
 #define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION
 
+#if !defined(CONFIGURE_IDLE_TASK_BODY)
+
+#define CONFIGURE_IDLE_TASK_BODY IdleBody
+
 void *IdleBody( uintptr_t ignored )
 {
   (void) ignored;
@@ -136,8 +141,9 @@ void *IdleBody( uintptr_t ignored )
   rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, 1 );
 }
 
-#define CONFIGURE_IDLE_TASK_BODY IdleBody
-#endif
+#endif /* CONFIGURE_IDLE_TASK_BODY */
+
+#endif /* CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION */
 
 #define CONFIGURE_INIT
 



More information about the vc mailing list