<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-04-27)</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>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-04-27 Jennifer Averett <Jennifer.Averett@OARcorp.com>

        PR 1784
        * sapi/src/exinit.c, score/Makefile.am, score/preinstall.am,
        score/include/rtems/bspsmp.h, score/src/percpu.c, score/src/smp.c,
        score/src/threadcreateidle.c: Split bspsmp.h into two files smp.h and
        bspsmp.h
        * score/include/rtems/score/smp.h: New file.
</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.2805&r2=text&tr2=1.2806&diff_format=h">M</a></td><td width='1%'>1.2806</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.58&r2=text&tr2=1.59&diff_format=h">M</a></td><td width='1%'>1.59</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.96&r2=text&tr2=1.97&diff_format=h">M</a></td><td width='1%'>1.97</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/bspsmp.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/include/rtems/bspsmp.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/score/smp.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/smp.h</font></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.28&r2=text&tr2=1.29&diff_format=h">M</a></td><td width='1%'>1.29</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/percpu.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/percpu.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/smp.c.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/src/smp.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/src/threadcreateidle.c.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/src/threadcreateidle.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2805 rtems/cpukit/ChangeLog:1.2806
--- rtems/cpukit/ChangeLog:1.2805       Mon Apr 25 10:06:41 2011
+++ rtems/cpukit/ChangeLog      Wed Apr 27 12:18:58 2011
</font><font color='#997700'>@@ -1,3 +1,12 @@
</font><font color='#000088'>+2011-04-27    Jennifer Averett <Jennifer.Averett@OARcorp.com>
+
+       PR 1784
+       * sapi/src/exinit.c, score/Makefile.am, score/preinstall.am,
+       score/include/rtems/bspsmp.h, score/src/percpu.c, score/src/smp.c,
+       score/src/threadcreateidle.c: Split bspsmp.h into two files smp.h and
+       bspsmp.h
+       * score/include/rtems/score/smp.h: New file.
+
</font> 2011-04-25        Jennifer Averett <Jennifer.Averett@OARcorp.com>
 
        * score/include/rtems/bspsmp.h: Did some prototype cleanup.

<font color='#006600'>diff -u rtems/cpukit/sapi/src/exinit.c:1.58 rtems/cpukit/sapi/src/exinit.c:1.59
--- rtems/cpukit/sapi/src/exinit.c:1.58 Mon Apr  4 11:40:00 2011
+++ rtems/cpukit/sapi/src/exinit.c      Wed Apr 27 12:18:59 2011
</font><font color='#997700'>@@ -58,7 +58,7 @@
</font> #endif
 
 #if defined(RTEMS_SMP)
<font color='#880000'>-  #include <rtems/bspsmp.h>
</font><font color='#000088'>+  #include <rtems/score/smp.h>
</font>   #include <rtems/score/percpu.h>
 #endif
 

<font color='#006600'>diff -u rtems/cpukit/score/Makefile.am:1.96 rtems/cpukit/score/Makefile.am:1.97
--- rtems/cpukit/score/Makefile.am:1.96 Thu Apr 21 14:05:14 2011
+++ rtems/cpukit/score/Makefile.am      Wed Apr 27 12:18:59 2011
</font><font color='#997700'>@@ -37,7 +37,7 @@
</font>     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 color='#880000'>-    include/rtems/score/smplock.h
</font><font color='#000088'>+    include/rtems/score/smplock.h include/rtems/score/smp.h
</font> 
 if HAS_PTHREADS
 include_rtems_score_HEADERS += include/rtems/score/corespinlock.h \

