<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-12-09)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ccj</strong></font>
<font color='#225522'><em>(on branch rtems-4-10-branch)</em></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-12-09 Chris Johns <chrisj@rtems.org>
PR 1968/filesystem
* libfs/src/rfs/rtems-rfs-file.c: Fix to the seek bug where a seek
to 0 after reading the end of the file did not point to the
correct block.
* libfs/src/rfs/rtems-rfs-rtems.h,
libfs/src/rfs/rtems-rfs-trace.c: Fix the trace flags. Used to fix
the bug.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2346.2.110&r2=text&tr2=1.2346.2.111&diff_format=h">M</a></td><td width='1%'>1.2346.2.111</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-file.c.diff?r1=text&tr1=1.4.2.3&r2=text&tr2=1.4.2.4&diff_format=h">M</a></td><td width='1%'>1.4.2.4</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-file.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems.h.diff?r1=text&tr1=1.2&r2=text&tr2=1.2.2.1&diff_format=h">M</a></td><td width='1%'>1.2.2.1</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-rtems.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/rfs/rtems-rfs-trace.c.diff?r1=text&tr1=1.2.2.1&r2=text&tr2=1.2.2.2&diff_format=h">M</a></td><td width='1%'>1.2.2.2</td><td width='100%'>cpukit/libfs/src/rfs/rtems-rfs-trace.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2346.2.110 rtems/cpukit/ChangeLog:1.2346.2.111
--- rtems/cpukit/ChangeLog:1.2346.2.110 Wed Dec 7 00:51:41 2011
+++ rtems/cpukit/ChangeLog Fri Dec 9 01:12:27 2011
</font><font color='#997700'>@@ -1,3 +1,13 @@
</font><font color='#000088'>+2011-12-09 Chris Johns <chrisj@rtems.org>
+
+ PR 1968/filesystem
+ * libfs/src/rfs/rtems-rfs-file.c: Fix to the seek bug where a seek
+ to 0 after reading the end of the file did not point to the
+ correct block.
+ * libfs/src/rfs/rtems-rfs-rtems.h,
+ libfs/src/rfs/rtems-rfs-trace.c: Fix the trace flags. Used to fix
+ the bug.
+<span style="background-color: #FF0000"> </span>
</font> 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1983/networking
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-file.c:1.4.2.3 rtems/cpukit/libfs/src/rfs/rtems-rfs-file.c:1.4.2.4
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-file.c:1.4.2.3 Mon Mar 14 00:07:18 2011
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-file.c Fri Dec 9 01:12:27 2011
</font><font color='#997700'>@@ -424,7 +424,44 @@
</font> */
if (pos < rtems_rfs_file_shared_get_size (rtems_rfs_file_fs (handle),
handle->shared))
<font color='#000088'>+ {
</font> rtems_rfs_file_set_bpos (handle, pos);
<font color='#000088'>+<span style="background-color: #FF0000"> </span>
+ /*
+ * If the file has a block check if it maps to the current position and it
+ * does not release it. That will force us to get the block at the new
+ * position when the I/O starts.
+ */
+ if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
+ {
+ rtems_rfs_buffer_block block;
+ int rc;
+<span style="background-color: #FF0000"> </span>
+ rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
+ rtems_rfs_file_map (handle),
+ rtems_rfs_file_bpos (handle),
+ &block);
+ if (rc > 0)
+ return rc;
+ if (rtems_rfs_buffer_bnum (&handle->buffer) != block)
+ {<span style="background-color: #FF0000"> </span>
+ rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
+ rtems_rfs_file_buffer (handle));
+ if (rc > 0)
+ return rc;
+ }
+ }
+ }
+ else
+ {
+ /*
+ * The seek is outside the current file so release any buffer. A write will
+ * extend the file.
+ */
+ int rc = rtems_rfs_file_io_release (handle);
+ if (rc > 0)
+ return rc;
+ }
</font>
*new_pos = pos;
return 0;
<font color='#997700'>@@ -441,23 +478,25 @@
</font> if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-set-size: size=%" PRIu64 "\n", new_size);
<font color='#000088'>+ size = rtems_rfs_file_size (handle);
+<span style="background-color: #FF0000"> </span>
</font> /*
<font color='#880000'>- * Short cut for the common truncate on open call.
</font><font color='#000088'>+ * If the file is same size do nothing else grow or shrink it ?
+ *
+ * If the file does not change size do not update the times.
</font> */
<font color='#880000'>- if (new_size == 0)
</font><font color='#000088'>+ if (size != new_size)
</font> {
<font color='#880000'>- rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
- if (rc > 0)
- return rc;
- }
- else
- {
- size = rtems_rfs_file_size (handle);
-<span style="background-color: #FF0000"> </span>
</font> /*
<font color='#880000'>- * If the file is same size do nothing else grow or shrink it ?
</font><font color='#000088'>+ * Short cut for the common truncate on open call.
</font> */
<font color='#880000'>- if (size != new_size)
</font><font color='#000088'>+ if (new_size == 0)
+ {
+ rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
+ if (rc > 0)
+ return rc;
+ }
+ else
</font> {
if (size < new_size)
{
<font color='#997700'>@@ -567,13 +606,13 @@
</font> rtems_rfs_file_bpos (handle));
}
}
<font color='#880000'>- }
</font>
<font color='#880000'>- handle->shared->size.count = rtems_rfs_block_map_count (map);
- handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
</font><font color='#000088'>+ handle->shared->size.count = rtems_rfs_block_map_count (map);
+ handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
</font>
<font color='#880000'>- if (rtems_rfs_file_update_mtime (handle))
- handle->shared->mtime = time (NULL);
</font><font color='#000088'>+ if (rtems_rfs_file_update_mtime (handle))
+ handle->shared->mtime = time (NULL);
+ }
</font>
return 0;
}
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems.h:1.2 rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems.h:1.2.2.1
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems.h:1.2 Mon Apr 12 00:29:25 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems.h Fri Dec 9 01:12:27 2011
</font><font color='#997700'>@@ -25,12 +25,12 @@
</font> #include <errno.h>
/**
<font color='#880000'>- * RTEMS RFS RTEMS Error Enable. Set to 1 to printing of errors. Default is off.
</font><font color='#000088'>+ * RTEMS RFS RTEMS Error Enable. Set to 1 for printing of errors. Default is off.
</font> */
#define RTEMS_RFS_RTEMS_ERROR 0
/**
<font color='#880000'>- * RTEMS RFS RTEMS Trace Enable. Set to 1 to printing of errors. Default is off.
</font><font color='#000088'>+ * RTEMS RFS RTEMS Trace Enable. Set to 1 for printing of errors. Default is off.
</font> */
#define RTEMS_RFS_RTEMS_TRACE 0
<font color='#997700'>@@ -72,13 +72,14 @@
</font> #define RTEMS_RFS_RTEMS_DEBUG_READLINK (1 << 9)
#define RTEMS_RFS_RTEMS_DEBUG_FCHMOD (1 << 10)
#define RTEMS_RFS_RTEMS_DEBUG_STAT (1 << 11)
<font color='#880000'>-#define RTEMS_RFS_RTEMS_DEBUG_DIR_RMNOD (1 << 12)
-#define RTEMS_RFS_RTEMS_DEBUG_FILE_OPEN (1 << 13)
-#define RTEMS_RFS_RTEMS_DEBUG_FILE_CLOSE (1 << 14)
-#define RTEMS_RFS_RTEMS_DEBUG_FILE_READ (1 << 15)
-#define RTEMS_RFS_RTEMS_DEBUG_FILE_WRITE (1 << 16)
-#define RTEMS_RFS_RTEMS_DEBUG_FILE_LSEEK (1 << 17)
-#define RTEMS_RFS_RTEMS_DEBUG_FILE_FTRUNC (1 << 18)
</font><font color='#000088'>+#define RTEMS_RFS_RTEMS_DEBUG_RENAME (1 << 12)
+#define RTEMS_RFS_RTEMS_DEBUG_DIR_RMNOD (1 << 13)
+#define RTEMS_RFS_RTEMS_DEBUG_FILE_OPEN (1 << 14)
+#define RTEMS_RFS_RTEMS_DEBUG_FILE_CLOSE (1 << 15)
+#define RTEMS_RFS_RTEMS_DEBUG_FILE_READ (1 << 16)
+#define RTEMS_RFS_RTEMS_DEBUG_FILE_WRITE (1 << 17)
+#define RTEMS_RFS_RTEMS_DEBUG_FILE_LSEEK (1 << 18)
+#define RTEMS_RFS_RTEMS_DEBUG_FILE_FTRUNC (1 << 19)
</font>
/**
* Call to check if this part is bring traced. If RTEMS_RFS_RTEMS_TRACE is
<font color='#006600'>diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-trace.c:1.2.2.1 rtems/cpukit/libfs/src/rfs/rtems-rfs-trace.c:1.2.2.2
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-trace.c:1.2.2.1 Mon Oct 11 16:12:48 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-trace.c Fri Dec 9 01:12:27 2011
</font><font color='#997700'>@@ -92,7 +92,8 @@
</font> "symlink-read",
"file-open",
"file-close",
<font color='#880000'>- "file-io"
</font><font color='#000088'>+ "file-io",
+ "file-set"
</font> };
rtems_rfs_trace_mask set_value = 0;
<font color='#997700'>@@ -140,9 +141,9 @@
</font> if (strcmp (argv[arg], table[t]) == 0)
{
if (set)
<font color='#880000'>- set_value = 1 << t;
</font><font color='#000088'>+ set_value = 1ULL << t;
</font> else
<font color='#880000'>- clear_value = 1 << t;
</font><font color='#000088'>+ clear_value = 1ULL << t;
</font> break;
}
}
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/if_fxp.c: Add missing initializer.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/ChangeLog.diff?r1=text&tr1=1.581&r2=text&tr2=1.582&diff_format=h">M</a></td><td width='1%'>1.582</td><td width='100%'>c/src/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/libchip/network/if_fxp.c.diff?r1=text&tr1=1.22&r2=text&tr2=1.23&diff_format=h">M</a></td><td width='1%'>1.23</td><td width='100%'>c/src/libchip/network/if_fxp.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/ChangeLog:1.581 rtems/c/src/ChangeLog:1.582
--- rtems/c/src/ChangeLog:1.581 Thu Dec 8 15:42:36 2011
+++ rtems/c/src/ChangeLog Fri Dec 9 01:16:47 2011
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libchip/network/if_fxp.c: Add missing initializer.
+
</font> 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1589/build
<font color='#006600'>diff -u rtems/c/src/libchip/network/if_fxp.c:1.22 rtems/c/src/libchip/network/if_fxp.c:1.23
--- rtems/c/src/libchip/network/if_fxp.c:1.22 Sat Sep 6 22:29:35 2008
+++ rtems/c/src/libchip/network/if_fxp.c Fri Dec 9 01:16:48 2011
</font><font color='#997700'>@@ -209,7 +209,7 @@
</font> { 0x1037, "Intel Pro/100 Ethernet", UNTESTED },
{ 0x1038, "Intel Pro/100 Ethernet", UNTESTED },
{ 0x103B, "Intel Pro/100 Ethernet (82801BD PRO/100 VM (LOM))", 0 },
<font color='#880000'>- { 0, NULL },
</font><font color='#000088'>+ { 0, NULL, 0 }
</font> };
#if 0
</pre>
<p> </p>
<a name='cs3'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* console/vgacons.c: Add VGACONS_STATIC.
* console/vgacons.h: Remove VGACONS_STATIC.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/i386/pc386/ChangeLog.diff?r1=text&tr1=1.281&r2=text&tr2=1.282&diff_format=h">M</a></td><td width='1%'>1.282</td><td width='100%'>c/src/lib/libbsp/i386/pc386/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>c/src/lib/libbsp/i386/pc386/console/vgacons.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>c/src/lib/libbsp/i386/pc386/console/vgacons.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/i386/pc386/ChangeLog:1.281 rtems/c/src/lib/libbsp/i386/pc386/ChangeLog:1.282
--- rtems/c/src/lib/libbsp/i386/pc386/ChangeLog:1.281 Fri Nov 18 14:11:06 2011
+++ rtems/c/src/lib/libbsp/i386/pc386/ChangeLog Fri Dec 9 01:20:27 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * console/vgacons.c: Add VGACONS_STATIC.
+ * console/vgacons.h: Remove VGACONS_STATIC.
+
</font> 2011-11-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
PR 1925
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.h:1.1 rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.h:1.2
--- rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.h:1.1 Fri Nov 18 14:11:08 2011
+++ rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.h Fri Dec 9 01:20:28 2011
</font><font color='#997700'>@@ -18,8 +18,6 @@
</font> extern "C" {
#endif
<font color='#880000'>-#define VGACONS_STATIC<span style="background-color: #FF0000"> </span>
-
</font> /*
* This is the ASCII for "PC" in the upper word and 0386<span style="background-color: #FF0000"> </span>
* in the lower which should be unique enough to
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.c:1.1 rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.c:1.2
--- rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.c:1.1 Fri Nov 18 14:11:07 2011
+++ rtems/c/src/lib/libbsp/i386/pc386/console/vgacons.c Fri Dec 9 01:20:28 2011
</font><font color='#997700'>@@ -23,6 +23,8 @@
</font> #include <bsp.h>
#include <crt.h>
<font color='#000088'>+#define VGACONS_STATIC static
+
</font> static int isr_is_on(const rtems_irq_connect_data *irq)
{
return BSP_irq_enabled_at_i8259s(irq->name);
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>