change log for rtems (2010-10-25)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Oct 25 08:10:58 UTC 2010


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

	* tm26/task1.c, tm27/task1.c: Do not violate chain API.

M   1.90  testsuites/tmtests/ChangeLog
M   1.32  testsuites/tmtests/tm26/task1.c
M   1.29  testsuites/tmtests/tm27/task1.c

diff -u rtems/testsuites/tmtests/ChangeLog:1.89 rtems/testsuites/tmtests/ChangeLog:1.90
--- rtems/testsuites/tmtests/ChangeLog:1.89	Fri Jul 30 13:52:32 2010
+++ rtems/testsuites/tmtests/ChangeLog	Mon Oct 25 02:27:51 2010
@@ -1,3 +1,7 @@
+2010-10-25	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* tm26/task1.c, tm27/task1.c: Do not violate chain API.
+
 2010-07-30	Gedare Bloom <giddyup44 at yahoo.com>
 
 	PR 1599/cpukit

diff -u rtems/testsuites/tmtests/tm26/task1.c:1.31 rtems/testsuites/tmtests/tm26/task1.c:1.32
--- rtems/testsuites/tmtests/tm26/task1.c:1.31	Fri Jul 30 13:52:32 2010
+++ rtems/testsuites/tmtests/tm26/task1.c	Mon Oct 25 02:27:51 2010
@@ -242,7 +242,7 @@
   Middle_tcb   = _Thread_Executing;
 
   _Thread_Executing =
-        (Thread_Control *) _Thread_Ready_chain[LOW_PRIORITY].first;
+        (Thread_Control *) _Chain_First(&_Thread_Ready_chain[LOW_PRIORITY]);
 
   /* do not force context switch */
 
@@ -279,7 +279,7 @@
   context_switch_another_task_time = benchmark_timer_read();
 
   _Thread_Executing =
-        (Thread_Control *) _Thread_Ready_chain[FP1_PRIORITY].first;
+        (Thread_Control *) _Chain_First(&_Thread_Ready_chain[FP1_PRIORITY]);
 
   /* do not force context switch */
 
@@ -306,7 +306,7 @@
   executing = _Thread_Executing;
 
   _Thread_Executing =
-        (Thread_Control *) _Thread_Ready_chain[FP2_PRIORITY].first;
+        (Thread_Control *) _Chain_First(&_Thread_Ready_chain[FP2_PRIORITY]);
 
   /* do not force context switch */
 
@@ -329,7 +329,7 @@
   executing = _Thread_Executing;
 
   _Thread_Executing =
-       (Thread_Control *) _Thread_Ready_chain[FP2_PRIORITY].first;
+       (Thread_Control *) _Chain_First(&_Thread_Ready_chain[FP2_PRIORITY]);
 
   /* do not force context switch */
 
@@ -358,7 +358,7 @@
   executing = _Thread_Executing;
 
   _Thread_Executing =
-       (Thread_Control *) _Thread_Ready_chain[FP1_PRIORITY].first;
+       (Thread_Control *) _Chain_First(&_Thread_Ready_chain[FP1_PRIORITY]);
 
   FP_LOAD( 1.0 );
 

diff -u rtems/testsuites/tmtests/tm27/task1.c:1.28 rtems/testsuites/tmtests/tm27/task1.c:1.29
--- rtems/testsuites/tmtests/tm27/task1.c:1.28	Fri Jul 30 13:52:32 2010
+++ rtems/testsuites/tmtests/tm27/task1.c	Mon Oct 25 02:27:51 2010
@@ -170,7 +170,7 @@
 
   _Thread_Dispatch_disable_level = 0;
 
-  _Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[LOW_PRIORITY].last;
+  _Thread_Heir = (rtems_tcb *) _Chain_Last(&_Thread_Ready_chain[LOW_PRIORITY]);
 
   _Thread_Dispatch_necessary = 1;
 
@@ -227,7 +227,7 @@
 
   _Thread_Dispatch_disable_level = 0;
 
-  _Thread_Heir = (rtems_tcb *) _Thread_Ready_chain[LOW_PRIORITY].first;
+  _Thread_Heir = (rtems_tcb *) _Chain_First(&_Thread_Ready_chain[LOW_PRIORITY]);
 
   _Thread_Dispatch_necessary = 1;
 


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

	* spchain/init.c, spwatchdog/task1.c: Do not violate chain API.

M  1.422  testsuites/sptests/ChangeLog
M    1.5  testsuites/sptests/spchain/init.c
M    1.7  testsuites/sptests/spwatchdog/task1.c

diff -u rtems/testsuites/sptests/ChangeLog:1.421 rtems/testsuites/sptests/ChangeLog:1.422
--- rtems/testsuites/sptests/ChangeLog:1.421	Sun Oct  3 23:07:47 2010
+++ rtems/testsuites/sptests/ChangeLog	Mon Oct 25 02:29:27 2010
@@ -1,3 +1,7 @@
+2010-10-25	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* spchain/init.c, spwatchdog/task1.c: Do not violate chain API.
+
 2010-10-04	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* spfifo03/spfifo03.scn: Replace file.

