change log for rtems (2010-06-19)
rtems-vc at rtems.org
rtems-vc at rtems.org
Sun Jun 20 00:12:22 UTC 2010
*joel*:
2010-06-19 Joel Sherrill <joel.sherrilL at OARcorp.com>
* sapi/include/confdefs.h: Add CONFIGURE_MAXIMUM_FIFOS to account for
resources per FIFO instance.
M 1.2442 cpukit/ChangeLog
M 1.142 cpukit/sapi/include/confdefs.h
diff -u rtems/cpukit/ChangeLog:1.2441 rtems/cpukit/ChangeLog:1.2442
--- rtems/cpukit/ChangeLog:1.2441 Fri Jun 18 05:03:39 2010
+++ rtems/cpukit/ChangeLog Sat Jun 19 18:39:55 2010
@@ -1,3 +1,8 @@
+2010-06-19 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ * sapi/include/confdefs.h: Add CONFIGURE_MAXIMUM_FIFOS to account for
+ resources per FIFO instance.
+
2010-06-18 Ralf Corsépius <ralf.corsepius at rtems.org>
* libnetworking/rtems/mkrootfs.h: doxygen cosmetics.
diff -u rtems/cpukit/sapi/include/confdefs.h:1.141 rtems/cpukit/sapi/include/confdefs.h:1.142
--- rtems/cpukit/sapi/include/confdefs.h:1.141 Thu Jun 17 13:39:28 2010
+++ rtems/cpukit/sapi/include/confdefs.h Sat Jun 19 18:39:56 2010
@@ -288,11 +288,19 @@
#endif
/**
+ * It should be called FIFOs not pipes
+ */
+#if defined(CONFIGURE_PIPES_ENABLED)
+ #define CONFIGURE_FIFOS_ENABLED
+ #warning "Use CONFIGURE_FIFOS_ENABLED not CONFIGURE_PIPES_ENABLED"
+#endif
+
+/**
* This defines the IMFS file system table entry.
*/
#if !defined(CONFIGURE_FILESYSTEM_ENTRY_IMFS) && \
defined(CONFIGURE_FILESYSTEM_IMFS)
- #if defined(CONFIGURE_PIPES_ENABLED)
+ #if defined(CONFIGURE_FIFOS_ENABLED)
#define CONFIGURE_FILESYSTEM_ENTRY_IMFS \
{ RTEMS_FILESYSTEM_TYPE_IMFS, fifoIMFS_initialize }
#else
@@ -302,6 +310,20 @@
#endif
/**
+ * This sets up the resources for the PIPES/FIFOs
+ */
+#if defined(CONFIGURE_FIFOS_ENABLED)
+ #if !defined(CONFIGURE_MAXIMUM_FIFOS)
+ #error "FIFOs enabled but no FIFOs configured."
+ #endif
+ #define CONFIGURE_BARRIERS_FOR_FIFOS (2 * CONFIGURE_MAXIMUM_FIFOS)
+ #define CONFIGURE_SEMAPHORES_FOR_FIFOS (1 + CONFIGURE_MAXIMUM_FIFOS)
+#else
+ #define CONFIGURE_BARRIERS_FOR_FIFOS 0
+ #define CONFIGURE_SEMAPHORES_FOR_FIFOS 0
+#endif
+
+/**
* DEVFS
*/
#if !defined(CONFIGURE_FILESYSTEM_ENTRY_DEVFS) && \
@@ -1132,7 +1154,8 @@
#define CONFIGURE_SEMAPHORES \
(CONFIGURE_MAXIMUM_SEMAPHORES + CONFIGURE_LIBIO_SEMAPHORES + \
- CONFIGURE_TERMIOS_SEMAPHORES + CONFIGURE_LIBBLOCK_SEMAPHORES)
+ CONFIGURE_TERMIOS_SEMAPHORES + CONFIGURE_LIBBLOCK_SEMAPHORES + \
+ CONFIGURE_SEMAPHORES_FOR_FIFOS)
/*
* If there are no user or support semaphores defined, then we can assume
@@ -1187,6 +1210,12 @@
#ifndef CONFIGURE_MAXIMUM_BARRIERS
#define CONFIGURE_MAXIMUM_BARRIERS 0
+ #endif
+
+ #define CONFIGURE_BARRIERS \
+ (CONFIGURE_MAXIMUM_BARRIERS + CONFIGURE_BARRIERS_FOR_FIFOS)
+
+ #if CONFIGURE_BARRIERS == 0
#define CONFIGURE_MEMORY_FOR_BARRIERS(_barriers) 0
#else
#define CONFIGURE_MEMORY_FOR_BARRIERS(_barriers) \
@@ -1727,7 +1756,7 @@
CONFIGURE_MEMORY_FOR_REGIONS( CONFIGURE_MAXIMUM_REGIONS ) + \
CONFIGURE_MEMORY_FOR_PORTS(CONFIGURE_MAXIMUM_PORTS) + \
CONFIGURE_MEMORY_FOR_PERIODS(CONFIGURE_MAXIMUM_PERIODS) + \
- CONFIGURE_MEMORY_FOR_BARRIERS(CONFIGURE_MAXIMUM_BARRIERS) + \
+ CONFIGURE_MEMORY_FOR_BARRIERS(CONFIGURE_BARRIERS) + \
CONFIGURE_MEMORY_FOR_USER_EXTENSIONS(CONFIGURE_MAXIMUM_USER_EXTENSIONS) \
)
@@ -1808,7 +1837,7 @@
CONFIGURE_MEMORY_FOR_REGIONS( CONFIGURE_MAXIMUM_REGIONS ),
CONFIGURE_MEMORY_FOR_PORTS(CONFIGURE_MAXIMUM_PORTS),
CONFIGURE_MEMORY_FOR_PERIODS(CONFIGURE_MAXIMUM_PERIODS),
- CONFIGURE_MEMORY_FOR_BARRIERS(CONFIGURE_MAXIMUM_BARRIERS),
+ CONFIGURE_MEMORY_FOR_BARRIERS(CONFIGURE_BARRIERS),
CONFIGURE_MEMORY_FOR_USER_EXTENSIONS(CONFIGURE_MAXIMUM_USER_EXTENSIONS),
#ifdef RTEMS_POSIX_API
@@ -1865,7 +1894,7 @@
CONFIGURE_MAXIMUM_REGIONS,
CONFIGURE_MAXIMUM_PORTS,
CONFIGURE_MAXIMUM_PERIODS,
- CONFIGURE_MAXIMUM_BARRIERS,
+ CONFIGURE_BARRIERS,
CONFIGURE_INIT_TASK_TABLE_SIZE,
CONFIGURE_INIT_TASK_TABLE
};
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100619/36c1a830/attachment-0001.html>
More information about the vc
mailing list