change log for rtems (2011-10-26)

rtems-vc at rtems.org rtems-vc at rtems.org
Wed Oct 26 11:10:27 UTC 2011


 *sh*:
2011-10-26	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* ftpd/ftpd.c: Increased data buffer size to 4096 bytes.  Use
	RTEMS_MINIMUM_STACK_SIZE plus the data buffer size for worker thread
	stack size.

M 1.2971  cpukit/ChangeLog
M   1.28  cpukit/ftpd/ftpd.c

diff -u rtems/cpukit/ChangeLog:1.2970 rtems/cpukit/ChangeLog:1.2971
--- rtems/cpukit/ChangeLog:1.2970	Tue Oct 25 22:49:27 2011
+++ rtems/cpukit/ChangeLog	Wed Oct 26 05:20:53 2011
@@ -1,3 +1,9 @@
+2011-10-26	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* ftpd/ftpd.c: Increased data buffer size to 4096 bytes.  Use
+	RTEMS_MINIMUM_STACK_SIZE plus the data buffer size for worker thread
+	stack size.
+
 2011-10-26	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* libfs/src/imfs/imfs.h: Add IMFS_memfile_maximum_size.

diff -u rtems/cpukit/ftpd/ftpd.c:1.27 rtems/cpukit/ftpd/ftpd.c:1.28
--- rtems/cpukit/ftpd/ftpd.c:1.27	Sun Jul 24 18:55:05 2011
+++ rtems/cpukit/ftpd/ftpd.c	Wed Oct 26 05:20:54 2011
@@ -240,8 +240,8 @@
 enum
 {
   FTPD_BUFSIZE  = 256,       /* Size for temporary buffers */
-  FTPD_DATASIZE = 1024,      /* Size for file transfer buffers */
-  FTPD_STACKSIZE = 8 * 1024, /* Tasks stack size */
+  FTPD_DATASIZE = 4 * 1024,      /* Size for file transfer buffers */
+  FTPD_STACKSIZE = RTEMS_MINIMUM_STACK_SIZE + FTPD_DATASIZE /* Tasks stack size */
 };
 
 /* Event to be used by session tasks for waiting */
