diff options
Diffstat (limited to 'src/usr/initservice/extinitsvc')
-rw-r--r-- | src/usr/initservice/extinitsvc/extinitsvc.C | 3 | ||||
-rw-r--r-- | src/usr/initservice/extinitsvc/extinitsvctasks.H | 102 |
2 files changed, 86 insertions, 19 deletions
diff --git a/src/usr/initservice/extinitsvc/extinitsvc.C b/src/usr/initservice/extinitsvc/extinitsvc.C index b5ab6b64e..03bae9364 100644 --- a/src/usr/initservice/extinitsvc/extinitsvc.C +++ b/src/usr/initservice/extinitsvc/extinitsvc.C @@ -204,6 +204,9 @@ void ExtInitSvc::init( void *i_ptr ) ENTER_MRK "Run Unit Tests (if libcxxtests.so is present): %s", l_pcxxtask->taskname ); + // If the test task does not exist then don't run it. + if(!VFS::module_exists(l_pcxxtask->taskname)) break; + l_cxxerrl = InitService::getTheInstance().startTask( l_pcxxtask, &l_cxxtestargs ); diff --git a/src/usr/initservice/extinitsvc/extinitsvctasks.H b/src/usr/initservice/extinitsvc/extinitsvctasks.H index 351b7d1d1..859e3caee 100644 --- a/src/usr/initservice/extinitsvc/extinitsvctasks.H +++ b/src/usr/initservice/extinitsvc/extinitsvctasks.H @@ -36,8 +36,6 @@ namespace INITSERVICE { - // TODO all these will eventuall be in BASE_IMAGE instead of BASE_IMAGE - const uint64_t MAX_EXT_TASKS = 25; const TaskInfo g_exttaskinfolist[] = { @@ -45,31 +43,97 @@ const TaskInfo g_exttaskinfolist[] = { // ----- Extended Image ------------------------------------------ /** - * @brief targeting task, initializes extended module area + * @brief ecmddatabuffer task, */ { - "libtargeting.so" , // taskname + "libecmddatabuffer.so" , // taskname NULL, // no pointer to fn { - START_TASK, // task type - BASE_IMAGE, // Extended Module - START_TARGETING_ERRL_ID, // module id + INIT_TASK, // task type + EXT_IMAGE, // Extended Module + START_ECMDDATABUFFER_ERRL_ID, // module id + } + }, + + /** + * @brief hwpf task, + */ + { + "libhwpf.so" , // taskname + NULL, // no pointer to fn + { + INIT_TASK, // task type + EXT_IMAGE, // Extended Module + START_HWPF_ERRL_ID, // module id } }, /** - * @brief IStep Dispatcher task, runs ISteps - */ - { - "libistepdisp.so" , // taskname - NULL, // no pointer to fn - { - START_TASK, // task type - BASE_IMAGE, // Extended Module - EXECUTE_ISTEPS_ERRL_ID, // module id - } - }, + * @brief fabi task, + */ + { + "libfapi.so" , // taskname + NULL, // no pointer to fn + { + INIT_TASK, // task type + EXT_IMAGE, // Extended Module + START_FAPI_ERRL_ID, // module id + } + }, + + /** + * @brief hwp task, + */ + { + "libhwp.so" , // taskname + NULL, // no pointer to fn + { + INIT_TASK, // task type + EXT_IMAGE, // Extended Module + START_HWP_ERRL_ID, // module id + } + }, + + /** + * @brief plat task, + */ + { + "libplat.so" , // taskname + NULL, // no pointer to fn + { + INIT_TASK, // task type + EXT_IMAGE, // Extended Module + START_PLAT_ERRL_ID, // module id + } + }, + + /** + * @brief targeting task, + */ + { + "libtargeting.so" , // taskname + NULL, // no pointer to fn + { + START_TASK, // task type + EXT_IMAGE, // Extended Module + START_TARGETING_ERRL_ID, // module id + } + }, + + /** + * @brief IStep Dispatcher task, runs ISteps + */ + { + "libistepdisp.so" , // taskname + NULL, // no pointer to fn + { + START_TASK, // task type + EXT_IMAGE, // Extended Module + EXECUTE_ISTEPS_ERRL_ID, // module id + } + }, + // --------------------------------------------------------------- // ----- END OF LIST!!! --------------------------------------- // --------------------------------------------------------------- @@ -96,7 +160,7 @@ const TaskInfo CXXTEST_TASK = { NULL, // no pointer to fn { START_TASK, // task type - BASE_IMAGE, // Extended Module + EXT_IMAGE, // Extended Module START_CXXTEST_ERRL_ID, // module id } }; |