<!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 (2010-07-29)</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/psignalunblockthread.c: Clean up and simplify.
</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.2533&r2=text&tr2=1.2534&diff_format=h">M</a></td><td width='1%'>1.2534</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/posix/src/psignalunblockthread.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>cpukit/posix/src/psignalunblockthread.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2533 rtems/cpukit/ChangeLog:1.2534
--- rtems/cpukit/ChangeLog:1.2533 Wed Jul 28 15:39:37 2010
+++ rtems/cpukit/ChangeLog Thu Jul 29 12:49:29 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ * posix/src/psignalunblockthread.c: Clean up and simplify.
+
</font> 2010-07-28 Vinu Rajashekhar <vinutheraj@gmail.com>
* posix/src/condinit.c, posix/src/condwaitsupp.c,
<font color='#006600'>diff -u rtems/cpukit/posix/src/psignalunblockthread.c:1.12 rtems/cpukit/posix/src/psignalunblockthread.c:1.13
--- rtems/cpukit/posix/src/psignalunblockthread.c:1.12 Wed Jul 28 15:39:48 2010
+++ rtems/cpukit/posix/src/psignalunblockthread.c Thu Jul 29 12:49:30 2010
</font><font color='#997700'>@@ -98,7 +98,7 @@
</font> * + Any other combination, do nothing.
*/
<font color='#880000'>- if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) {
</font><font color='#000088'>+ if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
</font> the_thread->Wait.return_code = EINTR;
/*
* In pthread_cond_wait, a thread will be blocking on a thread
<font color='#997700'>@@ -106,9 +106,8 @@
</font> */
if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
_Thread_queue_Extract_with_proxy( the_thread );
<font color='#880000'>- else if ( _States_Is_delaying(the_thread->current_state) ){
- if ( _Watchdog_Is_active( &the_thread->Timer ) )
- (void) _Watchdog_Remove( &the_thread->Timer );
</font><font color='#000088'>+ else if ( _States_Is_delaying(the_thread->current_state) ) {
+ (void) _Watchdog_Remove( &the_thread->Timer );
</font> _Thread_Unblock( the_thread );
}
</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
* rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
handling, to isolate the bitmap implementation of priorities in the
supercore so that priority management is a little more modular. This
change is in anticipation of scheduler implementations that can
select how they manage tracking priority levels / finding the highest
priority ready task. Note that most of the changes here are simple
renaming, to clarify the use of the bitmap-based priority management.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/avr/ChangeLog.diff?r1=text&tr1=1.50&r2=text&tr2=1.51&diff_format=h">M</a></td><td width='1%'>1.51</td><td width='100%'>cpukit/score/cpu/avr/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/avr/rtems/score/cpu.h.diff?r1=text&tr1=1.28&r2=text&tr2=1.29&diff_format=h">M</a></td><td width='1%'>1.29</td><td width='100%'>cpukit/score/cpu/avr/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/avr/rtems/score/types.h.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>cpukit/score/cpu/avr/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/bfin/ChangeLog.diff?r1=text&tr1=1.39&r2=text&tr2=1.40&diff_format=h">M</a></td><td width='1%'>1.40</td><td width='100%'>cpukit/score/cpu/bfin/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h.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%'>cpukit/score/cpu/bfin/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/bfin/rtems/score/types.h.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/score/cpu/bfin/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/h8300/ChangeLog.diff?r1=text&tr1=1.97&r2=text&tr2=1.98&diff_format=h">M</a></td><td width='1%'>1.98</td><td width='100%'>cpukit/score/cpu/h8300/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h.diff?r1=text&tr1=1.42&r2=text&tr2=1.43&diff_format=h">M</a></td><td width='1%'>1.43</td><td width='100%'>cpukit/score/cpu/h8300/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/h8300/rtems/score/types.h.diff?r1=text&tr1=1.14&r2=text&tr2=1.15&diff_format=h">M</a></td><td width='1%'>1.15</td><td width='100%'>cpukit/score/cpu/h8300/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/ChangeLog.diff?r1=text&tr1=1.14&r2=text&tr2=1.15&diff_format=h">M</a></td><td width='1%'>1.15</td><td width='100%'>cpukit/score/cpu/lm32/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>cpukit/score/cpu/lm32/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/rtems/score/types.h.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/score/cpu/lm32/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32c/ChangeLog.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>cpukit/score/cpu/m32c/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>cpukit/score/cpu/m32c/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32c/rtems/score/types.h.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/score/cpu/m32c/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32r/ChangeLog.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/score/cpu/m32r/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32r/rtems/score/cpu.h.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/score/cpu/m32r/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m32r/rtems/score/types.h.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/score/cpu/m32r/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/mips/ChangeLog.diff?r1=text&tr1=1.141&r2=text&tr2=1.142&diff_format=h">M</a></td><td width='1%'>1.142</td><td width='100%'>cpukit/score/cpu/mips/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/mips/rtems/score/cpu.h.diff?r1=text&tr1=1.59&r2=text&tr2=1.60&diff_format=h">M</a></td><td width='1%'>1.60</td><td width='100%'>cpukit/score/cpu/mips/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/mips/rtems/score/types.h.diff?r1=text&tr1=1.16&r2=text&tr2=1.17&diff_format=h">M</a></td><td width='1%'>1.17</td><td width='100%'>cpukit/score/cpu/mips/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/nios2/ChangeLog.diff?r1=text&tr1=1.23&r2=text&tr2=1.24&diff_format=h">M</a></td><td width='1%'>1.24</td><td width='100%'>cpukit/score/cpu/nios2/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/nios2/rtems/score/cpu.h.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>cpukit/score/cpu/nios2/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/nios2/rtems/score/types.h.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>cpukit/score/cpu/nios2/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/no_cpu/ChangeLog.diff?r1=text&tr1=1.83&r2=text&tr2=1.84&diff_format=h">M</a></td><td width='1%'>1.84</td><td width='100%'>cpukit/score/cpu/no_cpu/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/no_cpu/rtems/score/cpu.h.diff?r1=text&tr1=1.33&r2=text&tr2=1.34&diff_format=h">M</a></td><td width='1%'>1.34</td><td width='100%'>cpukit/score/cpu/no_cpu/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/no_cpu/rtems/score/types.h.diff?r1=text&tr1=1.18&r2=text&tr2=1.19&diff_format=h">M</a></td><td width='1%'>1.19</td><td width='100%'>cpukit/score/cpu/no_cpu/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/powerpc/ChangeLog.diff?r1=text&tr1=1.155&r2=text&tr2=1.156&diff_format=h">M</a></td><td width='1%'>1.156</td><td width='100%'>cpukit/score/cpu/powerpc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h.diff?r1=text&tr1=1.42&r2=text&tr2=1.43&diff_format=h">M</a></td><td width='1%'>1.43</td><td width='100%'>cpukit/score/cpu/powerpc/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/powerpc/rtems/score/types.h.diff?r1=text&tr1=1.16&r2=text&tr2=1.17&diff_format=h">M</a></td><td width='1%'>1.17</td><td width='100%'>cpukit/score/cpu/powerpc/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sh/ChangeLog.diff?r1=text&tr1=1.96&r2=text&tr2=1.97&diff_format=h">M</a></td><td width='1%'>1.97</td><td width='100%'>cpukit/score/cpu/sh/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sh/rtems/score/cpu.h.diff?r1=text&tr1=1.33&r2=text&tr2=1.34&diff_format=h">M</a></td><td width='1%'>1.34</td><td width='100%'>cpukit/score/cpu/sh/rtems/score/cpu.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sh/rtems/score/types.h.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>cpukit/score/cpu/sh/rtems/score/types.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/ChangeLog:1.50 rtems/cpukit/score/cpu/avr/ChangeLog:1.51
--- rtems/cpukit/score/cpu/avr/ChangeLog:1.50 Tue Jul 27 05:51:12 2010
+++ rtems/cpukit/score/cpu/avr/ChangeLog Thu Jul 29 12:51:33 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/asm.h: Fixed header guard.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/rtems/score/cpu.h:1.28 rtems/cpukit/score/cpu/avr/rtems/score/cpu.h:1.29
--- rtems/cpukit/score/cpu/avr/rtems/score/cpu.h:1.28 Tue Jul 27 05:51:12 2010
+++ rtems/cpukit/score/cpu/avr/rtems/score/cpu.h Thu Jul 29 12:51:33 2010
</font><font color='#997700'>@@ -814,7 +814,7 @@
</font>
/*
* This routine sets _output to the bit number of the first bit
<font color='#880000'>- * set in _value. _value is of CPU dependent type Priority_Bit_map_control.
</font><font color='#000088'>+ * set in _value. _value is of CPU dependent type Priority_bit_map_Control.
</font> * This type may be either 16 or 32 bits wide although only the 16
* least significant bits will be used.
*
<font color='#006600'>diff -u rtems/cpukit/score/cpu/avr/rtems/score/types.h:1.11 rtems/cpukit/score/cpu/avr/rtems/score/types.h:1.12
--- rtems/cpukit/score/cpu/avr/rtems/score/types.h:1.11 Fri Jul 16 03:36:36 2010
+++ rtems/cpukit/score/cpu/avr/rtems/score/types.h Thu Jul 29 12:51:33 2010
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font> typedef void avr_isr;
typedef void ( *avr_isr_entry )( void );
<font color='#006600'>diff -u rtems/cpukit/score/cpu/bfin/ChangeLog:1.39 rtems/cpukit/score/cpu/bfin/ChangeLog:1.40
--- rtems/cpukit/score/cpu/bfin/ChangeLog:1.39 Tue Jul 27 05:57:31 2010
+++ rtems/cpukit/score/cpu/bfin/ChangeLog Thu Jul 29 12:51:34 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Assembler compatibility fixes.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h:1.22 rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h:1.23
--- rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h:1.22 Tue Jul 27 05:57:31 2010
+++ rtems/cpukit/score/cpu/bfin/rtems/score/cpu.h Thu Jul 29 12:51:34 2010
</font><font color='#997700'>@@ -951,7 +951,7 @@
</font> * @ingroup CPUBitfield
* This routine sets @a _output to the bit number of the first bit
* set in @a _value. @a _value is of CPU dependent type
<font color='#880000'>- * @a Priority_Bit_map_control. This type may be either 16 or 32 bits
</font><font color='#000088'>+ * @a Priority_bit_map_Control. This type may be either 16 or 32 bits
</font> * wide although only the 16 least significant bits will be used.
*
* There are a number of variables in using a "find first bit" type
<font color='#006600'>diff -u rtems/cpukit/score/cpu/bfin/rtems/score/types.h:1.6 rtems/cpukit/score/cpu/bfin/rtems/score/types.h:1.7
--- rtems/cpukit/score/cpu/bfin/rtems/score/types.h:1.6 Fri Jul 16 03:37:10 2010
+++ rtems/cpukit/score/cpu/bfin/rtems/score/types.h Thu Jul 29 12:51:34 2010
</font><font color='#997700'>@@ -28,7 +28,7 @@
</font> */
/** This defines the type for a priority bit map entry. */
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font>
/** This defines the return type for an ISR entry point. */
typedef void blackfin_isr;
<font color='#006600'>diff -u rtems/cpukit/score/cpu/h8300/ChangeLog:1.97 rtems/cpukit/score/cpu/h8300/ChangeLog:1.98
--- rtems/cpukit/score/cpu/h8300/ChangeLog:1.97 Tue Jul 27 06:03:38 2010
+++ rtems/cpukit/score/cpu/h8300/ChangeLog Thu Jul 29 12:51:36 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Assembler compatibility fixes.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h:1.42 rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h:1.43
--- rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h:1.42 Tue Jul 27 06:03:38 2010
+++ rtems/cpukit/score/cpu/h8300/rtems/score/cpu.h Thu Jul 29 12:51:36 2010
</font><font color='#997700'>@@ -844,7 +844,7 @@
</font>
/*
* This routine sets _output to the bit number of the first bit
<font color='#880000'>- * set in _value. _value is of CPU dependent type Priority_Bit_map_control.
</font><font color='#000088'>+ * set in _value. _value is of CPU dependent type Priority_bit_map_Control.
</font> * This type may be either 16 or 32 bits wide although only the 16
* least significant bits will be used.
*
<font color='#006600'>diff -u rtems/cpukit/score/cpu/h8300/rtems/score/types.h:1.14 rtems/cpukit/score/cpu/h8300/rtems/score/types.h:1.15
--- rtems/cpukit/score/cpu/h8300/rtems/score/types.h:1.14 Fri Jul 16 03:37:53 2010
+++ rtems/cpukit/score/cpu/h8300/rtems/score/types.h Thu Jul 29 12:51:36 2010
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font> typedef void h8300_isr;
typedef void ( *h8300_isr_entry )( void );
<font color='#006600'>diff -u rtems/cpukit/score/cpu/lm32/ChangeLog:1.14 rtems/cpukit/score/cpu/lm32/ChangeLog:1.15
--- rtems/cpukit/score/cpu/lm32/ChangeLog:1.14 Fri Jul 16 03:39:05 2010
+++ rtems/cpukit/score/cpu/lm32/ChangeLog Thu Jul 29 12:51:40 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.10 rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.11
--- rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.10 Fri Jul 16 03:39:05 2010
+++ rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h Thu Jul 29 12:51:40 2010
</font><font color='#997700'>@@ -956,7 +956,7 @@
</font> * @ingroup CPUBitfield
* This routine sets @a _output to the bit number of the first bit
* set in @a _value. @a _value is of CPU dependent type
<font color='#880000'>- * @a Priority_Bit_map_control. This type may be either 16 or 32 bits
</font><font color='#000088'>+ * @a Priority_bit_map_Control. This type may be either 16 or 32 bits
</font> * wide although only the 16 least significant bits will be used.
*
* There are a number of variables in using a "find first bit" type
<font color='#006600'>diff -u rtems/cpukit/score/cpu/lm32/rtems/score/types.h:1.3 rtems/cpukit/score/cpu/lm32/rtems/score/types.h:1.4
--- rtems/cpukit/score/cpu/lm32/rtems/score/types.h:1.3 Fri Jul 16 03:39:05 2010
+++ rtems/cpukit/score/cpu/lm32/rtems/score/types.h Thu Jul 29 12:51:40 2010
</font><font color='#997700'>@@ -35,7 +35,7 @@
</font> */
/** This defines the type for a priority bit map entry. */
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font>
/** This defines the return type for an ISR entry point. */
typedef void lm32_isr;
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32c/ChangeLog:1.13 rtems/cpukit/score/cpu/m32c/ChangeLog:1.14
--- rtems/cpukit/score/cpu/m32c/ChangeLog:1.13 Fri Jul 16 03:39:36 2010
+++ rtems/cpukit/score/cpu/m32c/ChangeLog Thu Jul 29 12:51:42 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h:1.9 rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h:1.10
--- rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h:1.9 Fri Jul 16 03:39:36 2010
+++ rtems/cpukit/score/cpu/m32c/rtems/score/cpu.h Thu Jul 29 12:51:42 2010
</font><font color='#997700'>@@ -912,7 +912,7 @@
</font> * @ingroup CPUBitfield
* This routine sets @a _output to the bit number of the first bit
* set in @a _value. @a _value is of CPU dependent type
<font color='#880000'>- * @a Priority_Bit_map_control. This type may be either 16 or 32 bits
</font><font color='#000088'>+ * @a Priority_bit_map_Control. This type may be either 16 or 32 bits
</font> * wide although only the 16 least significant bits will be used.
*
* There are a number of variables in using a "find first bit" type
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32c/rtems/score/types.h:1.3 rtems/cpukit/score/cpu/m32c/rtems/score/types.h:1.4
--- rtems/cpukit/score/cpu/m32c/rtems/score/types.h:1.3 Fri Jul 16 03:39:36 2010
+++ rtems/cpukit/score/cpu/m32c/rtems/score/types.h Thu Jul 29 12:51:42 2010
</font><font color='#997700'>@@ -32,7 +32,7 @@
</font> */
/** This defines the type for a priority bit map entry. */
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font>
/** This defines the return type for an ISR entry point. */
typedef void m32c_isr;
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32r/ChangeLog:1.6 rtems/cpukit/score/cpu/m32r/ChangeLog:1.7
--- rtems/cpukit/score/cpu/m32r/ChangeLog:1.6 Fri Jul 16 03:40:07 2010
+++ rtems/cpukit/score/cpu/m32r/ChangeLog Thu Jul 29 12:51:44 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32r/rtems/score/cpu.h:1.6 rtems/cpukit/score/cpu/m32r/rtems/score/cpu.h:1.7
--- rtems/cpukit/score/cpu/m32r/rtems/score/cpu.h:1.6 Fri Jul 16 03:40:07 2010
+++ rtems/cpukit/score/cpu/m32r/rtems/score/cpu.h Thu Jul 29 12:51:44 2010
</font><font color='#997700'>@@ -949,7 +949,7 @@
</font> * @ingroup CPUBitfield
* This routine sets @a _output to the bit number of the first bit
* set in @a _value. @a _value is of CPU dependent type
<font color='#880000'>- * @a Priority_Bit_map_control. This type may be either 16 or 32 bits
</font><font color='#000088'>+ * @a Priority_bit_map_Control. This type may be either 16 or 32 bits
</font> * wide although only the 16 least significant bits will be used.
*
* There are a number of variables in using a "find first bit" type
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m32r/rtems/score/types.h:1.3 rtems/cpukit/score/cpu/m32r/rtems/score/types.h:1.4
--- rtems/cpukit/score/cpu/m32r/rtems/score/types.h:1.3 Fri Jul 16 03:40:07 2010
+++ rtems/cpukit/score/cpu/m32r/rtems/score/types.h Thu Jul 29 12:51:44 2010
</font><font color='#997700'>@@ -32,7 +32,7 @@
</font> */
/** This defines the type for a priority bit map entry. */
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font>
/** This defines the return type for an ISR entry point. */
typedef void m32r_isr;
<font color='#006600'>diff -u rtems/cpukit/score/cpu/mips/ChangeLog:1.141 rtems/cpukit/score/cpu/mips/ChangeLog:1.142
--- rtems/cpukit/score/cpu/mips/ChangeLog:1.141 Fri Jul 16 03:41:50 2010
+++ rtems/cpukit/score/cpu/mips/ChangeLog Thu Jul 29 12:51:48 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/mips/rtems/score/cpu.h:1.59 rtems/cpukit/score/cpu/mips/rtems/score/cpu.h:1.60
--- rtems/cpukit/score/cpu/mips/rtems/score/cpu.h:1.59 Fri Jul 16 03:41:50 2010
+++ rtems/cpukit/score/cpu/mips/rtems/score/cpu.h Thu Jul 29 12:51:48 2010
</font><font color='#997700'>@@ -909,7 +909,7 @@
</font>
/*
* This routine sets _output to the bit number of the first bit
<font color='#880000'>- * set in _value. _value is of CPU dependent type Priority_Bit_map_control.
</font><font color='#000088'>+ * set in _value. _value is of CPU dependent type Priority_bit_map_Control.
</font> * This type may be either 16 or 32 bits wide although only the 16
* least significant bits will be used.
*
<font color='#006600'>diff -u rtems/cpukit/score/cpu/mips/rtems/score/types.h:1.16 rtems/cpukit/score/cpu/mips/rtems/score/types.h:1.17
--- rtems/cpukit/score/cpu/mips/rtems/score/types.h:1.16 Fri Jul 16 03:41:50 2010
+++ rtems/cpukit/score/cpu/mips/rtems/score/types.h Thu Jul 29 12:51:48 2010
</font><font color='#997700'>@@ -32,7 +32,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font> typedef void mips_isr;
typedef void ( *mips_isr_entry )( void );
<font color='#006600'>diff -u rtems/cpukit/score/cpu/nios2/ChangeLog:1.23 rtems/cpukit/score/cpu/nios2/ChangeLog:1.24
--- rtems/cpukit/score/cpu/nios2/ChangeLog:1.23 Fri Jul 16 03:42:14 2010
+++ rtems/cpukit/score/cpu/nios2/ChangeLog Thu Jul 29 12:51:50 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/nios2/rtems/score/cpu.h:1.15 rtems/cpukit/score/cpu/nios2/rtems/score/cpu.h:1.16
--- rtems/cpukit/score/cpu/nios2/rtems/score/cpu.h:1.15 Fri Jul 16 03:42:14 2010
+++ rtems/cpukit/score/cpu/nios2/rtems/score/cpu.h Thu Jul 29 12:51:50 2010
</font><font color='#997700'>@@ -1000,7 +1000,7 @@
</font> * @ingroup CPUBitfield
* This routine sets @a _output to the bit number of the first bit
* set in @a _value. @a _value is of CPU dependent type
<font color='#880000'>- * @a Priority_Bit_map_control. This type may be either 16 or 32 bits
</font><font color='#000088'>+ * @a Priority_bit_map_Control. This type may be either 16 or 32 bits
</font> * wide although only the 16 least significant bits will be used.
*
* There are a number of variables in using a "find first bit" type
<font color='#006600'>diff -u rtems/cpukit/score/cpu/nios2/rtems/score/types.h:1.9 rtems/cpukit/score/cpu/nios2/rtems/score/types.h:1.10
--- rtems/cpukit/score/cpu/nios2/rtems/score/types.h:1.9 Fri Jul 16 03:42:15 2010
+++ rtems/cpukit/score/cpu/nios2/rtems/score/types.h Thu Jul 29 12:51:50 2010
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font> typedef void nios2_isr;
typedef void ( *nios2_isr_entry )( void );
<font color='#006600'>diff -u rtems/cpukit/score/cpu/no_cpu/ChangeLog:1.83 rtems/cpukit/score/cpu/no_cpu/ChangeLog:1.84
--- rtems/cpukit/score/cpu/no_cpu/ChangeLog:1.83 Fri Jul 16 03:42:46 2010
+++ rtems/cpukit/score/cpu/no_cpu/ChangeLog Thu Jul 29 12:51:52 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/no_cpu/rtems/score/cpu.h:1.33 rtems/cpukit/score/cpu/no_cpu/rtems/score/cpu.h:1.34
--- rtems/cpukit/score/cpu/no_cpu/rtems/score/cpu.h:1.33 Fri Jul 16 03:42:46 2010
+++ rtems/cpukit/score/cpu/no_cpu/rtems/score/cpu.h Thu Jul 29 12:51:52 2010
</font><font color='#997700'>@@ -936,7 +936,7 @@
</font> * @ingroup CPUBitfield
* This routine sets @a _output to the bit number of the first bit
* set in @a _value. @a _value is of CPU dependent type
<font color='#880000'>- * @a Priority_Bit_map_control. This type may be either 16 or 32 bits
</font><font color='#000088'>+ * @a Priority_bit_map_Control. This type may be either 16 or 32 bits
</font> * wide although only the 16 least significant bits will be used.
*
* There are a number of variables in using a "find first bit" type
<font color='#006600'>diff -u rtems/cpukit/score/cpu/no_cpu/rtems/score/types.h:1.18 rtems/cpukit/score/cpu/no_cpu/rtems/score/types.h:1.19
--- rtems/cpukit/score/cpu/no_cpu/rtems/score/types.h:1.18 Fri Jul 16 03:42:46 2010
+++ rtems/cpukit/score/cpu/no_cpu/rtems/score/types.h Thu Jul 29 12:51:52 2010
</font><font color='#997700'>@@ -32,7 +32,7 @@
</font> */
/** This defines the type for a priority bit map entry. */
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font>
/** This defines the return type for an ISR entry point. */
typedef void no_cpu_isr;
<font color='#006600'>diff -u rtems/cpukit/score/cpu/powerpc/ChangeLog:1.155 rtems/cpukit/score/cpu/powerpc/ChangeLog:1.156
--- rtems/cpukit/score/cpu/powerpc/ChangeLog:1.155 Fri Jul 16 03:45:02 2010
+++ rtems/cpukit/score/cpu/powerpc/ChangeLog Thu Jul 29 12:51:54 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/new-exceptions/cpu.h: Removed file.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h:1.42 rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h:1.43
--- rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h:1.42 Fri Jul 16 03:45:02 2010
+++ rtems/cpukit/score/cpu/powerpc/rtems/score/cpu.h Thu Jul 29 12:51:54 2010
</font><font color='#997700'>@@ -762,7 +762,7 @@
</font>
/*
* This routine sets _output to the bit number of the first bit
<font color='#880000'>- * set in _value. _value is of CPU dependent type Priority_Bit_map_control.
</font><font color='#000088'>+ * set in _value. _value is of CPU dependent type Priority_bit_map_Control.
</font> * This type may be either 16 or 32 bits wide although only the 16
* least significant bits will be used.
*
<font color='#006600'>diff -u rtems/cpukit/score/cpu/powerpc/rtems/score/types.h:1.16 rtems/cpukit/score/cpu/powerpc/rtems/score/types.h:1.17
--- rtems/cpukit/score/cpu/powerpc/rtems/score/types.h:1.16 Fri Jul 16 03:45:02 2010
+++ rtems/cpukit/score/cpu/powerpc/rtems/score/types.h Thu Jul 29 12:51:54 2010
</font><font color='#997700'>@@ -47,7 +47,7 @@
</font> /*
* This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint32_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint32_t Priority_bit_map_Control;
</font> typedef void ppc_isr;
#ifdef __cplusplus
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sh/ChangeLog:1.96 rtems/cpukit/score/cpu/sh/ChangeLog:1.97
--- rtems/cpukit/score/cpu/sh/ChangeLog:1.96 Fri Jul 16 03:45:28 2010
+++ rtems/cpukit/score/cpu/sh/ChangeLog Thu Jul 29 12:51:56 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
+ handling, to isolate the bitmap implementation of priorities in the
+ supercore so that priority management is a little more modular. This
+ change is in anticipation of scheduler implementations that can
+ select how they manage tracking priority levels / finding the highest
+ priority ready task. Note that most of the changes here are simple
+ renaming, to clarify the use of the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sh/rtems/score/cpu.h:1.33 rtems/cpukit/score/cpu/sh/rtems/score/cpu.h:1.34
--- rtems/cpukit/score/cpu/sh/rtems/score/cpu.h:1.33 Fri Jul 16 03:45:28 2010
+++ rtems/cpukit/score/cpu/sh/rtems/score/cpu.h Thu Jul 29 12:51:56 2010
</font><font color='#997700'>@@ -682,7 +682,7 @@
</font>
/*
* This routine sets _output to the bit number of the first bit
<font color='#880000'>- * set in _value. _value is of CPU dependent type Priority_Bit_map_control.
</font><font color='#000088'>+ * set in _value. _value is of CPU dependent type Priority_bit_map_Control.
</font> * This type may be either 16 or 32 bits wide although only the 16
* least significant bits will be used.
*
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sh/rtems/score/types.h:1.15 rtems/cpukit/score/cpu/sh/rtems/score/types.h:1.16
--- rtems/cpukit/score/cpu/sh/rtems/score/types.h:1.15 Fri Jul 16 03:45:28 2010
+++ rtems/cpukit/score/cpu/sh/rtems/score/types.h Thu Jul 29 12:51:56 2010
</font><font color='#997700'>@@ -41,7 +41,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font>
typedef void sh_isr;
typedef void ( *sh_isr_entry )( void );
</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
* rtems/score/types.h: Refactoring of priority handling, to isolate the
bitmap implementation of priorities in the supercore so that priority
management is a little more modular. This change is in anticipation
of scheduler implementations that can select how they manage tracking
priority levels / finding the highest priority ready task. Note that
most of the changes here are simple renaming, to clarify the use of
the bitmap-based priority management.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/arm/ChangeLog.diff?r1=text&tr1=1.124&r2=text&tr2=1.125&diff_format=h">M</a></td><td width='1%'>1.125</td><td width='100%'>cpukit/score/cpu/arm/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/arm/rtems/score/types.h.diff?r1=text&tr1=1.19&r2=text&tr2=1.20&diff_format=h">M</a></td><td width='1%'>1.20</td><td width='100%'>cpukit/score/cpu/arm/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/i386/ChangeLog.diff?r1=text&tr1=1.101&r2=text&tr2=1.102&diff_format=h">M</a></td><td width='1%'>1.102</td><td width='100%'>cpukit/score/cpu/i386/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/i386/rtems/score/types.h.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>cpukit/score/cpu/i386/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m68k/ChangeLog.diff?r1=text&tr1=1.124&r2=text&tr2=1.125&diff_format=h">M</a></td><td width='1%'>1.125</td><td width='100%'>cpukit/score/cpu/m68k/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/m68k/rtems/score/types.h.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>cpukit/score/cpu/m68k/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sparc/ChangeLog.diff?r1=text&tr1=1.97&r2=text&tr2=1.98&diff_format=h">M</a></td><td width='1%'>1.98</td><td width='100%'>cpukit/score/cpu/sparc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sparc/rtems/score/types.h.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>cpukit/score/cpu/sparc/rtems/score/types.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sparc64/ChangeLog.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>cpukit/score/cpu/sparc64/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/sparc64/rtems/score/types.h.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>cpukit/score/cpu/sparc64/rtems/score/types.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/arm/ChangeLog:1.124 rtems/cpukit/score/cpu/arm/ChangeLog:1.125
--- rtems/cpukit/score/cpu/arm/ChangeLog:1.124 Fri Jul 16 03:35:32 2010
+++ rtems/cpukit/score/cpu/arm/ChangeLog Thu Jul 29 12:51:30 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/types.h: Refactoring of priority handling, to isolate the
+ bitmap implementation of priorities in the supercore so that priority
+ management is a little more modular. This change is in anticipation
+ of scheduler implementations that can select how they manage tracking
+ priority levels / finding the highest priority ready task. Note that
+ most of the changes here are simple renaming, to clarify the use of
+ the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/arm/rtems/score/types.h:1.19 rtems/cpukit/score/cpu/arm/rtems/score/types.h:1.20
--- rtems/cpukit/score/cpu/arm/rtems/score/types.h:1.19 Fri Jul 16 03:35:32 2010
+++ rtems/cpukit/score/cpu/arm/rtems/score/types.h Thu Jul 29 12:51:31 2010
</font><font color='#997700'>@@ -42,7 +42,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font>
/** @} */
<font color='#006600'>diff -u rtems/cpukit/score/cpu/i386/ChangeLog:1.101 rtems/cpukit/score/cpu/i386/ChangeLog:1.102
--- rtems/cpukit/score/cpu/i386/ChangeLog:1.101 Fri Jul 16 03:38:35 2010
+++ rtems/cpukit/score/cpu/i386/ChangeLog Thu Jul 29 12:51:38 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/types.h: Refactoring of priority handling, to isolate the
+ bitmap implementation of priorities in the supercore so that priority
+ management is a little more modular. This change is in anticipation
+ of scheduler implementations that can select how they manage tracking
+ priority levels / finding the highest priority ready task. Note that
+ most of the changes here are simple renaming, to clarify the use of
+ the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/i386/rtems/score/types.h:1.15 rtems/cpukit/score/cpu/i386/rtems/score/types.h:1.16
--- rtems/cpukit/score/cpu/i386/rtems/score/types.h:1.15 Fri Jul 16 03:38:35 2010
+++ rtems/cpukit/score/cpu/i386/rtems/score/types.h Thu Jul 29 12:51:38 2010
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font> typedef void i386_isr;
typedef i386_isr ( *i386_isr_entry )( void );
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m68k/ChangeLog:1.124 rtems/cpukit/score/cpu/m68k/ChangeLog:1.125
--- rtems/cpukit/score/cpu/m68k/ChangeLog:1.124 Fri Jul 16 03:41:18 2010
+++ rtems/cpukit/score/cpu/m68k/ChangeLog Thu Jul 29 12:51:46 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/types.h: Refactoring of priority handling, to isolate the
+ bitmap implementation of priorities in the supercore so that priority
+ management is a little more modular. This change is in anticipation
+ of scheduler implementations that can select how they manage tracking
+ priority levels / finding the highest priority ready task. Note that
+ most of the changes here are simple renaming, to clarify the use of
+ the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/m68k/rtems/score/types.h:1.15 rtems/cpukit/score/cpu/m68k/rtems/score/types.h:1.16
--- rtems/cpukit/score/cpu/m68k/rtems/score/types.h:1.15 Fri Jul 16 03:40:58 2010
+++ rtems/cpukit/score/cpu/m68k/rtems/score/types.h Thu Jul 29 12:51:46 2010
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font> typedef void m68k_isr;
typedef void ( *m68k_isr_entry )( void );
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sparc/ChangeLog:1.97 rtems/cpukit/score/cpu/sparc/ChangeLog:1.98
--- rtems/cpukit/score/cpu/sparc/ChangeLog:1.97 Fri Jul 16 03:45:55 2010
+++ rtems/cpukit/score/cpu/sparc/ChangeLog Thu Jul 29 12:51:58 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/types.h: Refactoring of priority handling, to isolate the
+ bitmap implementation of priorities in the supercore so that priority
+ management is a little more modular. This change is in anticipation
+ of scheduler implementations that can select how they manage tracking
+ priority levels / finding the highest priority ready task. Note that
+ most of the changes here are simple renaming, to clarify the use of
+ the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sparc/rtems/score/types.h:1.17 rtems/cpukit/score/cpu/sparc/rtems/score/types.h:1.18
--- rtems/cpukit/score/cpu/sparc/rtems/score/types.h:1.17 Fri Jul 16 03:45:55 2010
+++ rtems/cpukit/score/cpu/sparc/rtems/score/types.h Thu Jul 29 12:51:58 2010
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font> typedef void sparc_isr;
typedef void ( *sparc_isr_entry )( void );
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sparc64/ChangeLog:1.2 rtems/cpukit/score/cpu/sparc64/ChangeLog:1.3
--- rtems/cpukit/score/cpu/sparc64/ChangeLog:1.2 Fri Jul 16 03:46:28 2010
+++ rtems/cpukit/score/cpu/sparc64/ChangeLog Thu Jul 29 12:52:00 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * rtems/score/types.h: Refactoring of priority handling, to isolate the
+ bitmap implementation of priorities in the supercore so that priority
+ management is a little more modular. This change is in anticipation
+ of scheduler implementations that can select how they manage tracking
+ priority levels / finding the highest priority ready task. Note that
+ most of the changes here are simple renaming, to clarify the use of
+ the bitmap-based priority management.
+
</font> 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
<font color='#006600'>diff -u rtems/cpukit/score/cpu/sparc64/rtems/score/types.h:1.2 rtems/cpukit/score/cpu/sparc64/rtems/score/types.h:1.3
--- rtems/cpukit/score/cpu/sparc64/rtems/score/types.h:1.2 Fri Jul 16 03:46:29 2010
+++ rtems/cpukit/score/cpu/sparc64/rtems/score/types.h Thu Jul 29 12:52:00 2010
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font> * This section defines the basic types for this processor.
*/
<font color='#880000'>-typedef uint16_t Priority_Bit_map_control;
</font><font color='#000088'>+typedef uint16_t Priority_bit_map_Control;
</font> typedef void sparc_isr;
typedef void ( *sparc_isr_entry )( void );
</pre>
<p> </p>
<a name='cs4'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
* sapi/src/exinit.c, score/Makefile.am, score/preinstall.am,
score/include/rtems/score/bitfield.h,
score/include/rtems/score/priority.h,
score/include/rtems/score/thread.h,
score/inline/rtems/score/priority.inl,
score/inline/rtems/score/thread.inl,
score/src/threadchangepriority.c, score/src/threadclearstate.c,
score/src/threadready.c, score/src/threadresume.c,
score/src/threadsetpriority.c, score/src/threadsetstate.c,
score/src/threadsettransient.c, score/src/threadsuspend.c:
Refactoring of priority handling, to isolate the bitmap
implementation of priorities in the supercore so that priority
management is a little more modular. This change is in anticipation
of scheduler implementations that can select how they manage tracking
priority levels / finding the highest priority ready task. Note that
most of the changes here are simple renaming, to clarify the use of
the bitmap-based priority management.
* score/include/rtems/score/prioritybitmap.h,
score/inline/rtems/score/prioritybitmap.inl: New files.
</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.2534&r2=text&tr2=1.2535&diff_format=h">M</a></td><td width='1%'>1.2535</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/sapi/src/exinit.c.diff?r1=text&tr1=1.54&r2=text&tr2=1.55&diff_format=h">M</a></td><td width='1%'>1.55</td><td width='100%'>cpukit/sapi/src/exinit.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/Makefile.am.diff?r1=text&tr1=1.86&r2=text&tr2=1.87&diff_format=h">M</a></td><td width='1%'>1.87</td><td width='100%'>cpukit/score/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/bitfield.h.diff?r1=text&tr1=1.20&r2=text&tr2=1.21&diff_format=h">M</a></td><td width='1%'>1.21</td><td width='100%'>cpukit/score/include/rtems/score/bitfield.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/priority.h.diff?r1=text&tr1=1.26&r2=text&tr2=1.27&diff_format=h">M</a></td><td width='1%'>1.27</td><td width='100%'>cpukit/score/include/rtems/score/priority.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/prioritybitmap.h?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/score/include/rtems/score/prioritybitmap.h</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/thread.h.diff?r1=text&tr1=1.96&r2=text&tr2=1.97&diff_format=h">M</a></td><td width='1%'>1.97</td><td width='100%'>cpukit/score/include/rtems/score/thread.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/inline/rtems/score/priority.inl.diff?r1=text&tr1=1.25&r2=text&tr2=1.26&diff_format=h">M</a></td><td width='1%'>1.26</td><td width='100%'>cpukit/score/inline/rtems/score/priority.inl</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/inline/rtems/score/prioritybitmap.inl?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">cpukit/score/inline/rtems/score/prioritybitmap.inl</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/inline/rtems/score/thread.inl.diff?r1=text&tr1=1.41&r2=text&tr2=1.42&diff_format=h">M</a></td><td width='1%'>1.42</td><td width='100%'>cpukit/score/inline/rtems/score/thread.inl</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/preinstall.am.diff?r1=text&tr1=1.23&r2=text&tr2=1.24&diff_format=h">M</a></td><td width='1%'>1.24</td><td width='100%'>cpukit/score/preinstall.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadchangepriority.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>cpukit/score/src/threadchangepriority.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadclearstate.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>cpukit/score/src/threadclearstate.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadready.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>cpukit/score/src/threadready.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadresume.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>cpukit/score/src/threadresume.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadsetpriority.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>cpukit/score/src/threadsetpriority.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadsetstate.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/score/src/threadsetstate.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadsettransient.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>cpukit/score/src/threadsettransient.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadsuspend.c.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>cpukit/score/src/threadsuspend.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2534 rtems/cpukit/ChangeLog:1.2535
--- rtems/cpukit/ChangeLog:1.2534 Thu Jul 29 12:49:29 2010
+++ rtems/cpukit/ChangeLog Thu Jul 29 12:52:09 2010
</font><font color='#997700'>@@ -1,3 +1,26 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * sapi/src/exinit.c, score/Makefile.am, score/preinstall.am,
+ score/include/rtems/score/bitfield.h,
+ score/include/rtems/score/priority.h,
+ score/include/rtems/score/thread.h,
+ score/inline/rtems/score/priority.inl,
+ score/inline/rtems/score/thread.inl,
+ score/src/threadchangepriority.c, score/src/threadclearstate.c,
+ score/src/threadready.c, score/src/threadresume.c,
+ score/src/threadsetpriority.c, score/src/threadsetstate.c,
+ score/src/threadsettransient.c, score/src/threadsuspend.c:
+ Refactoring of priority handling, to isolate the bitmap
+ implementation of priorities in the supercore so that priority
+ management is a little more modular. This change is in anticipation
+ of scheduler implementations that can select how they manage tracking
+ priority levels / finding the highest priority ready task. Note that
+ most of the changes here are simple renaming, to clarify the use of
+ the bitmap-based priority management.
+ * score/include/rtems/score/prioritybitmap.h,
+ score/inline/rtems/score/prioritybitmap.inl: New files.
+
</font> 2010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/psignalunblockthread.c: Clean up and simplify.
<font color='#006600'>diff -u rtems/cpukit/sapi/src/exinit.c:1.54 rtems/cpukit/sapi/src/exinit.c:1.55
--- rtems/cpukit/sapi/src/exinit.c:1.54 Thu Jun 17 22:03:22 2010
+++ rtems/cpukit/sapi/src/exinit.c Thu Jul 29 12:52:09 2010
</font><font color='#997700'>@@ -42,6 +42,7 @@
</font> #include <rtems/score/mpci.h>
#endif
#include <rtems/score/priority.h>
<font color='#000088'>+#include <rtems/score/prioritybitmap.h>
</font> #include <rtems/score/thread.h>
#include <rtems/score/tod.h>
#include <rtems/score/userext.h>
<font color='#997700'>@@ -124,7 +125,7 @@
</font> _API_Mutex_Initialization( 1 );
_API_Mutex_Allocate( &_RTEMS_Allocator_Mutex );
<font color='#880000'>- _Priority_Handler_initialization();
</font><font color='#000088'>+ _Priority_bit_map_Handler_initialization();
</font> _Watchdog_Handler_initialization();
_TOD_Handler_initialization();
<font color='#006600'>diff -u rtems/cpukit/score/Makefile.am:1.86 rtems/cpukit/score/Makefile.am:1.87
--- rtems/cpukit/score/Makefile.am:1.86 Fri Jul 16 03:31:34 2010
+++ rtems/cpukit/score/Makefile.am Thu Jul 29 12:52:09 2010
</font><font color='#997700'>@@ -25,15 +25,15 @@
</font> include/rtems/score/heap.h include/rtems/score/protectedheap.h \
include/rtems/score/interr.h include/rtems/score/isr.h \
include/rtems/score/object.h include/rtems/score/percpu.h \
<font color='#880000'>- include/rtems/score/priority.h include/rtems/score/stack.h \
- include/rtems/score/states.h include/rtems/score/sysstate.h \
- include/rtems/score/thread.h include/rtems/score/threadq.h \
- include/rtems/score/threadsync.h include/rtems/score/timespec.h \
- include/rtems/score/timestamp.h include/rtems/score/timestamp64.h \
- include/rtems/score/tod.h include/rtems/score/tqdata.h \
- include/rtems/score/userext.h include/rtems/score/watchdog.h \
- include/rtems/score/wkspace.h include/rtems/score/cpuopts.h \
- include/rtems/score/basedefs.h
</font><font color='#000088'>+ include/rtems/score/priority.h include/rtems/score/prioritybitmap.h \
+ include/rtems/score/stack.h include/rtems/score/states.h \
+ include/rtems/score/sysstate.h include/rtems/score/thread.h \
+ include/rtems/score/threadq.h include/rtems/score/threadsync.h \
+ include/rtems/score/timespec.h include/rtems/score/timestamp.h \
+ include/rtems/score/timestamp64.h include/rtems/score/tod.h \
+ include/rtems/score/tqdata.h include/rtems/score/userext.h \
+ include/rtems/score/watchdog.h include/rtems/score/wkspace.h \
+ include/rtems/score/cpuopts.h include/rtems/score/basedefs.h
</font>
if HAS_PTHREADS
include_rtems_score_HEADERS += include/rtems/score/corespinlock.h \
<font color='#997700'>@@ -53,11 +53,12 @@
</font> inline/rtems/score/coremsg.inl inline/rtems/score/coremutex.inl \
inline/rtems/score/coresem.inl inline/rtems/score/heap.inl \
inline/rtems/score/isr.inl inline/rtems/score/object.inl \
<font color='#880000'>- inline/rtems/score/priority.inl inline/rtems/score/stack.inl \
- inline/rtems/score/states.inl inline/rtems/score/sysstate.inl \
- inline/rtems/score/thread.inl inline/rtems/score/threadq.inl \
- inline/rtems/score/tod.inl inline/rtems/score/tqdata.inl \
- inline/rtems/score/watchdog.inl inline/rtems/score/wkspace.inl
</font><font color='#000088'>+ inline/rtems/score/priority.inl inline/rtems/score/prioritybitmap.inl \
+ inline/rtems/score/stack.inl inline/rtems/score/states.inl \
+ inline/rtems/score/sysstate.inl inline/rtems/score/thread.inl \
+ inline/rtems/score/threadq.inl inline/rtems/score/tod.inl \
+ inline/rtems/score/tqdata.inl inline/rtems/score/watchdog.inl \
+ inline/rtems/score/wkspace.inl
</font>
if HAS_PTHREADS
include_rtems_score_HEADERS += inline/rtems/score/corespinlock.inl \
<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/bitfield.h:1.20 rtems/cpukit/score/include/rtems/score/bitfield.h:1.21
--- rtems/cpukit/score/include/rtems/score/bitfield.h:1.20 Fri Nov 27 23:58:53 2009
+++ rtems/cpukit/score/include/rtems/score/bitfield.h Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -90,9 +90,9 @@
</font> register const unsigned char *__p = __log2table; \
\
if ( __value < 0x100 ) \
<font color='#880000'>- (_bit_number) = (Priority_Bit_map_control)( __p[ __value ] + 8 ); \
</font><font color='#000088'>+ (_bit_number) = (Priority_bit_map_Control)( __p[ __value ] + 8 ); \
</font> else \
<font color='#880000'>- (_bit_number) = (Priority_Bit_map_control)( __p[ __value >> 8 ] ); \
</font><font color='#000088'>+ (_bit_number) = (Priority_bit_map_Control)( __p[ __value >> 8 ] ); \
</font> }
#endif
<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/priority.h:1.26 rtems/cpukit/score/include/rtems/score/priority.h:1.27
--- rtems/cpukit/score/include/rtems/score/priority.h:1.26 Mon Jun 14 01:08:40 2010
+++ rtems/cpukit/score/include/rtems/score/priority.h Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -7,7 +7,7 @@
</font> */
/*
<font color='#880000'>- * COPYRIGHT (c) 1989-2006.
</font><font color='#000088'>+ * COPYRIGHT (c) 1989-2010.
</font> * On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
<font color='#997700'>@@ -67,76 +67,10 @@
</font> #define PRIORITY_MAXIMUM rtems_maximum_priority
/**
<font color='#880000'>- * The following record defines the information associated with
- * each thread to manage its interaction with the priority bit maps.
- */
-typedef struct {
- /** This is the address of minor bit map slot. */
- Priority_Bit_map_control *minor;
- /** This is the priority bit map ready mask. */
- Priority_Bit_map_control ready_major;
- /** This is the priority bit map ready mask. */
- Priority_Bit_map_control ready_minor;
- /** This is the priority bit map block mask. */
- Priority_Bit_map_control block_major;
- /** This is the priority bit map block mask. */
- Priority_Bit_map_control block_minor;
-} Priority_Information;
-
-/**
</font> * This variable contains the configured number of priorities
*/
extern uint8_t rtems_maximum_priority;
<font color='#880000'>-/**
- * Each sixteen bit entry in this array is associated with one of
- * the sixteen entries in the Priority Bit map.
- */
-SCORE_EXTERN volatile Priority_Bit_map_control _Priority_Major_bit_map;
-
-/** Each bit in the Priority Bitmap indicates whether or not there are
- * threads ready at a particular priority. The mapping of
- * individual priority levels to particular bits is processor
- * dependent as is the value of each bit used to indicate that
- * threads are ready at that priority.
- */
-SCORE_EXTERN Priority_Bit_map_control
- _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT;
-
-/*
- * The definition of the Priority_Bit_map_control type is CPU dependent.
- *
- */
-
-#if ( CPU_USE_GENERIC_BITFIELD_CODE == FALSE )
-/**
- * This method returns the priority bit mask for the specified major
- * or minor bit number.
- *
- * @param[in] _bit_number is the bit number for which we need a mask
- *
- * @return the priority bit mask
- *
- * @note This may simply be a pass through to a CPU dependent implementation.
- */
-#define _Priority_Mask( _bit_number ) \
- _CPU_Priority_Mask( _bit_number )
-#endif
-
-#if ( CPU_USE_GENERIC_BITFIELD_CODE == FALSE )
-/**
- * This method returns the bit index position for the specified priority.
- *
- * @param[in] _priority is the priority for which we need the index.
- *
- * @return This method returns the array index into the priority bit map.
- *
- * @note This may simply be a pass through to a CPU dependent implementation.
- */
-#define _Priority_Bits_index( _priority ) \
- _CPU_Priority_bits_index( _priority )
-#endif
-
</font> #ifndef __RTEMS_APPLICATION__
#include <rtems/score/priority.inl>
#endif
<font color='#006600'>diff -u /dev/null rtems/cpukit/score/include/rtems/score/prioritybitmap.h:1.1
--- /dev/null Thu Jul 29 13:10:42 2010
+++ rtems/cpukit/score/include/rtems/score/prioritybitmap.h Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -0,0 +1,125 @@
</font><font color='#000088'>+/**
+ * @file rtems/score/prioritybitmap.h
+ *
+ * This include file contains all thread priority manipulation routines for
+ * the bit map priority queue implementation.
+ */
+
+/*
+ * COPYRIGHT (c) 1989-2010.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifndef _RTEMS_SCORE_PRIORITYBITMAP_H
+#define _RTEMS_SCORE_PRIORITYBITMAP_H
+
+/**
+ * @addtogroup ScorePriority<span style="background-color: #FF0000"> </span>
+ *<span style="background-color: #FF0000"> </span>
+ */
+/**@{*/
+
+/*
+ * Processor specific information.
+ */
+#include <rtems/score/cpu.h>
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <rtems/score/priority.h>
+
+/*<span style="background-color: #FF0000"> </span>
+ * TODO:<span style="background-color: #FF0000"> </span>
+ * These should only be instantiated if using the bit map handler. The<span style="background-color: #FF0000"> </span>
+ * logical place for this is in confdefs.h when a scheduler that uses the<span style="background-color: #FF0000"> </span>
+ * bit map handler is configured.
+ */
+
+/**
+ * Each sixteen bit entry in this array is associated with one of
+ * the sixteen entries in the Priority Bit map.
+ */
+SCORE_EXTERN volatile Priority_bit_map_Control _Priority_Major_bit_map;
+
+/** Each bit in the Priority Bitmap indicates whether or not there are
+ * threads ready at a particular priority. The mapping of
+ * individual priority levels to particular bits is processor
+ * dependent as is the value of each bit used to indicate that
+ * threads are ready at that priority.
+ */
+SCORE_EXTERN Priority_bit_map_Control
+ _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT;
+
+/*
+ * The definition of the Priority_bit_map_Control type is CPU dependent.
+ *
+ */
+
+/**
+ * The following record defines the information associated with
+ * each thread to manage its interaction with the priority bit maps.
+ */
+typedef struct {
+ /** This is the address of minor bit map slot. */
+ Priority_bit_map_Control *minor;
+ /** This is the priority bit map ready mask. */
+ Priority_bit_map_Control ready_major;
+ /** This is the priority bit map ready mask. */
+ Priority_bit_map_Control ready_minor;
+ /** This is the priority bit map block mask. */
+ Priority_bit_map_Control block_major;
+ /** This is the priority bit map block mask. */
+ Priority_bit_map_Control block_minor;
+} Priority_bit_map_Information;
+
+
+#if ( CPU_USE_GENERIC_BITFIELD_CODE == FALSE )
+/**
+ * This method returns the priority bit mask for the specified major
+ * or minor bit number.
+ *
+ * @param[in] _bit_number is the bit number for which we need a mask
+ *
+ * @return the priority bit mask
+ *
+ * @note This may simply be a pass through to a CPU dependent implementation.
+ */
+#define _Priority_Mask( _bit_number ) \
+ _CPU_Priority_Mask( _bit_number )
+#endif
+
+#if ( CPU_USE_GENERIC_BITFIELD_CODE == FALSE )
+/**
+ * This method returns the bit index position for the specified priority.
+ *
+ * @param[in] _priority is the priority for which we need the index.
+ *
+ * @return This method returns the array index into the priority bit map.
+ *
+ * @note This may simply be a pass through to a CPU dependent implementation.
+ */
+#define _Priority_Bits_index( _priority ) \
+ _CPU_Priority_bits_index( _priority )
+#endif
+
+#ifndef __RTEMS_APPLICATION__
+#include <rtems/score/prioritybitmap.inl>
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+/**@}*/
+
+#endif
+/* end of include file */
</font>
<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/score/thread.h:1.96 rtems/cpukit/score/include/rtems/score/thread.h:1.97
--- rtems/cpukit/score/include/rtems/score/thread.h:1.96 Mon Jun 28 19:34:11 2010
+++ rtems/cpukit/score/include/rtems/score/thread.h Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -70,6 +70,7 @@
</font> #endif
#include <rtems/score/object.h>
#include <rtems/score/priority.h>
<font color='#000088'>+#include <rtems/score/prioritybitmap.h>
</font> #include <rtems/score/stack.h>
#include <rtems/score/states.h>
#include <rtems/score/tod.h>
<font color='#997700'>@@ -392,7 +393,7 @@
</font> /** This field points to the Ready FIFO for this priority. */
Chain_Control *ready;
/** This field contains precalculated priority map indices. */
<font color='#880000'>- Priority_Information Priority_map;
</font><font color='#000088'>+ Priority_bit_map_Information Priority_map;
</font> /** This field contains information about the starting state of
* this thread.
*/
<font color='#006600'>diff -u rtems/cpukit/score/inline/rtems/score/priority.inl:1.25 rtems/cpukit/score/inline/rtems/score/priority.inl:1.26
--- rtems/cpukit/score/inline/rtems/score/priority.inl:1.25 Thu May 7 23:55:53 2009
+++ rtems/cpukit/score/inline/rtems/score/priority.inl Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -28,21 +28,6 @@
</font> * @{
*/
<font color='#880000'>-#include <rtems/score/bitfield.h>
-
-/**
- * This routine performs the initialization necessary for this handler.
- */
-
-RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void )
-{
- int index;
-
- _Priority_Major_bit_map = 0;
- for ( index=0 ; index <16 ; index++ )
- _Priority_Bit_map[ index ] = 0;
-}
-
</font> /**
* This function returns true if the_priority if valid for a
* user task, and false otherwise.
<font color='#997700'>@@ -60,157 +45,7 @@
</font> return ( the_priority <= PRIORITY_MAXIMUM );
}
<font color='#880000'>-/**
- * This function returns the major portion of the_priority.
- */
-
-RTEMS_INLINE_ROUTINE Priority_Bit_map_control _Priority_Major (
- Priority_Control the_priority
-)
-{
- return (Priority_Bit_map_control)( the_priority / 16 );
-}
-
-/**
- * This function returns the minor portion of the_priority.
- */
</font>
<font color='#880000'>-RTEMS_INLINE_ROUTINE Priority_Bit_map_control _Priority_Minor (
- Priority_Control the_priority
-)
-{
- return (Priority_Bit_map_control)( the_priority % 16 );
-}
-
-#if ( CPU_USE_GENERIC_BITFIELD_CODE == TRUE )
-<span style="background-color: #FF0000"> </span>
-/**
- * This function returns the mask associated with the major or minor
- * number passed to it.
- */
-<span style="background-color: #FF0000"> </span>
-RTEMS_INLINE_ROUTINE Priority_Bit_map_control _Priority_Mask (
- uint32_t bit_number
-)
-{
- return (Priority_Bit_map_control)(0x8000u >> bit_number);
-}
-<span style="background-color: #FF0000"> </span>
-/**
- * This function returns the mask bit inverted.
- */
-<span style="background-color: #FF0000"> </span>
-RTEMS_INLINE_ROUTINE Priority_Bit_map_control _Priority_Mask_invert (
- uint32_t mask
-)
-{
- return (Priority_Bit_map_control)(~mask);
-}
-
-<span style="background-color: #FF0000"> </span>
-/**
- * This function translates the bit numbers returned by the bit scan
- * of a priority bit field into something suitable for use as
- * a major or minor component of a priority.
- */
-<span style="background-color: #FF0000"> </span>
-RTEMS_INLINE_ROUTINE uint32_t _Priority_Bits_index (
- uint32_t bit_number
-)
-{
- return bit_number;
-}
-
-#endif
-
-/**
- * This routine uses the_priority_map to update the priority
- * bit maps to indicate that a thread has been readied.
- */
-
-RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
- Priority_Information *the_priority_map
-)
-{
- *the_priority_map->minor |= the_priority_map->ready_minor;
- _Priority_Major_bit_map |= the_priority_map->ready_major;
-}
-
-/**
- * This routine uses the_priority_map to update the priority
- * bit maps to indicate that a thread has been removed from the
- * ready state.
- */
-
-RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map (
- Priority_Information *the_priority_map
-)
-{
- *the_priority_map->minor &= the_priority_map->block_minor;
- if ( *the_priority_map->minor == 0 )
- _Priority_Major_bit_map &= the_priority_map->block_major;
-}
-
-/**
- * This function returns the priority of the highest priority
- * ready thread.
- */
-
-RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void )
-{
- Priority_Bit_map_control minor;
- Priority_Bit_map_control major;
-
- _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
- _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
-
- return (_Priority_Bits_index( major ) << 4) +
- _Priority_Bits_index( minor );
-}
-
-/**
- * This routine initializes the_priority_map so that it
- * contains the information necessary to manage a thread
- * at new_priority.
- */
-
-RTEMS_INLINE_ROUTINE void _Priority_Initialize_information(
- Priority_Information *the_priority_map,
- Priority_Control new_priority
-)
-{
- Priority_Bit_map_control major;
- Priority_Bit_map_control minor;
- Priority_Bit_map_control mask;
-
- major = _Priority_Major( new_priority );
- minor = _Priority_Minor( new_priority );
-
- the_priority_map->minor =
- &_Priority_Bit_map[ _Priority_Bits_index(major) ];
-
- mask = _Priority_Mask( major );
- the_priority_map->ready_major = mask;
- /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */
- the_priority_map->block_major = (Priority_Bit_map_control)(~((uint32_t)mask));
-
- mask = _Priority_Mask( minor );
- the_priority_map->ready_minor = mask;
- /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */
- the_priority_map->block_minor = (Priority_Bit_map_control)(~((uint32_t)mask));
-}
-
-/**
- * This function returns true if the priority GROUP is empty, and
- * false otherwise.
- */
-
-RTEMS_INLINE_ROUTINE bool _Priority_Is_group_empty (
- Priority_Control the_priority
-)
-{
- return the_priority == 0;
-}
</font>
/**@}*/
<font color='#006600'>diff -u /dev/null rtems/cpukit/score/inline/rtems/score/prioritybitmap.inl:1.1
--- /dev/null Thu Jul 29 13:10:42 2010
+++ rtems/cpukit/score/inline/rtems/score/prioritybitmap.inl Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -0,0 +1,193 @@
</font><font color='#000088'>+/**<span style="background-color: #FF0000"> </span>
+ * @file rtems/score/prioritybitmap.inl
+ *
+ * This file contains the static inline implementation of all inlined
+ * routines in the Priority Handler bit map implementation
+ */
+
+/*
+ * COPYRIGHT (c) 1989-2010.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifndef _RTEMS_SCORE_PRIORITYBITMAP_H
+# error "Never use <rtems/score/prioritybitmap.inl> directly; include <rtems/score/prioritybitmap.h> instead."
+#endif
+
+#ifndef _RTEMS_SCORE_PRIORITYBITMAP_INL
+#define _RTEMS_SCORE_PRIORITYBITMAP_INL
+
+/**
+ * @addtogroup ScorePriority<span style="background-color: #FF0000"> </span>
+ * @{
+ */
+
+#include <rtems/score/bitfield.h>
+
+/**
+ * This function returns the major portion of the_priority.
+ */
+
+RTEMS_INLINE_ROUTINE Priority_bit_map_Control _Priority_Major (
+ Priority_Control the_priority
+)
+{
+ return (Priority_bit_map_Control)( the_priority / 16 );
+}
+
+/**
+ * This function returns the minor portion of the_priority.
+ */
+
+RTEMS_INLINE_ROUTINE Priority_bit_map_Control _Priority_Minor (
+ Priority_Control the_priority
+)
+{
+ return (Priority_bit_map_Control)( the_priority % 16 );
+}
+
+#if ( CPU_USE_GENERIC_BITFIELD_CODE == TRUE )
+<span style="background-color: #FF0000"> </span>
+/**
+ * This function returns the mask associated with the major or minor
+ * number passed to it.
+ */
+<span style="background-color: #FF0000"> </span>
+RTEMS_INLINE_ROUTINE Priority_bit_map_Control _Priority_Mask (
+ uint32_t bit_number
+)
+{
+ return (Priority_bit_map_Control)(0x8000u >> bit_number);
+}
+<span style="background-color: #FF0000"> </span>
+/**
+ * This function returns the mask bit inverted.
+ */
+<span style="background-color: #FF0000"> </span>
+RTEMS_INLINE_ROUTINE Priority_bit_map_Control _Priority_Mask_invert (
+ uint32_t mask
+)
+{
+ return (Priority_bit_map_Control)(~mask);
+}
+
+<span style="background-color: #FF0000"> </span>
+/**
+ * This function translates the bit numbers returned by the bit scan
+ * of a priority bit field into something suitable for use as
+ * a major or minor component of a priority.
+ */
+<span style="background-color: #FF0000"> </span>
+RTEMS_INLINE_ROUTINE uint32_t _Priority_Bits_index (
+ uint32_t bit_number
+)
+{
+ return bit_number;
+}
+
+#endif
+
+/**
+ * Priority Queue implemented by bit map
+ */
+
+/**
+ * This routine performs the initialization necessary for this handler.
+ */
+
+RTEMS_INLINE_ROUTINE void _Priority_bit_map_Handler_initialization( void )
+{
+ int index;
+
+ _Priority_Major_bit_map = 0;
+ for ( index=0 ; index <16 ; index++ )
+ _Priority_Bit_map[ index ] = 0;
+}
+
+/**
+ * This routine uses the_priority_map to update the priority
+ * bit maps to indicate that a thread has been readied.
+ */
+
+RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
+ Priority_bit_map_Information *the_priority_map
+)
+{
+ *the_priority_map->minor |= the_priority_map->ready_minor;
+ _Priority_Major_bit_map |= the_priority_map->ready_major;
+}
+
+/**
+ * This routine uses the_priority_map to update the priority
+ * bit maps to indicate that a thread has been removed from the
+ * ready state.
+ */
+
+RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
+ Priority_bit_map_Information *the_priority_map
+)
+{
+ *the_priority_map->minor &= the_priority_map->block_minor;
+ if ( *the_priority_map->minor == 0 )
+ _Priority_Major_bit_map &= the_priority_map->block_major;
+}
+
+/**
+ * This function returns the priority of the highest priority
+ * ready thread.
+ */
+
+RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
+{
+ Priority_bit_map_Control minor;
+ Priority_bit_map_Control major;
+
+ _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
+ _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
+
+ return (_Priority_Bits_index( major ) << 4) +
+ _Priority_Bits_index( minor );
+}
+
+/**
+ * This routine initializes the_priority_map so that it
+ * contains the information necessary to manage a thread
+ * at new_priority.
+ */
+
+RTEMS_INLINE_ROUTINE void _Priority_bit_map_Initialize_information(
+ Priority_bit_map_Information *the_priority_map,
+ Priority_Control new_priority
+)
+{
+ Priority_bit_map_Control major;
+ Priority_bit_map_Control minor;
+ Priority_bit_map_Control mask;
+
+ major = _Priority_Major( new_priority );
+ minor = _Priority_Minor( new_priority );
+
+ the_priority_map->minor =
+ &_Priority_Bit_map[ _Priority_Bits_index(major) ];
+
+ mask = _Priority_Mask( major );
+ the_priority_map->ready_major = mask;
+ /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */
+ the_priority_map->block_major = (Priority_bit_map_Control)(~((uint32_t)mask));
+
+ mask = _Priority_Mask( minor );
+ the_priority_map->ready_minor = mask;
+ /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */
+ the_priority_map->block_minor = (Priority_bit_map_Control)(~((uint32_t)mask));
+}
+
+/**@}*/
+
+#endif
+/* end of include file */
</font>
<font color='#006600'>diff -u rtems/cpukit/score/inline/rtems/score/thread.inl:1.41 rtems/cpukit/score/inline/rtems/score/thread.inl:1.42
--- rtems/cpukit/score/inline/rtems/score/thread.inl:1.41 Mon Jul 26 20:48:46 2010
+++ rtems/cpukit/score/inline/rtems/score/thread.inl Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -127,7 +127,7 @@
</font> RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
<font color='#880000'>- _Thread_Ready_chain[ _Priority_Get_highest() ].first;
</font><font color='#000088'>+ _Thread_Ready_chain[ _Priority_bit_map_Get_highest() ].first;
</font> }
/**
<font color='#006600'>diff -u rtems/cpukit/score/preinstall.am:1.23 rtems/cpukit/score/preinstall.am:1.24
--- rtems/cpukit/score/preinstall.am:1.23 Fri Jul 16 03:31:34 2010
+++ rtems/cpukit/score/preinstall.am Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -107,6 +107,10 @@
</font> $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/priority.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/priority.h
<font color='#000088'>+$(PROJECT_INCLUDE)/rtems/score/prioritybitmap.h: include/rtems/score/prioritybitmap.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/prioritybitmap.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/prioritybitmap.h
+
</font> $(PROJECT_INCLUDE)/rtems/score/stack.h: include/rtems/score/stack.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/stack.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/stack.h
<font color='#997700'>@@ -237,6 +241,10 @@
</font> $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/priority.inl
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/priority.inl
<font color='#000088'>+$(PROJECT_INCLUDE)/rtems/score/prioritybitmap.inl: inline/rtems/score/prioritybitmap.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/prioritybitmap.inl
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/prioritybitmap.inl
+
</font> $(PROJECT_INCLUDE)/rtems/score/stack.inl: inline/rtems/score/stack.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/stack.inl
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/stack.inl
<font color='#006600'>diff -u rtems/cpukit/score/src/threadchangepriority.c:1.12 rtems/cpukit/score/src/threadchangepriority.c:1.13
--- rtems/cpukit/score/src/threadchangepriority.c:1.12 Sun Dec 21 23:52:32 2008
+++ rtems/cpukit/score/src/threadchangepriority.c Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -120,7 +120,7 @@
</font> */
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
<font color='#880000'>- _Priority_Add_to_bit_map( &the_thread->Priority_map );
</font><font color='#000088'>+ _Priority_bit_map_Add( &the_thread->Priority_map );
</font> if ( prepend_it )
_Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
else
<font color='#006600'>diff -u rtems/cpukit/score/src/threadclearstate.c:1.10 rtems/cpukit/score/src/threadclearstate.c:1.11
--- rtems/cpukit/score/src/threadclearstate.c:1.10 Sun Nov 29 07:51:52 2009
+++ rtems/cpukit/score/src/threadclearstate.c Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -67,7 +67,7 @@
</font>
if ( _States_Is_ready( current_state ) ) {
<font color='#880000'>- _Priority_Add_to_bit_map( &the_thread->Priority_map );
</font><font color='#000088'>+ _Priority_bit_map_Add( &the_thread->Priority_map );
</font>
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
<font color='#006600'>diff -u rtems/cpukit/score/src/threadready.c:1.7 rtems/cpukit/score/src/threadready.c:1.8
--- rtems/cpukit/score/src/threadready.c:1.7 Sun Dec 21 23:52:32 2008
+++ rtems/cpukit/score/src/threadready.c Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -61,7 +61,7 @@
</font>
the_thread->current_state = STATES_READY;
<font color='#880000'>- _Priority_Add_to_bit_map( &the_thread->Priority_map );
</font><font color='#000088'>+ _Priority_bit_map_Add( &the_thread->Priority_map );
</font>
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
<font color='#006600'>diff -u rtems/cpukit/score/src/threadresume.c:1.10 rtems/cpukit/score/src/threadresume.c:1.11
--- rtems/cpukit/score/src/threadresume.c:1.10 Thu Jun 17 21:56:26 2010
+++ rtems/cpukit/score/src/threadresume.c Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -69,7 +69,7 @@
</font>
if ( _States_Is_ready( current_state ) ) {
<font color='#880000'>- _Priority_Add_to_bit_map( &the_thread->Priority_map );
</font><font color='#000088'>+ _Priority_bit_map_Add( &the_thread->Priority_map );
</font>
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
<font color='#006600'>diff -u rtems/cpukit/score/src/threadsetpriority.c:1.4 rtems/cpukit/score/src/threadsetpriority.c:1.5
--- rtems/cpukit/score/src/threadsetpriority.c:1.4 Wed Jan 26 23:57:05 2005
+++ rtems/cpukit/score/src/threadsetpriority.c Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -52,5 +52,8 @@
</font> the_thread->current_priority = new_priority;
the_thread->ready = &_Thread_Ready_chain[ new_priority ];
<font color='#880000'>- _Priority_Initialize_information( &the_thread->Priority_map, new_priority );
</font><font color='#000088'>+ _Priority_bit_map_Initialize_information(<span style="background-color: #FF0000"> </span>
+ &the_thread->Priority_map,<span style="background-color: #FF0000"> </span>
+ new_priority<span style="background-color: #FF0000"> </span>
+ );
</font> }
<font color='#006600'>diff -u rtems/cpukit/score/src/threadsetstate.c:1.6 rtems/cpukit/score/src/threadsetstate.c:1.7
--- rtems/cpukit/score/src/threadsetstate.c:1.6 Sun Dec 21 23:52:32 2008
+++ rtems/cpukit/score/src/threadsetstate.c Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -70,7 +70,7 @@
</font> if ( _Chain_Has_only_one_node( ready ) ) {
_Chain_Initialize_empty( ready );
<font color='#880000'>- _Priority_Remove_from_bit_map( &the_thread->Priority_map );
</font><font color='#000088'>+ _Priority_bit_map_Remove( &the_thread->Priority_map );
</font>
} else
_Chain_Extract_unprotected( &the_thread->Object.Node );
<font color='#006600'>diff -u rtems/cpukit/score/src/threadsettransient.c:1.5 rtems/cpukit/score/src/threadsettransient.c:1.6
--- rtems/cpukit/score/src/threadsettransient.c:1.5 Wed Jan 26 23:57:05 2005
+++ rtems/cpukit/score/src/threadsettransient.c Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -66,7 +66,7 @@
</font> if ( _Chain_Has_only_one_node( ready ) ) {
_Chain_Initialize_empty( ready );
<font color='#880000'>- _Priority_Remove_from_bit_map( &the_thread->Priority_map );
</font><font color='#000088'>+ _Priority_bit_map_Remove( &the_thread->Priority_map );
</font>
} else
_Chain_Extract_unprotected( &the_thread->Object.Node );
<font color='#006600'>diff -u rtems/cpukit/score/src/threadsuspend.c:1.7 rtems/cpukit/score/src/threadsuspend.c:1.8
--- rtems/cpukit/score/src/threadsuspend.c:1.7 Thu Jun 17 21:56:26 2010
+++ rtems/cpukit/score/src/threadsuspend.c Thu Jul 29 12:52:10 2010
</font><font color='#997700'>@@ -68,7 +68,7 @@
</font> if ( _Chain_Has_only_one_node( ready ) ) {
_Chain_Initialize_empty( ready );
<font color='#880000'>- _Priority_Remove_from_bit_map( &the_thread->Priority_map );
</font><font color='#000088'>+ _Priority_bit_map_Remove( &the_thread->Priority_map );
</font>
} else
_Chain_Extract_unprotected( &the_thread->Object.Node );
</pre>
<p> </p>
<a name='cs5'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
* porting/prioritybitmap.t: Refactoring of priority handling, to
isolate the bitmap implementation of priorities in the supercore so
that priority management is a little more modular. This change is in
anticipation of scheduler implementations that can select how they
manage tracking priority levels / finding the highest priority ready
task. Note that most of the changes here are simple renaming, to
clarify the use of the bitmap-based priority management.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/doc/ChangeLog.diff?r1=text&tr1=1.283&r2=text&tr2=1.284&diff_format=h">M</a></td><td width='1%'>1.284</td><td width='100%'>doc/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/doc/porting/prioritybitmap.t.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>doc/porting/prioritybitmap.t</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/doc/ChangeLog:1.283 rtems/doc/ChangeLog:1.284
--- rtems/doc/ChangeLog:1.283 Mon Jun 28 19:39:27 2010
+++ rtems/doc/ChangeLog Thu Jul 29 12:52:18 2010
</font><font color='#997700'>@@ -1,3 +1,14 @@
</font><font color='#000088'>+2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
+
+ PR 1635/cpukit
+ * porting/prioritybitmap.t: Refactoring of priority handling, to
+ isolate the bitmap implementation of priorities in the supercore so
+ that priority management is a little more modular. This change is in
+ anticipation of scheduler implementations that can select how they
+ manage tracking priority levels / finding the highest priority ready
+ task. Note that most of the changes here are simple renaming, to
+ clarify the use of the bitmap-based priority management.
+
</font> 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1573/cpukit
<font color='#006600'>diff -u rtems/doc/porting/prioritybitmap.t:1.6 rtems/doc/porting/prioritybitmap.t:1.7
--- rtems/doc/porting/prioritybitmap.t:1.6 Thu Jan 17 15:47:45 2002
+++ rtems/doc/porting/prioritybitmap.t Thu Jul 29 12:52:18 2010
</font><font color='#997700'>@@ -44,7 +44,7 @@
</font> at the priority.
<font color='#880000'>-@section _Priority_Bit_map_control Type
</font><font color='#000088'>+@section _Priority_bit_map_Control Type
</font>
The @code{_Priority_Bit_map_Control} type is the fundamental data type of the
priority bit map array used to determine which priorities have ready
<font color='#997700'>@@ -59,7 +59,7 @@
</font>
The _CPU_Bitfield_Find_first_bit routine sets _output to the bit number of
the first bit set in @code{_value}. @code{_value} is of CPU dependent type
<font color='#880000'>-@code{Priority_Bit_map_control}. A stub version of this routine is as follows:
</font><font color='#000088'>+@code{Priority_bit_map_Control}. A stub version of this routine is as follows:
</font>
@example
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \
</pre>
<p> </p>
<a name='cs6'></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>2010-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems-bin2c.c: Add -C and -H options.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/build/ChangeLog.diff?r1=text&tr1=1.38&r2=text&tr2=1.39&diff_format=h">M</a></td><td width='1%'>1.39</td><td width='100%'>tools/build/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/tools/build/rtems-bin2c.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>tools/build/rtems-bin2c.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/tools/build/ChangeLog:1.38 rtems/tools/build/ChangeLog:1.39
--- rtems/tools/build/ChangeLog:1.38 Fri Mar 12 10:27:00 2010
+++ rtems/tools/build/ChangeLog Thu Jul 29 12:12:38 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * rtems-bin2c.c: Add -C and -H options.
+
</font> 2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* eolstrip.c: Readdress use of ctype methods per recommendation from
<font color='#006600'>diff -u rtems/tools/build/rtems-bin2c.c:1.5 rtems/tools/build/rtems-bin2c.c:1.6
--- rtems/tools/build/rtems-bin2c.c:1.5 Thu Dec 10 08:23:57 2009
+++ rtems/tools/build/rtems-bin2c.c Thu Jul 29 12:12:38 2010
</font><font color='#997700'>@@ -38,6 +38,8 @@
</font> int usestatic = 0;
int verbose = 0;
int zeroterminated = 0;
<font color='#000088'>+int createC = 1;
+int createH = 1;
</font>
int myfgetc(FILE *f)
{
<font color='#997700'>@@ -91,18 +93,23 @@
</font> fprintf(stderr, "cannot open %s for reading\n", ifname);
exit(1);
}
<font color='#000088'>+<span style="background-color: #FF0000"> </span>
+ if ( createC ) {
</font> ocfile = fopen(ocname, "wb");
if (ocfile == NULL) {
fprintf(stderr, "cannot open %s for writing\n", ocname);
exit(1);
}
<font color='#880000'>-
</font><font color='#000088'>+ }
+<span style="background-color: #FF0000"> </span>
+ if ( createH ) {
</font> ohfile = fopen(ohname, "wb");
if (ohfile == NULL) {
fprintf(stderr, "cannot open %s for writing\n", ohname);
exit(1);
}
<font color='#880000'>-
</font><font color='#000088'>+ }
+<span style="background-color: #FF0000"> </span>
</font> /* find basename */
if ((cp = strrchr(ifname, '/')) != NULL)
++cp;
<font color='#997700'>@@ -117,6 +124,7 @@
</font> if (!isalnum(*p))
*p = '_';
<font color='#000088'>+ if ( createC ) {
</font> /* print C file header */
fprintf(
ocfile,
<font color='#997700'>@@ -161,11 +169,13 @@
</font> buf,
buf
);
<font color='#880000'>-
</font><font color='#000088'>+ } /* createC */
+<span style="background-color: #FF0000"> </span>
</font> /*****************************************************************/
/****** END OF C FILE *****/
/*****************************************************************/
<font color='#000088'>+ if ( createH ) {
</font> /* print H file header */
fprintf(
ohfile,
<font color='#997700'>@@ -208,21 +218,22 @@
</font> "\n"
"#endif\n"
);
<font color='#880000'>-
</font><font color='#000088'>+ } /* createH */
+<span style="background-color: #FF0000"> </span>
</font> /*****************************************************************/
/****** END OF H FILE *****/
/*****************************************************************/
fclose(ifile);
<font color='#880000'>- fclose(ocfile);
- fclose(ohfile);
</font><font color='#000088'>+ if ( createC ) { fclose(ocfile); }
+ if ( createH ) { fclose(ohfile); }
</font> }
void usage(void)
{
fprintf(
stderr,
<font color='#880000'>- "usage: bin2c [-csvz] <input_file> <output_file>\n"
</font><font color='#000088'>+ "usage: bin2c [-csvzCH] <input_file> <output_file>\n"
</font> " <input_file> is the binary file to convert\n"
" <output_file> should not have a .c or .h extension\n"
"\n"
<font color='#997700'>@@ -230,6 +241,8 @@
</font> " -s - do use static in declaration\n"
" -v - verbose\n"
" -z - add zero terminator\n"
<font color='#000088'>+ " -H - create c-header only\n"
+ " -C - create c-source file only\n"
</font> );
exit(1);
}
<font color='#997700'>@@ -253,6 +266,16 @@
</font> zeroterminated = 1;
--argc;
++argv;
<font color='#000088'>+ } else if (!strcmp(argv[1], "-C")) {
+ createH = 0;
+ createC = 1;
+ --argc;
+ ++argv;
+ } else if (!strcmp(argv[1], "-H")) {
+ createC = 0;
+ createH = 1;
+ --argc;
+ ++argv;
</font> } else {
usage();
}
</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>