[rtems commit] sapi: Moved smp initialization and added cpuset initilization.
Jennifer Averett
jennifer at rtems.org
Fri Mar 7 15:08:50 UTC 2014
Module: rtems
Branch: master
Commit: 039a189de179915de94bbabaa37d93c663dcaefc
Changeset: http://git.rtems.org/rtems/commit/?id=039a189de179915de94bbabaa37d93c663dcaefc
Author: Jennifer Averett <jennifer.averett at oarcorp.com>
Date: Mon Jan 27 13:55:58 2014 -0600
sapi: Moved smp initialization and added cpuset initilization.
SMP must be initialized in order to know the current set of
cores available. Without this, you cannot initialize the
default cpu_set_t associated with Classic API tasks and
POSIX threads.
---
cpukit/sapi/src/exinit.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c
index ee1c7fd..73ebea9 100644
--- a/cpukit/sapi/src/exinit.c
+++ b/cpukit/sapi/src/exinit.c
@@ -40,6 +40,7 @@
#include <rtems/score/apiext.h>
#include <rtems/score/apimutex.h>
#include <rtems/score/copyrt.h>
+#include <rtems/score/cpusetimpl.h>
#include <rtems/score/heap.h>
#include <rtems/score/interr.h>
#include <rtems/score/isr.h>
@@ -134,6 +135,10 @@ void rtems_initialize_data_structures(void)
_MPCI_Handler_initialization( RTEMS_TIMEOUT );
#endif
+ _SMP_Handler_initialize();
+
+ _CPU_set_Handler_initialization();
+
/* MANAGERS */
_RTEMS_API_Initialize();
@@ -146,8 +151,6 @@ void rtems_initialize_data_structures(void)
_POSIX_API_Initialize();
#endif
- _SMP_Handler_initialize();
-
_System_state_Set( SYSTEM_STATE_BEFORE_MULTITASKING );
/*
More information about the vc
mailing list