Changeset 51022e34 in rtems


Ignore:
Timestamp:
Sep 16, 2009, 12:03:35 AM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.9
Children:
62af225
Parents:
986f353e
Message:

2009-09-15 Till Straumann <strauman@…>

PR 1344/bsps:

  • clock/ckinit.c: Fix more bugs (applied PR1344/attachment 702): TSC handler was used when 8254 was requested and vice versa. Also, nanosecond handler was never installed to RTEMS clock.
Location:
c/src/lib/libbsp/i386/pc386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/ChangeLog

    r986f353e r51022e34  
     12009-09-15      Till Straumann <strauman@slac.stanford.edu>
     2
     3        PR 1344/bsps:
     4        * clock/ckinit.c: Fix more bugs (applied PR1344/attachment 702):
     5        TSC handler was used when 8254 was requested and vice versa.
     6        Also, nanosecond handler was never installed to RTEMS clock.
     7
    182008-12-08      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • c/src/lib/libbsp/i386/pc386/clock/ckinit.c

    r986f353e r51022e34  
    286286    Clock_driver_support_at_tick = Clock_driver_support_at_tick_empty;
    287287    Clock_driver_nanoseconds_since_last_tick =
    288       bsp_clock_nanoseconds_since_last_tick_tsc;
    289 
     288      bsp_clock_nanoseconds_since_last_tick_i8254;
    290289  } else {
    291290    /* printk( "Use TSC\n" ); */
    292291    Clock_driver_support_at_tick = Clock_driver_support_at_tick_tsc;
    293292    Clock_driver_nanoseconds_since_last_tick =
    294       bsp_clock_nanoseconds_since_last_tick_i8254;
    295   }
     293      bsp_clock_nanoseconds_since_last_tick_tsc;
     294  }
     295
     296  /* Shell installs nanosecond handler before calling
     297   * Clock_driver_support_initialize_hardware() :-(
     298   * so we do it again now that we're ready.
     299   */
     300  rtems_clock_set_nanoseconds_extension(
     301    Clock_driver_nanoseconds_since_last_tick
     302  );
    296303
    297304  if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
     
    299306    rtems_fatal_error_occurred(1);
    300307  }
     308
    301309}
    302310
Note: See TracChangeset for help on using the changeset viewer.