Changeset 7fd0bc4 in rtems


Ignore:
Timestamp:
Nov 26, 2007, 9:53:16 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.8
Children:
325a4df0
Parents:
0519e2c1
Message:

2007-11-26 Joel Sherrill <joel.sherrill@…>

  • shmsupp/getcfg.c: Fix spacing.
Location:
c/src/lib/libbsp/sparc/leon3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/ChangeLog

    r0519e2c1 r7fd0bc4  
     12007-11-26      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * shmsupp/getcfg.c: Fix spacing.
     4
    152007-09-13      Daniel Hellstrom <daniel@gaisler.com>
    26
  • c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c

    r0519e2c1 r7fd0bc4  
    8787  extern rtems_configuration_table Configuration;
    8888  int i;
    89   unsigned int tmp /* , ncpu */;
     89  unsigned int tmp;
    9090 
    91    BSP_shm_cfgtbl.base         = 0x40000000;
    92    BSP_shm_cfgtbl.length       = 0x00001000;
    93    BSP_shm_cfgtbl.format       = SHM_BIG;
     91  BSP_shm_cfgtbl.base         = 0x40000000;
     92  BSP_shm_cfgtbl.length       = 0x00001000;
     93  BSP_shm_cfgtbl.format       = SHM_BIG;
    9494
    95    /*
    96     *  Override cause_intr or shm_isr if your target has
    97     *  special requirements.
    98     */
     95  /*
     96   *  Override cause_intr or shm_isr if your target has
     97   *  special requirements.
     98   */
    9999
    100    BSP_shm_cfgtbl.cause_intr   = Shm_Cause_interrupt;
     100  BSP_shm_cfgtbl.cause_intr   = Shm_Cause_interrupt;
    101101
    102102#ifdef NEUTRAL_BIG
    103    BSP_shm_cfgtbl.convert      = NULL_CONVERT;
     103  BSP_shm_cfgtbl.convert      = NULL_CONVERT;
    104104#else
    105    BSP_shm_cfgtbl.convert      = CPU_swap_u32;
     105  BSP_shm_cfgtbl.convert      = CPU_swap_u32;
    106106#endif
    107107
    108    BSP_shm_cfgtbl.poll_intr    = INTR_MODE;
    109    BSP_shm_cfgtbl.Intr.address = (vol_u32) &(LEON3_IrqCtrl_Regs->force[LEON3_Cpu_Index]);
    110    BSP_shm_cfgtbl.Intr.value   = 1 << LEON3_MP_IRQ ;
    111    BSP_shm_cfgtbl.Intr.length  = 4;
     108  BSP_shm_cfgtbl.poll_intr    = INTR_MODE;
     109  BSP_shm_cfgtbl.Intr.address =
     110     (vol_u32) &(LEON3_IrqCtrl_Regs->force[LEON3_Cpu_Index]);
     111  BSP_shm_cfgtbl.Intr.value   = 1 << LEON3_MP_IRQ ;
     112  BSP_shm_cfgtbl.Intr.length  = 4;
    112113
    113    if (LEON3_Cpu_Index == 0)
    114    {
    115      tmp = 0; /* ncpu = (((LEON3_IrqCtrl_Regs->mpstat) >> 28) & 0xf) + 1; */
    116      for (i = 1; i < (Configuration.User_multiprocessing_table)->maximum_nodes+1; i++)
    117        tmp |= (1 << i);
    118      LEON3_IrqCtrl_Regs->mpstat = tmp;
    119    }
     114  if (LEON3_Cpu_Index == 0) {
     115    tmp = 0;
     116    for (i = 1;
     117         i < (Configuration.User_multiprocessing_table)->maximum_nodes+1; i++)
     118      tmp |= (1 << i);
     119    LEON3_IrqCtrl_Regs->mpstat = tmp;
     120  }
    120121
    121    /*
    122    if ((Configuration.User_multiprocessing_table)->node == 1)
    123    {
    124      tmp = 0;
    125      for (i = 1; i < (Configuration.User_multiprocessing_table)->maximum_nodes; i++)
    126      {
    127        tmp = tmp | (1 << (LEON3_Cpu_Index + i));
    128      }
    129      LEON3_IrqCtrl_Regs->mpstat = tmp;
    130    }
    131    */
    132      
    133    *shmcfg = &BSP_shm_cfgtbl;
     122  *shmcfg = &BSP_shm_cfgtbl;
    134123}
Note: See TracChangeset for help on using the changeset viewer.