<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/bspsmp.h:1.3 rtems/cpukit/score/include/rtems/bspsmp.h:1.4
--- rtems/cpukit/score/include/rtems/bspsmp.h:1.3       Mon Apr 25 10:06:41 2011
+++ rtems/cpukit/score/include/rtems/bspsmp.h   Wed Apr 27 12:18:59 2011
</font><font color='#997700'>@@ -44,44 +44,9 @@
</font> extern "C" {
 #endif
 
<font color='#880000'>-/**
- *  This defines the bit which indicates the interprocessor interrupt
- *  has been requested so that RTEMS will reschedule on this CPU
- *  because the currently executing thread needs to be switched out.
- */
-#define RTEMS_BSP_SMP_CONTEXT_SWITCH_NECESSARY  0x01
-
-/**
- *  This defines the bit which indicates the interprocessor interrupt
- *  has been requested so that RTEMS will reschedule on this CPU
- *  because the currently executing thread has been sent a signal.
- */
-#define RTEMS_BSP_SMP_SIGNAL_TO_SELF            0x02
-
-/**
- *  This defines the bit which indicates the interprocessor interrupt
- *  has been requested so that this CPU will be shutdown.  This is done
- *  as part of rtems_executive_shutdown().
- */
-#define RTEMS_BSP_SMP_SHUTDOWN                  0x04
-
-/**
- *  This defines the bit which indicates the interprocessor interrupt
- *  has been requested that the receiving CPU needs to perform a context
- *  switch to the first task.
- */
-#define RTEMS_BSP_SMP_FIRST_TASK                0x08
</font> 
 #ifndef ASM
 /**
<font color='#880000'>- *  @brief Number of CPUs in SMP System
- *
- *  This variable is set during the SMP initialization sequence to
- *  indicate the number of CPUs in this system.
- */
-SCORE_EXTERN uint32_t _SMP_Processor_count;
-
-/**
</font>  *  @brief Maximum Number of CPUs in SMP System
  *
  *  This variable is set during the SMP initialization sequence to
<font color='#997700'>@@ -131,32 +96,6 @@
</font> );
 
 /**
<font color='#880000'>- *  @brief Make Request of Others CPUs
- *
- *  This method is invoked by RTEMS when it needs to make a request
- *  of the other CPUs.  It should be implemented using some type of
- *  interprocessor interrupt. CPUs not including the originating<span style="background-color: #FF0000"> </span>
- *  CPU should receive the message.
- *
- *  @param [in] message is message to send
- */
-void bsp_smp_broadcast_message(
-  uint32_t  message
-);
-
-/**
- *  @brief Make Request of Others CPUs
- *
- *  This method is invoked by XXX when it needs to make a request
- *  of the other CPUs.<span style="background-color: #FF0000">  </span>
- *
- *  @param [in] message is message to send
- */
-void rtems_smp_broadcast_message(
-  uint32_t  message
-);
-
-/**
</font>  *  @brief Generate a Interprocessor Broadcast Interrupt
  *
  *  This method is invoked when RTEMS wants to let all of the other
<font color='#997700'>@@ -230,6 +169,12 @@
</font>  */
 void rtems_smp_process_interrupt(void);
 
<font color='#000088'>+void bsp_smp_wait_for(
+  volatile unsigned int *address,
+  unsigned int           desired,
+  int                    maximum_usecs
+);
+
</font> #endif
 
 #ifdef __cplusplus

<font color='#006600'>diff -u /dev/null rtems/cpukit/score/include/rtems/score/smp.h:1.1
--- /dev/null   Wed Apr 27 13:11:58 2011
+++ rtems/cpukit/score/include/rtems/score/smp.h        Wed Apr 27 12:18:59 2011
</font><font color='#997700'>@@ -0,0 +1,112 @@
</font><font color='#000088'>+/**
+ *  @file  rtems/score/smp.h
+ *
+ *  This include file defines the interface to the SuperCore
+ *  SMP support that is used internally to RTEMS.
+ */
+
+/*
+ *  COPYRIGHT (c) 1989-2011.
+ *  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_SMP_H
+#define _RTEMS_SCORE_SMP_H
+
+#if defined (RTEMS_SMP)
+#include <rtems/score/percpu.h>
+
+/**
+ *  @defgroup SuperCore SMP Support
+ *
+ *  This defines the interface of the SuperCore support
+ *  code for SMP support.
+ */
+
+/**@{*/
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ *  This defines the bit which indicates the interprocessor interrupt
+ *  has been requested so that RTEMS will reschedule on this CPU
+ *  because the currently executing thread needs to be switched out.
+ */
+#define RTEMS_BSP_SMP_CONTEXT_SWITCH_NECESSARY  0x01
+
+/**
+ *  This defines the bit which indicates the interprocessor interrupt
+ *  has been requested so that RTEMS will reschedule on this CPU
+ *  because the currently executing thread has been sent a signal.
+ */
+#define RTEMS_BSP_SMP_SIGNAL_TO_SELF            0x02
+
+/**
+ *  This defines the bit which indicates the interprocessor interrupt
+ *  has been requested so that this CPU will be shutdown.  This is done
+ *  as part of rtems_executive_shutdown().
+ */
+#define RTEMS_BSP_SMP_SHUTDOWN                  0x04
+
+/**
+ *  This defines the bit which indicates the interprocessor interrupt
+ *  has been requested that the receiving CPU needs to perform a context
+ *  switch to the first task.
+ */
+#define RTEMS_BSP_SMP_FIRST_TASK                0x08
+
+#ifndef ASM
+/**
+ *  @brief Number of CPUs in SMP System
+ *
+ *  This variable is set during the SMP initialization sequence to
+ *  indicate the number of CPUs in this system.
+ */
+SCORE_EXTERN uint32_t _SMP_Processor_count;
+
+/**
+ *  @brief Make Request of Others CPUs
+ *
+ *  This method is invoked by RTEMS when it needs to make a request
+ *  of the other CPUs.  It should be implemented using some type of
+ *  interprocessor interrupt. CPUs not including the originating<span style="background-color: #FF0000"> </span>
+ *  CPU should receive the message.
+ *
+ *  @param [in] message is message to send
+ */
+void _SMP_Broadcast_message(
+  uint32_t  message
+);
+
+/**
+ *  @brief Request Dispatch on Other Cores
+ *
+ *  Send message to other cores requesting them to perform
+ *  a thread dispatch operation.
+ */
+void _SMP_Request_other_cores_to_dispatch(void);
+
+/**
+ *  @Brief Request Other Cores to Shutdown
+ *
+ *  Send message to other cores requesting them to shutdown.
+ */
+void _SMP_Request_other_cores_to_shutdown(void);
+
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+#endif
+/* end of include file */
</font>
<font color='#006600'>diff -u rtems/cpukit/score/preinstall.am:1.28 rtems/cpukit/score/preinstall.am:1.29
--- rtems/cpukit/score/preinstall.am:1.28       Mon Apr  4 13:44:16 2011
+++ rtems/cpukit/score/preinstall.am    Wed Apr 27 12:18:59 2011
</font><font color='#997700'>@@ -199,6 +199,10 @@
</font>   $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/smplock.h
 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/smplock.h
 
<font color='#000088'>+$(PROJECT_INCLUDE)/rtems/score/smp.h: include/rtems/score/smp.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
+       $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/smp.h
+PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/smp.h
+
</font> if HAS_PTHREADS
 $(PROJECT_INCLUDE)/rtems/score/corespinlock.h: include/rtems/score/corespinlock.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/corespinlock.h

<font color='#006600'>diff -u rtems/cpukit/score/src/percpu.c:1.4 rtems/cpukit/score/src/percpu.c:1.5
--- rtems/cpukit/score/src/percpu.c:1.4 Mon Apr  4 11:40:00 2011
+++ rtems/cpukit/score/src/percpu.c     Wed Apr 27 12:18:59 2011
</font><font color='#997700'>@@ -19,7 +19,7 @@
</font> #include <rtems/score/wkspace.h>
 #include <rtems/score/wkspace.h>
 #include <rtems/config.h>
<font color='#880000'>-#include <rtems/bspsmp.h>
</font><font color='#000088'>+#include <rtems/score/smp.h>
</font> #include <string.h>
 
 #if defined(RTEMS_SMP)

<font color='#006600'>diff -u rtems/cpukit/score/src/smp.c:1.2 rtems/cpukit/score/src/smp.c:1.3
--- rtems/cpukit/score/src/smp.c:1.2    Thu Apr 21 14:05:15 2011
+++ rtems/cpukit/score/src/smp.c        Wed Apr 27 12:18:59 2011
</font><font color='#997700'>@@ -15,6 +15,7 @@
</font> 
 #include <rtems/system.h>
 #include <rtems/bspsmp.h>
<font color='#000088'>+#include <rtems/score/smp.h>
</font> #include <rtems/score/thread.h>
 
 #if defined(RTEMS_SMP)

<font color='#006600'>diff -u rtems/cpukit/score/src/threadcreateidle.c:1.17 rtems/cpukit/score/src/threadcreateidle.c:1.18
--- rtems/cpukit/score/src/threadcreateidle.c:1.17      Wed Mar 16 15:05:06 2011
+++ rtems/cpukit/score/src/threadcreateidle.c   Wed Apr 27 12:18:59 2011
</font><font color='#997700'>@@ -30,7 +30,7 @@
</font> #include <rtems/score/userext.h>
 #include <rtems/score/wkspace.h>
 #include <rtems/config.h>
<font color='#880000'>-#include <rtems/bspsmp.h>
</font><font color='#000088'>+#include <rtems/score/smp.h>
</font> 
 static inline void _Thread_Create_idle_helper(
   uint32_t name_u32,
</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>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-04-27 Jennifer Averett <Jennifer.Averett@OARcorp.com>

        PR 1784
        * sptests/spsize/size.c: Split bspsmp.h into two files smp.h and
        bspsmp.h
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/ChangeLog.diff?r1=text&tr1=1.182&r2=text&tr2=1.183&diff_format=h">M</a></td><td width='1%'>1.183</td><td width='100%'>testsuites/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spsize/size.c.diff?r1=text&tr1=1.72&r2=text&tr2=1.73&diff_format=h">M</a></td><td width='1%'>1.73</td><td width='100%'>testsuites/sptests/spsize/size.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/ChangeLog:1.182 rtems/testsuites/ChangeLog:1.183
--- rtems/testsuites/ChangeLog:1.182    Thu Apr 21 14:05:33 2011
+++ rtems/testsuites/ChangeLog  Wed Apr 27 12:20:35 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-04-27    Jennifer Averett <Jennifer.Averett@OARcorp.com>
+
+       PR 1784
+       * sptests/spsize/size.c: Split bspsmp.h into two files smp.h and
+       bspsmp.h
+
</font> 2011-04-21        Jennifer Averett <Jennifer.Averett@OARcorp.com
 
        PR 1777/cpukit

<font color='#006600'>diff -u rtems/testsuites/sptests/spsize/size.c:1.72 rtems/testsuites/sptests/spsize/size.c:1.73
--- rtems/testsuites/sptests/spsize/size.c:1.72 Wed Mar 16 15:08:39 2011
+++ rtems/testsuites/sptests/spsize/size.c      Wed Apr 27 12:20:35 2011
</font><font color='#997700'>@@ -48,6 +48,9 @@
</font> #include <rtems/score/tod.h>
 #include <rtems/score/userext.h>
 #include <rtems/score/wkspace.h>
<font color='#000088'>+#if defined(RTEMS_SMP)
+  #include <rtems/score/smp.h>
+#endif
</font> 
 #include <stdlib.h>
 #include <stdio.h>
</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>