change log for rtems (2011-10-20)

rtems-vc at rtems.org rtems-vc at rtems.org
Thu Oct 20 12:12:53 UTC 2011


 *ralf*:
2011-10-20	Ralf Corsépius <ralf.corsepius at rtems.org>

	PR 1940/misc:
	* libchip/serial/ns16550.c: Reflect changes to console-driver.

M  1.564  c/src/ChangeLog
M   1.52  c/src/libchip/serial/ns16550.c

diff -u rtems/c/src/ChangeLog:1.563 rtems/c/src/ChangeLog:1.564
--- rtems/c/src/ChangeLog:1.563	Wed Oct 19 11:02:12 2011
+++ rtems/c/src/ChangeLog	Thu Oct 20 06:46:34 2011
@@ -1,3 +1,8 @@
+2011-10-20	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	PR 1940/misc:
+	* libchip/serial/ns16550.c: Reflect changes to console-driver.
+
 2011-10-19	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* libchip/network/smc91111.c: Use PRIxPTR to print pointers.

diff -u rtems/c/src/libchip/serial/ns16550.c:1.51 rtems/c/src/libchip/serial/ns16550.c:1.52
--- rtems/c/src/libchip/serial/ns16550.c:1.51	Tue Oct 18 13:40:27 2011
+++ rtems/c/src/libchip/serial/ns16550.c	Thu Oct 20 06:46:34 2011
@@ -203,7 +203,7 @@
   void    * arg
 )
 {
-  console_tbl *c = &Console_Port_Tbl [minor];
+  console_tbl *c = Console_Port_Tbl [minor];
 
   /*
    * Negate DTR
@@ -601,7 +601,7 @@
 NS16550_STATIC void ns16550_initialize_interrupts( int minor)
 {
 #if defined(BSP_FEATURE_IRQ_EXTENSION) || defined(BSP_FEATURE_IRQ_LEGACY)
-  console_tbl *c = &Console_Port_Tbl [minor];
+  console_tbl *c = Console_Port_Tbl [minor];
 #endif
   console_data *d = &Console_Port_Data [minor];
 
@@ -661,7 +661,7 @@
 {
   #if defined(BSP_FEATURE_IRQ_EXTENSION)
     rtems_status_code sc = RTEMS_SUCCESSFUL;
-    console_tbl *c = &Console_Port_Tbl [minor];
+    console_tbl *c = Console_Port_Tbl [minor];
     sc = rtems_interrupt_handler_remove(
       c->ulIntVector,
       ns16550_isr,
@@ -674,7 +674,7 @@
     }
   #elif defined(BSP_FEATURE_IRQ_LEGACY)
     int rv = 0;
-    console_tbl *c = &Console_Port_Tbl [minor];
+    console_tbl *c = Console_Port_Tbl [minor];
     rtems_irq_connect_data cd = {
       .name = c->ulIntVector,
       .hdl = ns16550_isr,


 *ralf*:
2011-10-20	Ralf Corsépius <ralf.corsepius at rtems.org>

	* score/include/rtems/score/rbtree.h (_RBTree_Container_of):
	Use offsetof. Don't cast to size_t. Include <stddef.h>.

M 1.2962  cpukit/ChangeLog
M    1.7  cpukit/score/include/rtems/score/rbtree.h

diff -u rtems/cpukit/ChangeLog:1.2961 rtems/cpukit/ChangeLog:1.2962
--- rtems/cpukit/ChangeLog:1.2961	Thu Oct 20 05:52:58 2011
+++ rtems/cpukit/ChangeLog	Thu Oct 20 06:58:53 2011
@@ -1,5 +1,7 @@
 2011-10-20	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* score/include/rtems/score/rbtree.h (_RBTree_Container_of):
+	Use offsetof. Don't cast to size_t. Include <stddef.h>.
 	* libnetworking/libc/res_mkupdate.c (res_mkupdate):
 	Remove unused var "sp1".
 	* libfs/src/dosfs/msdos_file.c (msdos_file_datasync):

diff -u rtems/cpukit/score/include/rtems/score/rbtree.h:1.6 rtems/cpukit/score/include/rtems/score/rbtree.h:1.7
--- rtems/cpukit/score/include/rtems/score/rbtree.h:1.6	Sun Aug 21 15:07:11 2011
+++ rtems/cpukit/score/include/rtems/score/rbtree.h	Thu Oct 20 06:58:54 2011
@@ -18,6 +18,8 @@
 #ifndef _RTEMS_SCORE_RBTREE_H
 #define _RTEMS_SCORE_RBTREE_H
 
+#include <stddef.h>
+
 /**
  *  @defgroup ScoreRBTree Red-Black Tree Handler
  *
@@ -88,8 +90,7 @@
  *
  */
 #define _RBTree_Container_of(node,container_type, node_field_name) \
-((container_type*) \
- ((size_t)node - ((size_t)(&((container_type *)0)->node_field_name))))
+  ((container_type*) (node - offsetof(container_type,node_field_name)))
 
 /**
  *  This type indicates the direction.



--

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/20111020/87029659/attachment.html>


More information about the vc mailing list