Changeset 7753aa9 in rtems for testsuites/mptests


Ignore:
Timestamp:
Sep 5, 2008, 9:30:17 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
538583f
Parents:
8cf1c1d3
Message:

2008-09-05 Joel Sherrill <joel.sherrill@…>

  • 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.
Location:
testsuites/mptests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/mptests/ChangeLog

    r8cf1c1d3 r7753aa9  
     12008-09-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * mp14/delay.c, mp14/evtmtask.c: Pass task Id to TSR.
     4        * mp14/system.h: Semaphore_task_id and Semaphore_task_name arrays
     5        were one entry too short.
     6
    172008-09-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • testsuites/mptests/mp14/delay.c

    r8cf1c1d3 r7753aa9  
    2121rtems_timer_service_routine Delayed_send_event(
    2222  rtems_id  timer_id,
    23   void     *ignored
     23  void     *id_ptr
    2424)
    2525{
    2626  rtems_status_code status;
     27  rtems_id          id = *(rtems_id *)id_ptr;
    2728
    28   status = rtems_event_send(
    29     Task_id[ rtems_object_id_get_index( timer_id ) ],
    30     RTEMS_EVENT_16
    31   );
    32   fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "rtems_event_send" );
     29  status = rtems_event_send( id, RTEMS_EVENT_16 );
     30  fatal_directive_check_status_only(
     31    status, RTEMS_SUCCESSFUL, "rtems_event_send" );
    3332}
  • testsuites/mptests/mp14/evtmtask.c

    r8cf1c1d3 r7753aa9  
    2525)
    2626{
    27   uint32_t    count;
    28   uint32_t    previous_mode;
     27  uint32_t          count;
     28  uint32_t          previous_mode;
    2929  rtems_status_code status;
    3030  rtems_event_set   events;
     31  rtems_id          self;
    3132
    3233  status = rtems_task_mode(
     
    4041  directive_failed( status, "rtems_timer_create" );
    4142
     43  self = rtems_task_self();
     44
    4245  while ( Stop_Test == false ) {
    4346    for ( count=DELAYED_EVENT_DOT_COUNT; Stop_Test == false && count; count-- ){
     
    4649        1,
    4750        Delayed_send_event,
    48         NULL
     51        &self
    4952      );
    5053      directive_failed( status, "rtems_timer_reset" );
  • testsuites/mptests/mp14/system.h

    r8cf1c1d3 r7753aa9  
    2020rtems_timer_service_routine Delayed_send_event(
    2121  rtems_id  timer_id,
    22   void     *ignored_address
     22  void     *id_ptr
    2323);
    2424
     
    7979TEST_EXTERN rtems_id   Event_task_id[ 2 ];       /* event task ids */
    8080
    81 TEST_EXTERN rtems_id   Semaphore_task_id[ 2 ];   /* semaphore task ids */
    82 TEST_EXTERN rtems_name Semaphore_task_name[ 2 ]; /* semaphore task names */
     81TEST_EXTERN rtems_id   Semaphore_task_id[ 3 ];   /* semaphore task ids */
     82TEST_EXTERN rtems_name Semaphore_task_name[ 3 ]; /* semaphore task names */
    8383
    8484TEST_EXTERN rtems_id   Queue_task_id[ 3 ];       /* message queue task ids */
Note: See TracChangeset for help on using the changeset viewer.