summaryrefslogtreecommitdiffstats
path: root/src/usr/initservice/initsvcunittesttask2/tasktest2.C
blob: 844e690190142bf4a949a56a7ae5dce0654678cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/****************************************************************************
 * $IBMCopyrightBlock:
 * 
 *  IBM Confidential
 * 
 *  Licensed Internal Code Source Materials
 * 
 *  IBM HostBoot Licensed Internal Code
 * 
 *  (C) Copyright IBM Corp. 2011
 * 
 *  The source code for this program is not published or other-
 *  wise divested of its trade secrets, irrespective of what has
 *  been deposited with the U.S. Copyright Office.
 * $
****************************************************************************/

/**
 *  @file tasktest2.H
 *
  */

/******************************************************************************/
// Includes
/******************************************************************************/
#include <stdint.h>
#include <sys/task.h>
#include <trace/interface.H>
#include <initservice/taskargs.H>

#include "tasktest2.H"

namespace   INITSERVICE
{


/******************************************************************************/
// Globals/Constants
/******************************************************************************/

/******************************************************************************/
// InitService::getTheInstance return the only instance
/******************************************************************************/
InitSvcTaskTest2& InitSvcTaskTest2::getTheInstance()
{
    return Singleton<InitSvcTaskTest2>::instance();
}


/**
 * @brief   _start() - task entry point for this module
 *
 */
extern "C"
void _start( void *io_pArgs )
{
    TaskArgs::TaskArgs *pTaskArgs = (TaskArgs::TaskArgs *)io_pArgs;

    //  create an instance of InitService
    InitSvcTaskTest2::InitSvcTaskTest2& tt = InitSvcTaskTest2::getTheInstance();

    // initialize the base modules in Hostboot.
    tt.init( io_pArgs );

    if  ( pTaskArgs )
    {
        pTaskArgs->waitChildSync();
    }

    task_end();
}

void    InitSvcTaskTest2::init( void *i_args )
{

    return;
};

} // namespace
OpenPOWER on IntegriCloud