[rtems commit] config: Resurrect NULL_DRIVER_TABLE_ENTRY

Sebastian Huber sebh at rtems.org
Tue Feb 25 13:03:46 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb 25 13:49:45 2020 +0100

config: Resurrect NULL_DRIVER_TABLE_ENTRY

This define may be used by application configurations for the
CONFIGURE_APPLICATION_EXTRA_DRIVERS definition.

Update #3875.

---

 cpukit/include/rtems/confdefs/iodrivers.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpukit/include/rtems/confdefs/iodrivers.h b/cpukit/include/rtems/confdefs/iodrivers.h
index aaa027d..1e7b8c4 100644
--- a/cpukit/include/rtems/confdefs/iodrivers.h
+++ b/cpukit/include/rtems/confdefs/iodrivers.h
@@ -93,6 +93,8 @@
   #define CONFIGURE_MAXIMUM_DRIVERS
 #endif
 
+#define NULL_DRIVER_TABLE_ENTRY { NULL, NULL, NULL, NULL, NULL, NULL }
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -141,7 +143,7 @@ _IO_Driver_address_table[ CONFIGURE_MAXIMUM_DRIVERS ] = {
       && !defined(CONFIGURE_APPLICATION_NEEDS_ATA_DRIVER) \
       && !defined(CONFIGURE_APPLICATION_NEEDS_FRAME_BUFFER_DRIVER) \
       && !defined(CONFIGURE_APPLICATION_EXTRA_DRIVERS) )
-    { NULL, NULL, NULL, NULL, NULL, NULL }
+    NULL_DRIVER_TABLE_ENTRY
   #endif
 };
 



More information about the vc mailing list