Changeset 6aacf08 in rtems


Ignore:
Timestamp:
Oct 7, 2014, 7:01:55 AM (6 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
a387e944
Parents:
fad33860
git-author:
Daniel Hellstrom <daniel@…> (10/07/14 07:01:55)
git-committer:
Daniel Hellstrom <daniel@…> (10/09/14 11:19:40)
Message:

SPARC BSPs: irq-shared.c code style clean-up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/irq/irq-shared.c

    rfad33860 r6aacf08  
    3030static inline void bsp_dispatch_irq(int irq)
    3131{
    32        bsp_interrupt_handler_entry *e =
    33                &bsp_interrupt_handler_table[bsp_interrupt_handler_index(irq)];
     32  bsp_interrupt_handler_entry *e =
     33    &bsp_interrupt_handler_table[bsp_interrupt_handler_index(irq)];
    3434
    35        while (e != NULL) {
    36                (*e->handler)(e->arg);
    37                e = e->next;
    38        }
     35  while (e != NULL) {
     36    (*e->handler)(e->arg);
     37    e = e->next;
     38  }
    3939}
    4040
     
    4242static void BSP_ISR_handler(rtems_vector_number vector)
    4343{
    44        int irq = vector - 0x10;
     44  int irq = vector - 0x10;
    4545
    46        /* Let BSP fixup and/or handle incomming IRQ */
    47        irq = bsp_irq_fixup(irq);
     46  /* Let BSP fixup and/or handle incomming IRQ */
     47  irq = bsp_irq_fixup(irq);
    4848
    49        bsp_dispatch_irq(irq);
     49  bsp_dispatch_irq(irq);
    5050}
    5151
     
    5353void BSP_shared_interrupt_init(void)
    5454{
    55        rtems_vector_number vector;
    56        rtems_isr_entry previous_isr;
    57        int i;
     55  rtems_vector_number vector;
     56  rtems_isr_entry previous_isr;
     57  int i;
    5858
    59        for (i=0; i <= BSP_INTERRUPT_VECTOR_MAX_STD; i++) {
     59  for (i=0; i <= BSP_INTERRUPT_VECTOR_MAX_STD; i++) {
    6060#if defined(LEON3) && \
    6161    (defined(RTEMS_SMP) || defined(RTEMS_MULTIPROCESSING))
    62                /* Don't install IRQ handler on IPI interrupt */
    63                if (i == LEON3_mp_irq)
    64                        continue;
     62    /* Don't install IRQ handler on IPI interrupt */
     63    if (i == LEON3_mp_irq)
     64      continue;
    6565#endif
    66                vector = SPARC_ASYNCHRONOUS_TRAP(i) + 0x10;
    67                rtems_interrupt_catch(BSP_ISR_handler, vector, &previous_isr);
    68        }
     66    vector = SPARC_ASYNCHRONOUS_TRAP(i) + 0x10;
     67    rtems_interrupt_catch(BSP_ISR_handler, vector, &previous_isr);
     68  }
    6969
    70        /* Initalize interrupt support */
    71        bsp_interrupt_initialize();
     70  /* Initalize interrupt support */
     71  bsp_interrupt_initialize();
    7272}
    7373
     
    7575rtems_status_code bsp_interrupt_facility_initialize(void)
    7676{
    77        return RTEMS_SUCCESSFUL;
     77  return RTEMS_SUCCESSFUL;
    7878}
    7979
     
    106106void BSP_shared_interrupt_clear(int irq)
    107107{
    108        /* We don't have to interrupt lock here, because the register is only
    109         * written and self clearing
    110         */
    111        BSP_Clear_interrupt(irq);
     108  /* We don't have to interrupt lock here, because the register is only
     109   * written and self clearing
     110   */
     111  BSP_Clear_interrupt(irq);
    112112}
Note: See TracChangeset for help on using the changeset viewer.