@@ -2087,7 +2087,7 @@
   }
 
   sc = rtems_task_create(rtems_build_name('F', 'T', 'P', 'D'),
-    priority, FTPD_STACKSIZE,
+    priority, RTEMS_MINIMUM_STACK_SIZE,
     RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR |
     RTEMS_INTERRUPT_LEVEL(0),
     RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,


 *sh*:
2011-10-26	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* ftpd/ftpd.h, ftpd/ftpd.c: Moved buffer and stack size constants into
	header file.

M 1.2972  cpukit/ChangeLog
M   1.12  cpukit/ftpd/ftpd.h
M   1.29  cpukit/ftpd/ftpd.c

diff -u rtems/cpukit/ChangeLog:1.2971 rtems/cpukit/ChangeLog:1.2972
--- rtems/cpukit/ChangeLog:1.2971	Wed Oct 26 05:20:53 2011
+++ rtems/cpukit/ChangeLog	Wed Oct 26 05:32:09 2011
@@ -1,5 +1,10 @@
 2011-10-26	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
+	* ftpd/ftpd.h, ftpd/ftpd.c: Moved buffer and stack size constants into
+	header file.
+
+2011-10-26	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
 	* ftpd/ftpd.c: Increased data buffer size to 4096 bytes.  Use
 	RTEMS_MINIMUM_STACK_SIZE plus the data buffer size for worker thread
 	stack size.

diff -u rtems/cpukit/ftpd/ftpd.h:1.11 rtems/cpukit/ftpd/ftpd.h:1.12
--- rtems/cpukit/ftpd/ftpd.h:1.11	Fri Jun 24 05:00:36 2011
+++ rtems/cpukit/ftpd/ftpd.h	Wed Oct 26 05:32:09 2011
@@ -15,6 +15,13 @@
 
 #define FTPD_CONTROL_PORT   21
 
+/* Various buffer sizes */
+enum {
+  FTPD_BUFSIZE  = 256,       /* Size for temporary buffers */
+  FTPD_DATASIZE = 4 * 1024,      /* Size for file transfer buffers */
+  FTPD_STACKSIZE = RTEMS_MINIMUM_STACK_SIZE + FTPD_DATASIZE /* Tasks stack size */
+};
+
 /* FTPD access control flags */
 enum
 {

diff -u rtems/cpukit/ftpd/ftpd.c:1.28 rtems/cpukit/ftpd/ftpd.c:1.29
--- rtems/cpukit/ftpd/ftpd.c:1.28	Wed Oct 26 05:20:54 2011
+++ rtems/cpukit/ftpd/ftpd.c	Wed Oct 26 05:32:09 2011
@@ -236,14 +236,6 @@
    "Login accepted.\n"
 #endif
 
-/* Various buffer sizes */
-enum
-{
-  FTPD_BUFSIZE  = 256,       /* Size for temporary buffers */
-  FTPD_DATASIZE = 4 * 1024,      /* Size for file transfer buffers */
-  FTPD_STACKSIZE = RTEMS_MINIMUM_STACK_SIZE + FTPD_DATASIZE /* Tasks stack size */
-};
-
 /* Event to be used by session tasks for waiting */
 enum
 {


 *sh*:
2011-10-26	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* ftp01/init.c: Account for extra FTP worker task stack sizes.

M  1.279  testsuites/libtests/ChangeLog
M    1.2  testsuites/libtests/ftp01/init.c

diff -u rtems/testsuites/libtests/ChangeLog:1.278 rtems/testsuites/libtests/ChangeLog:1.279
--- rtems/testsuites/libtests/ChangeLog:1.278	Fri Oct 21 23:18:39 2011
+++ rtems/testsuites/libtests/ChangeLog	Wed Oct 26 05:34:11 2011
@@ -1,3 +1,7 @@
+2011-10-26	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* ftp01/init.c: Account for extra FTP worker task stack sizes.
+
 2011-10-22	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* malloc04/init.c: Define p1, p2, p3, p4 extern (Avoid warnings).

diff -u rtems/testsuites/libtests/ftp01/init.c:1.1 rtems/testsuites/libtests/ftp01/init.c:1.2
--- rtems/testsuites/libtests/ftp01/init.c:1.1	Fri May  6 04:08:07 2011
+++ rtems/testsuites/libtests/ftp01/init.c	Wed Oct 26 05:34:11 2011
@@ -31,13 +31,17 @@
 
 struct rtems_bsdnet_config rtems_bsdnet_config;
 
+#define FTP_WORKER_TASK_COUNT 2
+
+#define FTP_WORKER_TASK_EXTRA_STACK (FTP_WORKER_TASK_COUNT * FTPD_STACKSIZE)
+
 struct rtems_ftpd_configuration rtems_ftpd_configuration = {
   .priority = 90,
   .max_hook_filesize = 0,
   .port = 21,
   .hooks = NULL,
   .root = NULL,
-  .tasks_count = 2,
+  .tasks_count = FTP_WORKER_TASK_COUNT,
   .idle = 0,
   .access = 0
 };
@@ -203,9 +207,11 @@
 
 #define CONFIGURE_MAXIMUM_DRIVERS 2
 
-#define CONFIGURE_MAXIMUM_TASKS 5
+#define CONFIGURE_MAXIMUM_TASKS (3 + FTP_WORKER_TASK_COUNT)
 #define CONFIGURE_MAXIMUM_SEMAPHORES 2
 
+#define CONFIGURE_EXTRA_TASK_STACKS FTP_WORKER_TASK_EXTRA_STACK
+
 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
 
 #include <rtems/confdefs.h>



--

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/20111026/27d3ed76/attachment.html>


More information about the vc mailing list