Changeset 16ce86f9 in rtems


Ignore:
Timestamp:
Aug 15, 2000, 1:00:01 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ea56c0a8
Parents:
5a0beb7b
Message:

2000-08-15 Joel Sherrill <joel@…>

  • posix/src/ptimer1.c (timer_settime): Converted use of rtems_clock_get to use SuperCore? _TOD_Current variable.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/ChangeLog

    r5a0beb7b r16ce86f9  
     12000-08-15      Joel Sherrill <joel@OARcorp.com>
     2
     3        * posix/src/ptimer1.c (timer_settime): Converted use of rtems_clock_get
     4        to use SuperCore _TOD_Current variable.
     5
    162000-08-10      Joel Sherrill <joel@OARcorp.com>
    27
  • c/src/exec/posix/src/ptimer1.c

    r5a0beb7b r16ce86f9  
    261261     /* Stores the time when the timer was started again */
    262262
    263      return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
    264                                  &timer_struct[timer_pos].time );
     263     timer_struct[timer_pos].time = _TOD_Current;
    265264     
    266265     /* The state has not to be actualized, because nothing modifies it */
     
    395394   
    396395
    397      case RTEMS_INVALID_NAME : /* The assigned name is not valid*/
     396     case RTEMS_INVALID_NAME : /* The assigned name is not valid */
    398397
    399398       PRINT_MSG_S ("ERROR: rtems create timer RTEMS_INVALID_NAME");
    400399
    401400       errno = EINVAL;
    402 
    403401       return (-1);
    404402
     
    611609              /* Stores the time in which the timer was started again */
    612610
    613               return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
    614                                           &timer_struct[timer_pos].time );
    615 
     611              timer_struct[timer_pos].time = _TOD_Current;
    616612              return 0;
    617613
     
    687683              /* Stores the time in which the timer was started again */
    688684
    689               return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
    690                                           &timer_struct[timer_pos].time );
     685              timer_struct[timer_pos].time = _TOD_Current;
    691686 
    692687              return 0;
     
    781776  /* Reads the current time */
    782777
    783   return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD, &current_time );
     778  current_time = _TOD_Current;
    784779
    785780  timer_pos = TIMER_POSITION_F ( timerid );
  • cpukit/posix/ChangeLog

    r5a0beb7b r16ce86f9  
     12000-08-15      Joel Sherrill <joel@OARcorp.com>
     2
     3        * posix/src/ptimer1.c (timer_settime): Converted use of rtems_clock_get
     4        to use SuperCore _TOD_Current variable.
     5
    162000-08-10      Joel Sherrill <joel@OARcorp.com>
    27
  • cpukit/posix/src/ptimer1.c

    r5a0beb7b r16ce86f9  
    261261     /* Stores the time when the timer was started again */
    262262
    263      return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
    264                                  &timer_struct[timer_pos].time );
     263     timer_struct[timer_pos].time = _TOD_Current;
    265264     
    266265     /* The state has not to be actualized, because nothing modifies it */
     
    395394   
    396395
    397      case RTEMS_INVALID_NAME : /* The assigned name is not valid*/
     396     case RTEMS_INVALID_NAME : /* The assigned name is not valid */
    398397
    399398       PRINT_MSG_S ("ERROR: rtems create timer RTEMS_INVALID_NAME");
    400399
    401400       errno = EINVAL;
    402 
    403401       return (-1);
    404402
     
    611609              /* Stores the time in which the timer was started again */
    612610
    613               return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
    614                                           &timer_struct[timer_pos].time );
    615 
     611              timer_struct[timer_pos].time = _TOD_Current;
    616612              return 0;
    617613
     
    687683              /* Stores the time in which the timer was started again */
    688684
    689               return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
    690                                           &timer_struct[timer_pos].time );
     685              timer_struct[timer_pos].time = _TOD_Current;
    691686 
    692687              return 0;
     
    781776  /* Reads the current time */
    782777
    783   return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD, &current_time );
     778  current_time = _TOD_Current;
    784779
    785780  timer_pos = TIMER_POSITION_F ( timerid );
Note: See TracChangeset for help on using the changeset viewer.