Changeset e34ac1f in rtems


Ignore:
Timestamp:
Nov 28, 2007, 9:43:56 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
62577f9
Parents:
901ebab4
Message:

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

  • rtems/new-exceptions/cpu.h, rtems/old-exceptions/cpu.h, rtems/score/cpu.h: Eliminate PowerPC specific elements from the CPU Table. They have been replaced with variables named bsp_XXX as needed.
Location:
cpukit/score/cpu/powerpc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/powerpc/ChangeLog

    r901ebab4 re34ac1f  
     12007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * rtems/new-exceptions/cpu.h, rtems/old-exceptions/cpu.h,
     4        rtems/score/cpu.h: Eliminate PowerPC specific elements from the CPU
     5        Table. They have been replaced with variables named bsp_XXX as
     6        needed.
     7
    182007-11-13      Till Straumann <strauman@slac.stanford.edu>
    29
  • cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h

    r901ebab4 re34ac1f  
    2424 *  Derived from c/src/exec/cpu/no_cpu/cpu.h:
    2525 *
    26  *  COPYRIGHT (c) 1989-2006.
     26 *  COPYRIGHT (c) 1989-2007.
    2727 *  On-Line Applications Research Corporation (OAR).
    2828 *
     
    172172  void       (*stack_free_hook)( void* );
    173173  /* end of fields required on all CPUs */
    174 
    175   uint32_t     clicks_per_usec;        /* Timer clicks per microsecond */
    176   boolean      exceptions_in_RAM;     /* TRUE if in RAM */
    177 
    178 #if (defined(ppc403) || defined(ppc405) \
    179   || defined(mpc860) || defined(mpc821) || defined(mpc8260))
    180   uint32_t     serial_per_sec;         /* Serial clocks per second */
    181   boolean      serial_external_clock;
    182   boolean      serial_xon_xoff;
    183   boolean      serial_cts_rts;
    184   uint32_t     serial_rate;
    185   uint32_t     timer_average_overhead; /* Average overhead of timer in ticks */
    186   uint32_t     timer_least_valid;      /* Least valid number from timer      */
    187   boolean      timer_internal_clock;   /* TRUE, when timer runs with CPU clk */
    188 #endif
    189 
    190 #if (defined(mpc555) \
    191   || defined(mpc860) || defined(mpc821) || defined(mpc8260))
    192   uint32_t     clock_speed;            /* Speed of CPU in Hz */
    193 #endif
    194174}   rtems_cpu_table;
    195175
  • cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h

    r901ebab4 re34ac1f  
    2121 *  Derived from c/src/exec/cpu/no_cpu/cpu.h:
    2222 *
    23  *  COPYRIGHT (c) 1989-2006.
     23 *  COPYRIGHT (c) 1989-2007.
    2424 *  On-Line Applications Research Corporation (OAR).
    2525 *
     
    195195  void       (*stack_free_hook)( void* );
    196196  /* end of fields required on all CPUs */
    197 
    198 #if 0
    199   uint32_t     clicks_per_usec;        /* Timer clicks per microsecond */
    200   void       (*spurious_handler)(uint32_t   vector, CPU_Interrupt_frame *);
    201   boolean      exceptions_in_RAM;     /* TRUE if in RAM */
    202 
    203 #if (defined(ppc403) || defined(ppc405) \
    204   || defined(mpc860) || defined(mpc821) || defined(mpc8260))
    205   uint32_t     serial_per_sec;         /* Serial clocks per second */
    206   boolean      serial_external_clock;
    207   boolean      serial_xon_xoff;
    208   boolean      serial_cts_rts;
    209   uint32_t     serial_rate;
    210   uint32_t     timer_average_overhead; /* Average overhead of timer in ticks */
    211   uint32_t     timer_least_valid;      /* Least valid number from timer      */
    212   boolean      timer_internal_clock;   /* TRUE, when timer runs with CPU clk */
    213 #endif
    214 
    215 #if (defined(mpc555) \
    216   || defined(mpc860) || defined(mpc821) || defined(mpc8260))
    217   uint32_t     clock_speed;            /* Speed of CPU in Hz */
    218 #endif
    219 #endif
    220197}   rtems_cpu_table;
    221198#endif
     
    225202 *  the file rtems/system.h.
    226203 */
    227 
    228 /*
    229  *  Macros to access PowerPC specific additions to the CPU Table
    230  */
    231 
    232 #ifndef ASM
    233 #define rtems_cpu_configuration_get_spurious_handler() \
    234    (_CPU_Table.spurious_handler)
    235 #endif /* ASM */
    236204
    237205/*
  • cpukit/score/cpu/powerpc/rtems/score/cpu.h

    r901ebab4 re34ac1f  
    397397#ifndef ASM
    398398/*
    399  *  Macros to access PowerPC specific additions to the CPU Table
    400  */
    401 
    402 #define rtems_cpu_configuration_get_clicks_per_usec() \
    403    (_CPU_Table.clicks_per_usec)
    404 
    405 #define rtems_cpu_configuration_get_exceptions_in_ram() \
    406    (_CPU_Table.exceptions_in_RAM)
    407 
    408 #if (defined(ppc403) || defined(ppc405) \
    409   || defined(mpc860) || defined(mpc821) || defined(mpc8260))
    410 
    411 #define rtems_cpu_configuration_get_serial_per_sec() \
    412    (_CPU_Table.serial_per_sec)
    413 
    414 #define rtems_cpu_configuration_get_serial_external_clock() \
    415    (_CPU_Table.serial_external_clock)
    416 
    417 #define rtems_cpu_configuration_get_serial_xon_xoff() \
    418    (_CPU_Table.serial_xon_xoff)
    419 
    420 #define rtems_cpu_configuration_get_serial_cts_rts() \
    421    (_CPU_Table.serial_cts_rts)
    422 
    423 #define rtems_cpu_configuration_get_serial_rate() \
    424    (_CPU_Table.serial_rate)
    425 
    426 #define rtems_cpu_configuration_get_timer_average_overhead() \
    427    (_CPU_Table.timer_average_overhead)
    428 
    429 #define rtems_cpu_configuration_get_timer_least_valid() \
    430    (_CPU_Table.timer_least_valid)
    431 
    432 #define rtems_cpu_configuration_get_timer_internal_clock() \
    433    (_CPU_Table.timer_internal_clock)
    434 
    435 #endif
    436 
    437 #if (defined(mpc555) \
    438   || defined(mpc860) || defined(mpc821) || defined(mpc8260))
    439 #define rtems_cpu_configuration_get_clock_speed() \
    440    (_CPU_Table.clock_speed)
    441 #endif
    442 
    443 #endif /* ASM */
    444 
    445 #ifndef ASM
    446 /*
    447399 *  Simple spin delay in microsecond units for device drivers.
    448400 *  This is very dependent on the clock speed of the target.
     
    455407  do { \
    456408    uint32_t   start, ticks, now; \
     409    extern     uint32_t bsp_clicks_per_usec; \
    457410    CPU_Get_timebase_low( start ) ; \
    458     ticks = (_microseconds) * rtems_cpu_configuration_get_clicks_per_usec(); \
     411    ticks = (_microseconds) * bsp_clicks_per_usec; \
    459412    do \
    460413      CPU_Get_timebase_low( now ) ; \
Note: See TracChangeset for help on using the changeset viewer.