summaryrefslogtreecommitdiffstats
path: root/c/src/exec/itron/src/can_wup.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-10 13:48:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-10 13:48:27 +0000
commiteb02f47b126b56091ffaeaad470a48e2ac6d57b5 (patch)
treed52c66ad2d1a1b60d4eecd873949aa07477f8b87 /c/src/exec/itron/src/can_wup.c
parentAdded support for ITRON tests. (diff)
downloadrtems-eb02f47b126b56091ffaeaad470a48e2ac6d57b5.tar.bz2
Committed modifications from ITRON Task and Task Dependendent Synchronization
Working Group. Included are tests.
Diffstat (limited to 'c/src/exec/itron/src/can_wup.c')
-rw-r--r--c/src/exec/itron/src/can_wup.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/c/src/exec/itron/src/can_wup.c b/c/src/exec/itron/src/can_wup.c
index d75d379de9..b7442d1392 100644
--- a/c/src/exec/itron/src/can_wup.c
+++ b/c/src/exec/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 */
}