Ignore:
Timestamp:
Nov 5, 1999, 4:44:02 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
968f7742
Parents:
707f5c7
Message:

This is another pass at making sure that nothing outside the BSP
unnecessarily uses any variables defined by the BSP. On this
sweep, use of BSP_Configuration and Cpu_table was eliminated.

A significant part of this modification was the addition of
macros to access fields in the RTEMS configuration structures.

This is necessary to strengthen the division between the BSP independent
parts of RTEMS and the BSPs themselves. This started after
comments and analysis by Ralf Corsepius <corsepiu@…>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc860/console-generic/console-generic.c

    r707f5c7 r458bd34  
    5555#define NIFACES 6        /* number of console devices (serial ports) */
    5656
    57 extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
    58 
    5957static Buf_t *rxBufList[NIFACES];
    6058static Buf_t *rxBufListTail[NIFACES];
     
    9189  int div16 = 0;
    9290 
    93   divisor = ((Cpu_table.clock_speed / 16) + (baud / 2)) / baud;
     91  divisor = ((rtems_cpu_configuration_get_clock_speed() / 16) +
     92                 (baud / 2)) / baud;
    9493  if (divisor > 4096) {
    9594    div16 = 1;
Note: See TracChangeset for help on using the changeset viewer.