Ignore:
Timestamp:
Nov 5, 1999, 4:44:02 PM (21 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/ppc403/console/console.c.polled

    r707f5c7 r458bd34  
    3434#include <rtems.h>
    3535#include <rtems/libio.h>
    36 
    37 extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
    3836
    3937struct async {
     
    148146  asm volatile ("mfdcr %0, 0xa0" : "=r" (tmp)); /* IOCR */
    149147  tmp &= ~3;
    150   tmp |= (Cpu_table.serial_external_clock ? 2 : 0) |
    151       (Cpu_table.serial_cts_rts ? 1 : 0);
     148  tmp |= (rtems_cpu_configuration_get_serial_external_clock() ? 2 : 0) |
     149      (rtems_cpu_configuration_get_serial_cts_rts() ? 1 : 0);
    152150  asm volatile ("mtdcr 0xa0, %0" : "=r" (tmp) : "0" (tmp)); /* IOCR */
    153151  port->SPLS = (LSRDataReady | LSRFramingError | LSROverrunError |
    154152         LSRParityError | LSRBreakInterrupt);
    155   tmp = Cpu_table.serial_per_sec / Cpu_table.serial_rate;
     153  tmp = rtems_cpu_configuration_get_serial_per_sec() /
     154          rtems_cpu_configuration_get_serial_rate();
    156155#if 0 /* replaced by IMD... */
    157156  tmp = ((tmp + 8) >> 4) - 1;
     
    279278    }
    280279
    281   if (Cpu_table.serial_xon_xoff)
     280  if (rtems_cpu_configuration_get_serial_xon_xoff())
    282281    while (is_character_ready(&status))
    283282    {
Note: See TracChangeset for help on using the changeset viewer.