diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/itron/src/can_wup.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/cpukit/itron/src/can_wup.c b/cpukit/itron/src/can_wup.c index d75d379de9..b7442d1392 100644 --- a/cpukit/itron/src/can_wup.c +++ b/cpukit/itron/src/can_wup.c @@ -25,6 +25,25 @@ ER can_wup( ID tskid ) { - return E_OK; + register Thread_Control *the_thread; + Objects_Locations location; + + the_thread = _ITRON_Task_Get( tskid, &location ); + if (!the_thread) + _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) ); + + switch ( location ) { + case OBJECTS_REMOTE: + case OBJECTS_ERROR: + _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) ); + + case OBJECTS_LOCAL: + /* + * XXX - FILL ME IN. + */ + return E_OK; + } + + return E_OBJ; /* XXX - Should never get here */ } |