Changeset 62577f9 in rtems


Ignore:
Timestamp:
Nov 28, 2007, 9:44:29 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
b9f34ad
Parents:
e34ac1f
Message:

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

  • clock/clock.c, startup/bspstart.c: Eliminate PowerPC specific elements from the CPU Table. They have been replaced with variables named bsp_XXX as needed.
Location:
c/src/lib/libbsp/powerpc/gen5200
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen5200/ChangeLog

    re34ac1f r62577f9  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * clock/clock.c, startup/bspstart.c: Eliminate PowerPC specific
     4        elements from the CPU Table. They have been replaced with variables
     5        named bsp_XXX as needed.
     6
    172007-10-31      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • c/src/lib/libbsp/powerpc/gen5200/clock/clock.c

    re34ac1f r62577f9  
    7272/*   COPYRIGHT (c) 1997 by IMD, Puchheim, Germany.                     */
    7373/*                                                                     */
    74 /*   COPYRIGHT (c) 1989-1999.                                          */
     74/*   COPYRIGHT (c) 1989-2007.
    7575/*   On-Line Applications Research Corporation (OAR).                  */
    7676/*                                                                     */
     
    222222{
    223223  uint32_t gpt_no;
     224  extern uint32_t bsp_clicks_per_usec;
    224225
    225226  gpt_no = BSP_SIU_IRQ_TMR0 - (irq->name);
    226227
    227228  counter_value = rtems_configuration_get_microseconds_per_tick() *
    228                       rtems_cpu_configuration_get_clicks_per_usec();
     229                      bsp_clicks_per_usec;
    229230
    230231  mpc5200_set_gpt_count(counter_value, (uint32_t)gpt_no);
     
    342343#define Clock_driver_support_initialize_hardware() \
    343344  do {        \
     345    extern uint32_t bsp_clicks_per_usec; \
    344346    counter_value = rtems_configuration_get_microseconds_per_tick() * \
    345                     rtems_cpu_configuration_get_clicks_per_usec(); \
     347                    bsp_clicks_per_usec; \
    346348    mpc5200_init_gpt(GPT); \
    347349    mpc5200_set_gpt_count(counter_value, GPT); \
  • c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c

    re34ac1f r62577f9  
    6666/*   The mmu is unused at this time.                                   */
    6767/*                                                                     */
    68 /*   COPYRIGHT (c) 1989-1999.                                          */
     68/*   COPYRIGHT (c) 1989-2007.
    6969/*   On-Line Applications Research Corporation (OAR).                  */
    7070/*                                                                     */
     
    133133char *rtems_progname;
    134134
     135/*
     136 *  Driver configuration parameters
     137 */
     138uint32_t   bsp_clicks_per_usec;
    135139
    136140/*
     
    291295  Cpu_table.predriver_hook         = bsp_predriver_hook;     /* init PCI / RTC ...   */
    292296  Cpu_table.postdriver_hook        = bsp_postdriver_hook;
    293   Cpu_table.clicks_per_usec        = (IPB_CLOCK/1000000);
    294297  Cpu_table.exceptions_in_RAM      = TRUE;
    295298
    296299  if( Cpu_table.interrupt_stack_size < 4*1024 )
    297300    Cpu_table.interrupt_stack_size = 4 * 1024;
     301
     302 bsp_clicks_per_usec        = (IPB_CLOCK/1000000);
    298303
    299304 /*
Note: See TracChangeset for help on using the changeset viewer.