[rtems commit] sysinit: Add RTEMS_SYSINIT_ORDER_LAST_BUT_[1-9]

Sebastian Huber sebh at rtems.org
Tue Feb 4 06:03:21 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sun Feb  2 10:53:56 2020 +0100

sysinit: Add RTEMS_SYSINIT_ORDER_LAST_BUT_[1-9]

Update #3838.

---

 cpukit/include/rtems/sysinit.h        | 33 +++++++++++++++++++++------------
 testsuites/sptests/spsysinit01/init.c | 18 ++++++++++++++++++
 2 files changed, 39 insertions(+), 12 deletions(-)

diff --git a/cpukit/include/rtems/sysinit.h b/cpukit/include/rtems/sysinit.h
index 7edd313..a0f613c 100644
--- a/cpukit/include/rtems/sysinit.h
+++ b/cpukit/include/rtems/sysinit.h
@@ -87,18 +87,27 @@ extern "C" {
  * digits without a 0x-prefix.  A 0x-prefix is concatenated with the module and
  * order values to form a proper integer literal.
  */
-#define RTEMS_SYSINIT_ORDER_FIRST   00
-#define RTEMS_SYSINIT_ORDER_SECOND  01
-#define RTEMS_SYSINIT_ORDER_THIRD   02
-#define RTEMS_SYSINIT_ORDER_FOURTH  03
-#define RTEMS_SYSINIT_ORDER_FIFTH   04
-#define RTEMS_SYSINIT_ORDER_SIXTH   05
-#define RTEMS_SYSINIT_ORDER_SEVENTH 06
-#define RTEMS_SYSINIT_ORDER_EIGHTH  07
-#define RTEMS_SYSINIT_ORDER_NINETH  08
-#define RTEMS_SYSINIT_ORDER_TENTH   09
-#define RTEMS_SYSINIT_ORDER_MIDDLE  80
-#define RTEMS_SYSINIT_ORDER_LAST    ff
+#define RTEMS_SYSINIT_ORDER_FIRST      00
+#define RTEMS_SYSINIT_ORDER_SECOND     01
+#define RTEMS_SYSINIT_ORDER_THIRD      02
+#define RTEMS_SYSINIT_ORDER_FOURTH     03
+#define RTEMS_SYSINIT_ORDER_FIFTH      04
+#define RTEMS_SYSINIT_ORDER_SIXTH      05
+#define RTEMS_SYSINIT_ORDER_SEVENTH    06
+#define RTEMS_SYSINIT_ORDER_EIGHTH     07
+#define RTEMS_SYSINIT_ORDER_NINETH     08
+#define RTEMS_SYSINIT_ORDER_TENTH      09
+#define RTEMS_SYSINIT_ORDER_MIDDLE     80
+#define RTEMS_SYSINIT_ORDER_LAST_BUT_9 f6
+#define RTEMS_SYSINIT_ORDER_LAST_BUT_8 f7
+#define RTEMS_SYSINIT_ORDER_LAST_BUT_7 f8
+#define RTEMS_SYSINIT_ORDER_LAST_BUT_6 f9
+#define RTEMS_SYSINIT_ORDER_LAST_BUT_5 fa
+#define RTEMS_SYSINIT_ORDER_LAST_BUT_4 fb
+#define RTEMS_SYSINIT_ORDER_LAST_BUT_3 fc
+#define RTEMS_SYSINIT_ORDER_LAST_BUT_2 fd
+#define RTEMS_SYSINIT_ORDER_LAST_BUT_1 fe
+#define RTEMS_SYSINIT_ORDER_LAST       ff
 
 typedef void ( *rtems_sysinit_handler )( void );
 
diff --git a/testsuites/sptests/spsysinit01/init.c b/testsuites/sptests/spsysinit01/init.c
index 05629f7..6ef7d19 100644
--- a/testsuites/sptests/spsysinit01/init.c
+++ b/testsuites/sptests/spsysinit01/init.c
@@ -148,6 +148,15 @@ typedef enum {
   LAST_NINETH,
   LAST_TENTH,
   LAST_MIDDLE,
+  LAST_LAST_BUT_9,
+  LAST_LAST_BUT_8,
+  LAST_LAST_BUT_7,
+  LAST_LAST_BUT_6,
+  LAST_LAST_BUT_5,
+  LAST_LAST_BUT_4,
+  LAST_LAST_BUT_3,
+  LAST_LAST_BUT_2,
+  LAST_LAST_BUT_1,
   LAST_LAST,
   INIT_TASK,
   DONE
@@ -641,6 +650,15 @@ LAST_STEP(EIGHTH);
 LAST_STEP(NINETH);
 LAST_STEP(TENTH);
 LAST_STEP(MIDDLE);
+LAST_STEP(LAST_BUT_9);
+LAST_STEP(LAST_BUT_8);
+LAST_STEP(LAST_BUT_7);
+LAST_STEP(LAST_BUT_6);
+LAST_STEP(LAST_BUT_5);
+LAST_STEP(LAST_BUT_4);
+LAST_STEP(LAST_BUT_3);
+LAST_STEP(LAST_BUT_2);
+LAST_STEP(LAST_BUT_1);
 LAST_STEP(LAST);
 
 static void do_barrier_create(void)



More information about the vc mailing list