summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting
diff options
context:
space:
mode:
authorMark Wenning <wenning@us.ibm.com>2011-06-29 17:30:28 -0500
committerMark W. Wenning <wenning@us.ibm.com>2011-07-14 15:38:11 -0500
commit5530b7609c0351deb5d707c5950a56309842a325 (patch)
tree2382ef9aa2e3cfebe33d6d1737647be7325a94e0 /src/usr/targeting
parent2583b46750d1e1c062763eff204baa1460e7ae90 (diff)
downloadtalos-hostboot-5530b7609c0351deb5d707c5950a56309842a325.tar.gz
talos-hostboot-5530b7609c0351deb5d707c5950a56309842a325.zip
InitService changes for LLDD 0.7
- implement task flags - add barrier to unit tests - startTask returns errlog handle - factor taskargs.H - add STRICT mode and fix results - add tasktest2 to replace example.C - add cxxtest as an explicit task at the end - cleanup todo's - post-review fixes - merge problem Change-Id: I073bd154a64013553c1863f9eb674cda2bf40a8d Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/187 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Diffstat (limited to 'src/usr/targeting')
-rw-r--r--src/usr/targeting/targetservice.C16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/usr/targeting/targetservice.C b/src/usr/targeting/targetservice.C
index de9acd0ab..305e96ca7 100644
--- a/src/usr/targeting/targetservice.C
+++ b/src/usr/targeting/targetservice.C
@@ -17,6 +17,7 @@
// Other components
#include <sys/task.h>
#include <trace/interface.H>
+#include <initservice/taskargs.H>
// This component
#include <targeting/targetservice.H>
@@ -30,24 +31,30 @@
namespace TARGETING
{
+
#define TARG_NAMESPACE "TARGETING::"
+
//******************************************************************************
// _start
//******************************************************************************
#define TARG_CLASS ""
+
/**
* @brief Entry point for initialization service to initialize the targeting
- * code
+ * code
*
- * @note: Link register is configured to automatically invoke task_end() when
+ * @note: Link register is configured to automatically invoke task_end() when
* this routine returns
*/
extern "C"
void _start(void* io_pArgs)
{
+ INITSERVICE::TaskArgs::TaskArgs *pTaskArgs =
+ reinterpret_cast<INITSERVICE::TaskArgs::TaskArgs *>(io_pArgs);
+
#define TARG_FN "_start(...)"
TARG_ENTER();
@@ -57,6 +64,11 @@ void _start(void* io_pArgs)
TARG_EXIT();
+ if ( pTaskArgs )
+ {
+ pTaskArgs->waitChildSync();
+ }
+
task_end();
#undef TARG_FN
OpenPOWER on IntegriCloud