summaryrefslogtreecommitdiffstats
path: root/testsuites/mptests/mp14/delay.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-05 21:30:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-05 21:30:17 +0000
commit7753aa9fd5e20b645565d8f0a8cb74038a85b3bf (patch)
tree6dc1dd67addcca09751ef776a1d89a879bb5c71e /testsuites/mptests/mp14/delay.c
parent2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-7753aa9fd5e20b645565d8f0a8cb74038a85b3bf.tar.bz2
2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* mp14/delay.c, mp14/evtmtask.c: Pass task Id to TSR. * mp14/system.h: Semaphore_task_id and Semaphore_task_name arrays were one entry too short.
Diffstat (limited to 'testsuites/mptests/mp14/delay.c')
-rw-r--r--testsuites/mptests/mp14/delay.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/testsuites/mptests/mp14/delay.c b/testsuites/mptests/mp14/delay.c
index f2d1dcb730..a7375990d2 100644
--- a/testsuites/mptests/mp14/delay.c
+++ b/testsuites/mptests/mp14/delay.c
@@ -20,14 +20,13 @@
rtems_timer_service_routine Delayed_send_event(
rtems_id timer_id,
- void *ignored
+ void *id_ptr
)
{
rtems_status_code status;
+ rtems_id id = *(rtems_id *)id_ptr;
- status = rtems_event_send(
- Task_id[ rtems_object_id_get_index( timer_id ) ],
- RTEMS_EVENT_16
- );
- fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "rtems_event_send" );
+ status = rtems_event_send( id, RTEMS_EVENT_16 );
+ fatal_directive_check_status_only(
+ status, RTEMS_SUCCESSFUL, "rtems_event_send" );
}