Changeset 6a046fe0 in rtems


Ignore:
Timestamp:
May 21, 2010, 4:33:00 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
912a7458
Parents:
2dfedf4
Message:

2010-05-21 Joel Sherrill <joel.sherrill@…>

  • sh7032/score/cpu_asm.c, sh7045/score/cpu_asm.c, sh7750/score/cpu_asm.c, shgdb/score/cpu_asm.c: Spacing.
Location:
c/src/lib/libcpu/sh
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sh/ChangeLog

    r2dfedf4 r6a046fe0  
     12010-05-21      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sh7032/score/cpu_asm.c, sh7045/score/cpu_asm.c,
     4        sh7750/score/cpu_asm.c, shgdb/score/cpu_asm.c: Spacing.
     5
    162010-04-15      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c

    r2dfedf4 r6a046fe0  
    4646extern proc_ptr         _Hardware_isr_Table[];
    4747
    48 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     48#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    4949  unsigned long    *_old_stack_ptr;
    5050#endif
     
    7777   * first check for valid interrupt
    7878   */
    79   if(( irq > 113) || (_Hardware_isr_Table[irq] == _dummy_isp))
     79  if (( irq > 113) || (_Hardware_isr_Table[irq] == _dummy_isp))
    8080    return -1;
    8181  /*
    8282   * check for valid irq priority
    8383   */
    84   if( prio > 15 )
     84  if ( prio > 15 )
    8585    return -1;
    8686
     
    8888   * look up appropriate interrupt priority register
    8989   */
    90   if( irq > 71)
     90  if ( irq > 71)
    9191    {
    9292      irq = irq - 72;
     
    104104    {
    105105      shiftcount = 12 - 4 * ( irq % 4);
    106       if( irq > 67)
     106      if ( irq > 67)
    107107        prioreg = INTC_IPRB;
    108108      else
     
    137137  _Thread_Dispatch_disable_level++;
    138138
    139 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    140   if( _ISR_Nest_level == 0 )
     139#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     140  if ( _ISR_Nest_level == 0 )
    141141    {
    142142      /* Install irq stack */
     
    152152
    153153  /* call isp */
    154   if( _ISR_Vector_table[ vector])
     154  if ( _ISR_Vector_table[ vector])
    155155    (*_ISR_Vector_table[ vector ])( vector );
    156156
     
    161161  _ISR_Nest_level--;
    162162
    163 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     163#if(CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    164164
    165   if( _ISR_Nest_level == 0 )
     165  if ( _ISR_Nest_level == 0 )
    166166    /* restore old stack pointer */
    167167    stack_ptr = _old_stack_ptr;
  • c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c

    r2dfedf4 r6a046fe0  
    4545extern proc_ptr         _Hardware_isr_Table[];
    4646
    47 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     47#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    4848  unsigned long    *_old_stack_ptr;
    4949#endif
     
    7676   * first check for valid interrupt
    7777   */
    78   if(( irq > 156) || (irq < 64) || (_Hardware_isr_Table[irq] == _dummy_isp))
     78  if (( irq > 156) || (irq < 64) || (_Hardware_isr_Table[irq] == _dummy_isp))
    7979    return -1;
    8080  /*
    8181   * check for valid irq priority
    8282   */
    83   if( prio > 15 )
     83  if ( prio > 15 )
    8484    return -1;
    8585
     
    8787   * look up appropriate interrupt priority register
    8888   */
    89   if( irq > 71)
     89  if ( irq > 71)
    9090    {
    9191      irq = irq - 72;
     
    106106    {
    107107      shiftcount = 12 - 4 * ( irq % 4);
    108       if( irq > 67)
     108      if ( irq > 67)
    109109        prioreg = INTC_IPRB;
    110110      else
     
    139139  _Thread_Dispatch_disable_level++;
    140140
    141 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    142   if( _ISR_Nest_level == 0 )
     141#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     142  if ( _ISR_Nest_level == 0 )
    143143    {
    144144      /* Install irq stack */
     
    154154
    155155  /* call isp */
    156   if( _ISR_Vector_table[ vector])
     156  if ( _ISR_Vector_table[ vector])
    157157    (*_ISR_Vector_table[ vector ])( vector );
    158158
     
    163163  _ISR_Nest_level--;
    164164
    165 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     165#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    166166
    167   if( _ISR_Nest_level == 0 )
     167  if ( _ISR_Nest_level == 0 )
    168168    /* restore old stack pointer */
    169169    stack_ptr = _old_stack_ptr;
  • c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c

    r2dfedf4 r6a046fe0  
    4545extern proc_ptr         _Hardware_isr_Table[];
    4646
    47 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     47#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    4848  unsigned long    *_old_stack_ptr;
    4949#endif
     
    6363  _Thread_Dispatch_disable_level++;
    6464
    65 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    66   if( _ISR_Nest_level == 0 )
     65#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     66  if ( _ISR_Nest_level == 0 )
    6767    {
    6868      /* Install irq stack */
     
    7878
    7979  /* call isp */
    80   if( _ISR_Vector_table[ vector])
     80  if ( _ISR_Vector_table[ vector])
    8181    (*_ISR_Vector_table[ vector ])( vector );
    8282
     
    8787  _ISR_Nest_level--;
    8888
    89 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    90 
    91   if( _ISR_Nest_level == 0 )
     89#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     90  if ( _ISR_Nest_level == 0 )
    9291    /* restore old stack pointer */
    9392    stack_ptr = _old_stack_ptr;
  • c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c

    r2dfedf4 r6a046fe0  
    1818#include <rtems/score/sh.h>
    1919
    20 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     20#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    2121  unsigned long    *_old_stack_ptr;
    2222#endif
     
    3636  _Thread_Dispatch_disable_level++;
    3737
    38 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    39   if( _ISR_Nest_level == 0 )
     38#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     39  if ( _ISR_Nest_level == 0 )
    4040    {
    4141      /* Install irq stack */
     
    5151
    5252  /* call isp */
    53   if( _ISR_Vector_table[ vector])
     53  if ( _ISR_Vector_table[ vector])
    5454    (*_ISR_Vector_table[ vector ])( vector );
    5555
     
    6060  _ISR_Nest_level--;
    6161
    62 #if( CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
     62#if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE)
    6363
    64   if( _ISR_Nest_level == 0 )
     64  if ( _ISR_Nest_level == 0 )
    6565    /* restore old stack pointer */
    6666    stack_ptr = _old_stack_ptr;
Note: See TracChangeset for help on using the changeset viewer.