summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadhandler.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2011-05-26 18:07:07 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2011-05-26 18:07:07 +0000
commitd4dc7c8196355f08044e67a3f5c1e19485f17ff1 (patch)
tree77437e47925428753b579caadf1e7b61f524ee4d /cpukit/score/src/threadhandler.c
parentFix broken cvs id. (diff)
downloadrtems-d4dc7c8196355f08044e67a3f5c1e19485f17ff1.tar.bz2
2011-05-26 Jennifer Averett <Jennifer.Averett@OARcorp.com>
PR 1796/cpukit * sapi/src/exshutdown.c, score/include/rtems/score/percpu.h, score/include/rtems/score/smp.h, score/src/smp.c, score/src/threaddispatch.c, score/src/threadhandler.c: Added SMP interprocess communications.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/threadhandler.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c
index 37185ad745..84fe9c10d3 100644
--- a/cpukit/score/src/threadhandler.c
+++ b/cpukit/score/src/threadhandler.c
@@ -2,7 +2,7 @@
* Thread Handler
*
*
- * COPYRIGHT (c) 1989-2009.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -51,6 +51,11 @@
#define EXECUTE_GLOBAL_CONSTRUCTORS
#endif
+#if defined(RTEMS_SMP)
+ #include <rtems/score/smp.h>
+#endif
+
+
/*PAGE
*
* _Thread_Handler
@@ -138,8 +143,15 @@ void _Thread_Handler( void )
*/
if (!doneCons) /* && (volatile void *)_init) */ {
INIT_NAME ();
+
+ #if defined(RTEMS_SMP)
+ _Thread_Disable_dispatch();
+ _SMP_Request_other_cores_to_perform_first_context_switch();
+ _Thread_Enable_dispatch();
+ #endif
+
}
- #endif
+ #endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
executing->Wait.return_argument =