Changeset 34ef6c7 in rtems for c/src/lib/libcpu/mips/clock


Ignore:
Timestamp:
Sep 5, 2008, 10:06:51 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
dad34779
Parents:
1e6aed25
Message:

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

  • clock/ckinit.c: The Shared Memory Driver no longer requires the special IOCTL in Clock_control. This was a hack which has existed since before the Classic API Timer Manager was implemented. All implementations of and references to Clock_control were removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/mips/clock/ckinit.c

    r1e6aed25 r34ef6c7  
    206206  return RTEMS_SUCCESSFUL;
    207207}
    208 
    209 rtems_device_driver Clock_control(
    210   rtems_device_major_number major,
    211   rtems_device_minor_number minor,
    212   void *pargp
    213 )
    214 {
    215     uint32_t   isrlevel;
    216     rtems_libio_ioctl_args_t *args = pargp;
    217  
    218     if (args == 0)
    219         goto done;
    220  
    221     /*
    222      * This is hokey, but until we get a defined interface
    223      * to do this, it will just be this simple...
    224      */
    225  
    226     if (args->command == rtems_build_name('I', 'S', 'R', ' '))
    227     {
    228         Clock_isr(CLOCK_VECTOR);
    229     }
    230     else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
    231     {
    232       rtems_interrupt_disable( isrlevel );
    233       user_callback = (void (*)(void))args->buffer;
    234       (void) set_vector( User_Clock_isr, CLOCK_VECTOR, 1 );
    235       rtems_interrupt_enable( isrlevel );
    236     }
    237  
    238 done:
    239     return RTEMS_SUCCESSFUL;
    240 }
Note: See TracChangeset for help on using the changeset viewer.