Ignore:
Timestamp:
Aug 1, 2011, 1:41:37 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, 5, master
Children:
01f2692e
Parents:
864dd9ad
Message:

2011-08-01 Jennifer Averett <Jennifer.Averett@…>

PR 1802

  • Makefile.am, configure.ac, preinstall.am, clock/ckinit.c, start/start16.S, startup/bspstart.c, startup/ldsegs.S: Add SMP support for i386.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/clock/ckinit.c

    r864dd9ad r8a7ed82  
    235235  pc386_clock_click_count = US_TO_TICK(pc386_microseconds_per_isr);
    236236
     237  BSP_irq_enable_at_i8259s( BSP_PERIODIC_TIMER - BSP_IRQ_VECTOR_BASE );
     238
    237239  #if 0
    238240    printk( "configured usecs per tick=%d \n",
     
    272274  rtems_vector_number vector
    273275);
     276
     277bool Clock_isr_enabled = false;
     278void Clock_isr_handler(
     279  rtems_irq_hdl_param param
     280)
     281{
     282  if ( Clock_isr_enabled )
     283    Clock_isr( 0 );
     284}
     285
    274286static rtems_irq_connect_data clockIrqData = {
    275287  BSP_PERIODIC_TIMER,
    276   (void *)Clock_isr,
     288  Clock_isr_handler,
    277289  0,
    278290  clockOn,
     
    280292  clockIsOn
    281293};
     294
     295void Clock_driver_install_handler(void)
     296{
     297  if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
     298    printk("Unable to install system clock ISR handler\n");
     299    rtems_fatal_error_occurred(1);
     300  }
     301}
    282302
    283303void Clock_driver_support_initialize_hardware(void)
     
    319339  );
    320340
    321   if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
    322     printk("Unable to initialize system clock\n");
    323     rtems_fatal_error_occurred(1);
    324   }
    325 
     341  Clock_isr_enabled = true;
    326342}
    327343
Note: See TracChangeset for help on using the changeset viewer.