Changeset f817b02 in rtems for c/src/lib


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

The files in libcpu should not be directly dependent on any BSP. In
particular, using bsp.h, or getting information from the BSP which
should properly be obtained from RTEMS is forbidden. 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@…>.
The changes primarily eliminated the need to include bsp.h and
peeking at BSP_Configuration. The use of Cpu_table in each
BSP needs to be eliminated.

Location:
c/src/lib
Files:
4 added
50 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/p4000/startup/bspstart.c

    rd5704c6 rf817b02  
    117117  Cpu_table.postdriver_hook = bsp_postdriver_hook;
    118118  Cpu_table.interrupt_stack_size = 4096;
     119  Cpu_table.clicks_per_microsecond = CPU_CLOCK_RATE_MHZ;
    119120}
  • c/src/lib/libbsp/mips64orion/p4000/startup/bspstart.c

    rd5704c6 rf817b02  
    117117  Cpu_table.postdriver_hook = bsp_postdriver_hook;
    118118  Cpu_table.interrupt_stack_size = 4096;
     119  Cpu_table.clicks_per_microsecond = CPU_CLOCK_RATE_MHZ;
    119120}
  • c/src/lib/libbsp/powerpc/mcp750/Makefile.in

    rd5704c6 rf817b02  
    2323all: $(SRCS)
    2424
     25# We only build the Network library if HAS_NETWORKING was defined
     26NETWORK_yes_V = dec21140
     27NETWORK = $(NETWORK_$(HAS_NETWORKING)_V)
     28
    2529# wrapup is the one that actually builds and installs the library
    2630#  from the individual .rel files built in other directories
    27 SUB_DIRS = console include pci residual openpic irq vectors start startup \
    28     bootloader dec21140 wrapup
     31SUB_DIRS = clock console include pci residual openpic irq vectors \
     32    start startup bootloader $(NETWORK) wrapup
    2933
    3034Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libbsp/powerpc/mcp750/wrapup/Makefile.in

    rd5704c6 rf817b02  
    1414VPATH = @srcdir@
    1515
    16 BSP_PIECES = console irq openpic pci residual startup dec21140 vectors
     16# We only build the Network library if HAS_NETWORKING was defined
     17NETWORK_yes_V = dec21140
     18NETWORK = $(NETWORK_$(HAS_NETWORKING)_V)
     19
     20BSP_PIECES = clock console irq openpic pci residual startup $(NETWORK) vectors
    1721GENERIC_PIECES =
    1822
  • c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.in

    rd5704c6 rf817b02  
    2323all: $(SRCS)
    2424
     25# We only build the Network library if HAS_NETWORKING was defined
     26NETWORK_yes_V = dec21140
     27NETWORK = $(NETWORK_$(HAS_NETWORKING)_V)
     28
    2529# wrapup is the one that actually builds and installs the library
    2630#  from the individual .rel files built in other directories
    27 SUB_DIRS = console include pci residual openpic irq vectors start startup \
    28     bootloader dec21140 wrapup
     31SUB_DIRS = clock console include pci residual openpic irq vectors \
     32    start startup bootloader $(NETWORK) wrapup
    2933
    3034Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libbsp/powerpc/motorola_powerpc/wrapup/Makefile.in

    rd5704c6 rf817b02  
    1414VPATH = @srcdir@
    1515
    16 BSP_PIECES = console irq openpic pci residual startup dec21140 vectors
     16# We only build the Network library if HAS_NETWORKING was defined
     17NETWORK_yes_V = dec21140
     18NETWORK = $(NETWORK_$(HAS_NETWORKING)_V)
     19
     20BSP_PIECES = clock console irq openpic pci residual startup $(NETWORK) vectors
    1721GENERIC_PIECES =
    1822
  • c/src/lib/libbsp/powerpc/score603e/wrapup/Makefile.in

    rd5704c6 rf817b02  
    2222OBJS = $(foreach piece, $(BSP_PIECES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \
    2323    $(foreach piece, $(CPU_PIECES), \
    24     ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(piece).rel) $(foreach \
    25     piece, $(GENERIC_PIECES), ../../../$(piece)/$(ARCH)/$(piece).rel)
     24        ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(piece).rel) \
     25    $(foreach piece, $(GENERIC_PIECES), \
     26        ../../../$(piece)/$(ARCH)/$(piece).rel)
    2627LIB = $(ARCH)/libbsp.a
    2728
  • c/src/lib/libcpu/hppa1.1/clock/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/hppa1.1/clock/clock.c

    rd5704c6 rf817b02  
    2020/* should get this from bsp.h, but it is not installed yet */
    2121rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int);
    22 extern rtems_configuration_table BSP_Configuration;
    2322
    2423#include <stdlib.h>                     /* for atexit() */
     
    104103    Clock_clicks = 0;
    105104
    106     Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000;
    107 
    108     if (BSP_Configuration.ticks_per_timeslice)
    109     {
     105    Clock_isrs = rtems_configuration_get_milliseconds_per_tick();
     106
     107    if ( rtems_configuration_get_ticks_per_timeslice() ) {
    110108        /*
    111109         * initialize the interval here
     
    176174    {
    177175        rtems_clock_tick();
    178         Clock_isrs = BSP_Configuration.microseconds_per_tick / 10000;
     176        Clock_isrs = rtems_configuration_get_milliseconds_per_tick();
    179177        if (Clock_isrs == 0)
    180178            Clock_isrs = 1;
     
    192190Clock_exit(void)
    193191{
    194     if ( BSP_Configuration.ticks_per_timeslice )
    195     {
     192    if ( rtems_configuration_get_ticks_per_timeslice() ) {
    196193        (void) set_vector(0, HPPA_INTERRUPT_EXTERNAL_INTERVAL_TIMER, 1);
    197194    }
  • c/src/lib/libcpu/hppa1.1/include/Makefile.in

    rd5704c6 rf817b02  
    22#  $Id$
    33#
    4 # Install any include files needed by libcpu.
    5 # Mainly this just means bsp.h which would normally be installed
    6 # after libcpu is built.
    7 # This is a bit of a hack.
    84
    95@SET_MAKE@
  • c/src/lib/libcpu/hppa1.1/milli/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/hppa1.1/semaphore/semaphore.c

    rd5704c6 rf817b02  
    1717 */
    1818
    19 #include <bsp.h>
     19#include <rtems.h>
    2020
    2121#include "semaphore.h"
     
    124124     */
    125125
     126#if 0
    126127    if (cpu_number == 0)
     128#else
     129    if (_Configuration_Table->User_multiprocessing_table->node == 1)
     130#endif
    127131    {
    128132        /*
     
    140144     */
    141145
     146#if 0
    142147    if (cpu_number == 0)
     148#else
     149    if (_Configuration_Table->User_multiprocessing_table->node == 1)
     150#endif
    143151        SEM_CONTROL->user = rtems_build_name('D', 'O', 'N', 'E');
    144152    else
  • c/src/lib/libcpu/hppa1.1/timer/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/m68k/m68040/fpsp/Makefile.in

    rd5704c6 rf817b02  
    6767all: ${ARCH} $(SRCS) $(PGM)
    6868
    69 # the .rel file built here will be put into libbsp.a by
    70 #    libbsp/hppa/BSP/wrapup/Makefile
    7169install: all
    7270
  • c/src/lib/libcpu/mips/clock/ckinit.c

    rd5704c6 rf817b02  
    4444#include <rtems.h>
    4545#include <rtems/libio.h>
    46 #include <bsp.h>
    4746
    4847#define EXT_INT5    0x8000  /* external interrupt 5 */
     
    5049#include "clock.h"
    5150
     51/* formerly in the BSP */
     52#if 0
    5253#define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ ) /* equivalent to CPU clock speed in MHz */
     54#endif
     55
     56#define CLOCKS_PER_MICROSECOND \
     57  rtems_cpu_configuration_get_clicks_per_microsecond()
     58/* to avoid including the bsp */
     59mips_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
    5360
    5461void Clock_exit( void );
     
    153160
    154161  Clock_driver_ticks = 0;
    155   Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000;
     162  Clock_isrs = rtems_configuration_get_milliseconds_per_tick();
    156163
    157164  /*
     
    160167   */
    161168
    162   if ( BSP_Configuration.ticks_per_timeslice ) {
     169  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    163170    Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    164171    /*
     
    166173     */
    167174
    168     mips_timer_rate = BSP_Configuration.microseconds_per_tick * CLOCKS_PER_MICROSECOND;
     175    mips_timer_rate = rtems_configuration_get_microseconds_per_tick() * CLOCKS_PER_MICROSECOND;
    169176    mips_set_timer( mips_timer_rate );
    170177    enable_int(CLOCK_VECTOR_MASK);
     
    184191void Clock_exit( void )
    185192{
    186   if ( BSP_Configuration.ticks_per_timeslice ) {
    187 
     193  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    188194    /* mips: turn off the timer interrupts */
    189195    disable_int(CLOCK_VECTOR_MASK);
    190 
    191196  }
    192197}
  • c/src/lib/libcpu/mips/timer/timer.c

    rd5704c6 rf817b02  
    4848
    4949#include <rtems.h>
    50 #include <bsp.h>
    5150
    5251#define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ )
  • c/src/lib/libcpu/mips64orion/clock/ckinit.c

    rd5704c6 rf817b02  
    4444#include <rtems.h>
    4545#include <rtems/libio.h>
    46 #include <bsp.h>
    4746
    4847#define EXT_INT5    0x8000  /* external interrupt 5 */
     
    5049#include "clock.h"
    5150
     51/* formerly in the BSP */
     52#if 0
    5253#define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ ) /* equivalent to CPU clock speed in MHz */
     54#endif
     55
     56#define CLOCKS_PER_MICROSECOND \
     57  rtems_cpu_configuration_get_clicks_per_microsecond()
     58/* to avoid including the bsp */
     59mips_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
    5360
    5461void Clock_exit( void );
     
    153160
    154161  Clock_driver_ticks = 0;
    155   Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000;
     162  Clock_isrs = rtems_configuration_get_milliseconds_per_tick();
    156163
    157164  /*
     
    160167   */
    161168
    162   if ( BSP_Configuration.ticks_per_timeslice ) {
     169  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    163170    Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    164171    /*
     
    166173     */
    167174
    168     mips_timer_rate = BSP_Configuration.microseconds_per_tick * CLOCKS_PER_MICROSECOND;
     175    mips_timer_rate = rtems_configuration_get_microseconds_per_tick() * CLOCKS_PER_MICROSECOND;
    169176    mips_set_timer( mips_timer_rate );
    170177    enable_int(CLOCK_VECTOR_MASK);
     
    184191void Clock_exit( void )
    185192{
    186   if ( BSP_Configuration.ticks_per_timeslice ) {
    187 
     193  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    188194    /* mips: turn off the timer interrupts */
    189195    disable_int(CLOCK_VECTOR_MASK);
    190 
    191196  }
    192197}
  • c/src/lib/libcpu/mips64orion/include/Makefile.in

    rd5704c6 rf817b02  
    22#  $Id$
    33#
    4 # Install any include files needed by libcpu.
    5 # Mainly this just means bsp.h which would normally be installed
    6 # after libcpu is built.
    7 # This is a bit of a hack.
    84
    95@SET_MAKE@
  • c/src/lib/libcpu/mips64orion/timer/timer.c

    rd5704c6 rf817b02  
    4848
    4949#include <rtems.h>
    50 #include <bsp.h>
    5150
    5251#define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ )
  • c/src/lib/libcpu/powerpc/mpc505/timer/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/powerpc/mpc750/Makefile.in

    rd5704c6 rf817b02  
    2121# wrapup is the one that actually builds and installs the library
    2222#  from the individual .rel files built in other directories
    23 SUB_DIRS = exceptions mmu clock wrapup
     23# SUB_DIRS = exceptions mmu clock wrapup
     24SUB_DIRS = exceptions mmu wrapup
    2425
    2526Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • c/src/lib/libcpu/powerpc/mpc750/wrapup/Makefile.in

    rd5704c6 rf817b02  
    1414VPATH = @srcdir@
    1515
    16 PROC_SPECIFIC_O_PIECES = exceptions mmu clock
     16# PROC_SPECIFIC_O_PIECES = exceptions mmu clock
     17PROC_SPECIFIC_O_PIECES = exceptions mmu
    1718GENERIC_PIECES =
    1819
  • c/src/lib/libcpu/powerpc/mpc821/clock/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/powerpc/mpc821/clock/clock.c

    rd5704c6 rf817b02  
    3737 */
    3838
    39 #include <bsp.h>
    4039#include <clockdrv.h>
    4140#include <rtems/libio.h>
     
    7574  Clock_driver_ticks = 0;
    7675 
    77   pit_value = BSP_Configuration.microseconds_per_tick /
     76  pit_value = rtems_configuration_get_microseconds_per_tick() /
    7877               Cpu_table.clicks_per_usec;
    7978  if (pit_value == 0) {
     
    8685    rtems_fatal_error_occurred(-1);
    8786  } 
    88   if (BSP_Configuration.ticks_per_timeslice) {
     87  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    8988   
    9089    /*
     
    132131Clock_exit(void)
    133132{
    134   if ( BSP_Configuration.ticks_per_timeslice ) {
     133  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    135134    /* disable PIT and PIT interrupts */
    136135    m821.piscr &= ~(M821_PISCR_PTE | M821_PISCR_PIE);
  • c/src/lib/libcpu/powerpc/mpc821/console-generic/console-generic.c

    rd5704c6 rf817b02  
    4343 */
    4444
    45 #include <bsp.h>
    4645#include <rtems/libio.h>
    4746#include <mpc821.h>
  • c/src/lib/libcpu/powerpc/mpc821/include/Makefile.in

    rd5704c6 rf817b02  
    22#  $Id$
    33#
    4 # Install any include files needed by libcpu.
    5 # Mainly this just means bsp.h which would normally be installed
    6 # after libcpu is built.
    7 # This is a bit of a hack.
    84
    95@SET_MAKE@
  • c/src/lib/libcpu/powerpc/mpc821/timer/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/powerpc/mpc821/timer/timer.c

    rd5704c6 rf817b02  
    4444 */
    4545
    46 #include <bsp.h>
    4746#include <rtems.h>
    4847#include <mpc821.h>
  • c/src/lib/libcpu/powerpc/mpc821/vectors/align_h.S

    rd5704c6 rf817b02  
    4545
    4646#include "asm.h"
    47 /*#include "bsp.h"*/
    4847#define ALIGN_REGS 0x0140
    4948
  • c/src/lib/libcpu/powerpc/mpc860/clock/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/powerpc/mpc860/clock/clock.c

    rd5704c6 rf817b02  
    3737 */
    3838
    39 #include <bsp.h>
     39#include <rtems.h>
    4040#include <clockdrv.h>
    4141#include <rtems/libio.h>
     
    7575  Clock_driver_ticks = 0;
    7676 
    77   pit_value = BSP_Configuration.microseconds_per_tick /
     77  pit_value = rtems_configuration_get_microseconds_per_tick() /
    7878               Cpu_table.clicks_per_usec;
    7979  if (pit_value == 0) {
     
    8686    rtems_fatal_error_occurred(-1);
    8787  } 
    88   if (BSP_Configuration.ticks_per_timeslice) {
     88  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    8989   
    9090    /*
     
    132132Clock_exit(void)
    133133{
    134   if ( BSP_Configuration.ticks_per_timeslice ) {
     134  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    135135    /* disable PIT and PIT interrupts */
    136136    m860.piscr &= ~(M860_PISCR_PTE | M860_PISCR_PIE);
  • c/src/lib/libcpu/powerpc/mpc860/console-generic/console-generic.c

    rd5704c6 rf817b02  
    4545 */
    4646
    47 #include <bsp.h>
     47#include <rtems.h>
    4848#include <rtems/libio.h>
    4949#include <mpc860.h>
  • c/src/lib/libcpu/powerpc/mpc860/include/Makefile.in

    rd5704c6 rf817b02  
    22#  $Id$
    33#
    4 # Install any include files needed by libcpu.
    5 # Mainly this just means bsp.h which would normally be installed
    6 # after libcpu is built.
    7 # This is a bit of a hack.
    84
    95@SET_MAKE@
  • c/src/lib/libcpu/powerpc/mpc860/timer/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/powerpc/mpc860/timer/timer.c

    rd5704c6 rf817b02  
    4444 */
    4545
    46 #include <bsp.h>
    4746#include <rtems.h>
    4847#include <mpc860.h>
  • c/src/lib/libcpu/powerpc/mpc860/vectors/align_h.S

    rd5704c6 rf817b02  
    4545
    4646#include "asm.h"
    47 /*#include "bsp.h"*/
    4847#define ALIGN_REGS 0x0140
    4948
  • c/src/lib/libcpu/powerpc/ppc403/clock/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/powerpc/ppc403/clock/clock.c

    rd5704c6 rf817b02  
    3838 */
    3939
    40 #include <bsp.h>
     40#include <rtems.h>
    4141#include <clockdrv.h>
    4242#include <rtems/libio.h>
     
    165165      auto_restart = 1;
    166166 
    167     pit_value = BSP_Configuration.microseconds_per_tick *
     167    pit_value = rtems_configuration_get_microseconds_per_tick() *
    168168      Cpu_table.clicks_per_usec;
    169169 
    170     if (BSP_Configuration.ticks_per_timeslice)
    171     {
     170    if ( rtems_configuration_get_ticks_per_timeslice() ) {
    172171      register rtems_unsigned32 tcr;
    173172
     
    219218Clock_exit(void)
    220219{
    221     if ( BSP_Configuration.ticks_per_timeslice )
    222     {
     220    if ( rtems_configuration_get_ticks_per_timeslice() ) {
    223221      register rtems_unsigned32 tcr;
    224222 
  • c/src/lib/libcpu/powerpc/ppc403/console/console.c

    rd5704c6 rf817b02  
    5757#define NO_BSP_INIT
    5858
    59 #include <bsp.h>
     59#include <rtems.h>
    6060#include <rtems/libio.h>
    6161#include "../ictrl/ictrl.h"
  • c/src/lib/libcpu/powerpc/ppc403/console/console.c.polled

    rd5704c6 rf817b02  
    3232#define NO_BSP_INIT
    3333
    34 #include <bsp.h>
     34#include <rtems.h>
    3535#include <rtems/libio.h>
    3636
  • c/src/lib/libcpu/powerpc/ppc403/ictrl/Makefile.in

    rd5704c6 rf817b02  
    7070        @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
    7171
    72 # the .rel file built here will be put into libbsp.a by
    73 #    libbsp/hppa/BSP/wrapup/Makefile
    7472install: all
    7573
  • c/src/lib/libcpu/powerpc/ppc403/ictrl/ictrl.c

    rd5704c6 rf817b02  
    2222
    2323#include "ictrl.h"
    24 #include <bsp.h>
     24#include <rtems.h>
    2525#include <rtems/libio.h>
    2626
  • c/src/lib/libcpu/powerpc/ppc403/include/Makefile.in

    rd5704c6 rf817b02  
    22#  $Id$
    33#
    4 # Install any include files needed by libcpu.
    5 # Mainly this just means bsp.h which would normally be installed
    6 # after libcpu is built.
    7 # This is a bit of a hack.
    84
    95@SET_MAKE@
  • c/src/lib/libcpu/powerpc/ppc403/timer/Makefile.in

    rd5704c6 rf817b02  
    6363all: ${ARCH} $(SRCS) $(PGM)
    6464
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/hppa/BSP/wrapup/Makefile
    6765install: all
    6866
  • c/src/lib/libcpu/powerpc/ppc403/timer/timer.c

    rd5704c6 rf817b02  
    3535 */
    3636
    37 #include <bsp.h>
    3837#include <rtems.h>
    3938
  • c/src/lib/libcpu/powerpc/ppc403/vectors/align_h.S

    rd5704c6 rf817b02  
    4545
    4646#include "asm.h"
    47 #include "bsp.h"
     47#include "rtems.h"
    4848
    4949.set    CACHE_SIZE,16           # cache line size of 32 bytes
  • c/src/lib/libcpu/sh/sh7032/clock/ckinit.c

    rd5704c6 rf817b02  
    2323 */
    2424
    25 #include <bsp.h>
     25#include <rtems.h>
    2626
    2727#include <stdlib.h>
     
    144144
    145145  Clock_driver_ticks = 0;
    146   Clock_isrs_const = BSP_Configuration.microseconds_per_tick / 10000;
     146  Clock_isrs_const = rtems_configuration_get_microseconds_per_tick() / 10000;
    147147  Clock_isrs = Clock_isrs_const;
    148148
     
    152152   */
    153153
    154   if ( BSP_Configuration.ticks_per_timeslice ) {
     154  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    155155    rtems_interrupt_catch( Clock_isr, CLOCK_VECTOR, &Old_ticker );
    156156    /*
     
    192192
    193193    /* set counter limits */
    194     write16( _ITU_COUNTER0_MICROSECOND * BSP_Configuration.microseconds_per_tick,
     194    write16( _ITU_COUNTER0_MICROSECOND * rtems_configuration_get_microseconds_per_tick(),
    195195             ITU_GRA0);
    196196   
     
    215215{
    216216  unsigned8 temp8 = 0;
    217   if ( BSP_Configuration.ticks_per_timeslice ) {
     217  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    218218
    219219    /* turn off the timer interrupts */
  • c/src/lib/libcpu/sh/sh7032/console/console.c

    rd5704c6 rf817b02  
    3131
    3232#include <bsp.h>
     33#include <rtems.h>
    3334#include <rtems/libio.h>
    3435#include <iosupp.h>
  • c/src/lib/libcpu/sh/sh7032/include/sci.h

    rd5704c6 rf817b02  
    2727
    2828#ifdef __cplusplus
    29 extern"C" {
     29extern "C" {
    3030#endif
    3131
  • c/src/lib/libcpu/sh/sh7032/timer/timer.c

    rd5704c6 rf817b02  
    3030 */
    3131
    32 #include <bsp.h>
     32#include <rtems.h>
    3333
    3434#include <rtems/score/sh_io.h>
Note: See TracChangeset for help on using the changeset viewer.