diff -u rtems/testsuites/sptests/spchain/init.c:1.4 rtems/testsuites/sptests/spchain/init.c:1.5
--- rtems/testsuites/sptests/spchain/init.c:1.4	Tue Aug 24 10:01:04 2010
+++ rtems/testsuites/sptests/spchain/init.c	Mon Oct 25 02:29:27 2010
@@ -128,7 +128,7 @@
   rtems_chain_append( &chain1, &node1.Node );
   rtems_chain_insert( &node1.Node, &node2.Node );
 
-  for ( p = chain1.first, id = 1 ;
+  for ( p = rtems_chain_first(&chain1), id = 1 ;
         !rtems_chain_is_tail(&chain1, p) ;
         p = p->next , id++ ) {
      test_node *t = (test_node *)p;

diff -u rtems/testsuites/sptests/spwatchdog/task1.c:1.6 rtems/testsuites/sptests/spwatchdog/task1.c:1.7
--- rtems/testsuites/sptests/spwatchdog/task1.c:1.6	Mon Oct 26 06:29:24 2009
+++ rtems/testsuites/sptests/spwatchdog/task1.c	Mon Oct 25 02:29:27 2010
@@ -80,10 +80,10 @@
   _Watchdog_Report_chain( NULL, & _Watchdog_Ticks_chain);
 
   puts( "TA1 - _Watchdog_Report - with name"  );
-  _Watchdog_Report("first", (Watchdog_Control *)(_Watchdog_Ticks_chain.first));
+  _Watchdog_Report("first", (Watchdog_Control *)_Chain_First(&_Watchdog_Ticks_chain));
 
   puts( "TA1 - _Watchdog_Report - no name"  );
-  _Watchdog_Report( NULL, (Watchdog_Control *)(_Watchdog_Ticks_chain.first) );
+  _Watchdog_Report( NULL, (Watchdog_Control *)_Chain_First(&_Watchdog_Ticks_chain) );
 
   puts( "TA1 - timer_deleting - timer 1" );
   status = rtems_timer_delete( tmid );


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

	* libchip/ide/ata.c: Do not violate chain API.

M  1.534  c/src/ChangeLog
M   1.41  c/src/libchip/ide/ata.c

diff -u rtems/c/src/ChangeLog:1.533 rtems/c/src/ChangeLog:1.534
--- rtems/c/src/ChangeLog:1.533	Fri Aug 20 16:26:09 2010
+++ rtems/c/src/ChangeLog	Mon Oct 25 02:43:32 2010
@@ -1,3 +1,7 @@
+2010-10-25	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* libchip/ide/ata.c: Do not violate chain API.
+
 2010-08-20	<yann.sionneau at telecom-sudparis.eu>
 
 	* libchip/network/greth.c, libchip/network/open_eth.c: Add constants

diff -u rtems/c/src/libchip/ide/ata.c:1.40 rtems/c/src/libchip/ide/ata.c:1.41
--- rtems/c/src/libchip/ide/ata.c:1.40	Tue Aug 17 08:54:50 2010
+++ rtems/c/src/libchip/ide/ata.c	Mon Oct 25 02:43:32 2010
@@ -431,7 +431,7 @@
 
     /* get first request in the controller's queue */
     _ISR_Disable(level);
-    areq = (ata_req_t *)(ata_ide_ctrls[ctrl_minor].reqs.first);
+    areq = (ata_req_t *)rtems_chain_first(&ata_ide_ctrls[ctrl_minor].reqs);
     _ISR_Enable(level);
 
     /* get ATA device identifier (0 or 1) */
@@ -633,7 +633,7 @@
 rtems_isr
 ata_interrupt_handler(rtems_vector_number vec)
 {
-    rtems_chain_node *the_node = ((rtems_chain_control *)(&ata_int_vec[vec]))->first;
+    rtems_chain_node *the_node = rtems_chain_first(&ata_int_vec[vec]);
     ata_queue_msg_t  msg;
     uint16_t         byte; /* emphasize that only 8 low bits is meaningful */
 
@@ -658,7 +658,7 @@
 {
   int ata_irq_chain_index = (int) handle;
     rtems_chain_node *the_node =
-      ata_irq_chain[ata_irq_chain_index].irq_chain.last;
+      rtems_chain_last(&ata_irq_chain[ata_irq_chain_index].irq_chain);
     ata_queue_msg_t  msg;
     uint16_t       byte; /* emphasize that only 8 low bits is meaningful */
 
@@ -870,7 +870,7 @@
 
         /* get current request to the controller */
         _ISR_Disable(level);
-        areq = (ata_req_t *)(ata_ide_ctrls[ctrl_minor].reqs.first);
+        areq = (ata_req_t *)rtems_chain_first(&ata_ide_ctrls[ctrl_minor].reqs);
         _ISR_Enable(level);
 
         switch(msg.type)



--

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/20101025/986fc905/attachment.html>


More information about the vc mailing list