Changeset f817b02 in rtems


Ignore:
Timestamp:
Nov 4, 1999, 6:05:09 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 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.

Files:
4 added
66 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/include/rtems.h

    rd5704c6 rf817b02  
    115115#define RTEMS_MINIMUN_HETERO_CONVERSION  MP_PACKET_MINIMUN_HETERO_CONVERSION
    116116
    117 
    118117#ifdef __cplusplus
    119118}
  • c/src/exec/sapi/include/rtems/config.h

    rd5704c6 rf817b02  
    117117SAPI_EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
    118118
     119/*
     120 *  Some handy macros to avoid dependencies on either the BSP
     121 *  or the exact format of the configuration table.
     122 */
     123
     124#define rtems_configuration_get_work_space_start() \
     125        (_Configuration_Table->work_space_start)
     126
     127#define rtems_configuration_get_work_space_size() \
     128        (_Configuration_Table->work_space_size)
     129
     130#define rtems_configuration_get_maximum_extensions() \
     131        (_Configuration_Table->maximum_extensions)
     132
     133#define rtems_configuration_get_microseconds_per_tick() \
     134        (_Configuration_Table->microseconds_per_tick)
     135#define rtems_configuration_get_milliseconds_per_tick() \
     136        (_Configuration_Table->microseconds_per_tick / 1000)
     137
     138#define rtems_configuration_get_ticks_per_timeslice() \
     139        (_Configuration_Table->ticks_per_timeslice)
     140
     141#define rtems_configuration_get_maximum_devices() \
     142        (_Configuration_Table->maximum_devices)
     143
     144#define rtems_configuration_get_number_of_device_drivers() \
     145        (_Configuration_Table->number_of_device_drivers)
     146
     147#define rtems_configuration_get_device_driver_table() \
     148        (_Configuration_Table->device_driver_table)
     149
     150#define rtems_configuration_get_number_of_initial_extensions() \
     151        (_Configuration_Table->number_of_initial_extensions)
     152
     153#define rtems_configuration_get_user_extension_table() \
     154        (_Configuration_Table->user_extension_table)
     155
     156#define rtems_configuration_get_user_multiprocessing_table() \
     157        (_Configuration_Table->user_multiprocessing_table)
     158
     159#define rtems_configuration_get_rtems_api_configuration() \
     160        (_Configuration_Table->rtems_api_configuration)
     161
     162#define rtems_configuration_get_posix_api_configuration() \
     163        (_Configuration_Table->posix_api_configuration)
     164
    119165#ifdef __cplusplus
    120166}
  • c/src/exec/score/cpu/mips/rtems/score/cpu.h

    rd5704c6 rf817b02  
    436436  /* end of fields required on all CPUs */
    437437
    438   unsigned32   some_other_cpu_dependent_info;
     438  unsigned32   clicks_per_microsecond;
    439439}   rtems_cpu_table;
     440
     441#define rtems_cpu_configuration_get_clicks_per_microsecond() \
     442   (_CPU_Table.clicks_per_microsecond)
    440443
    441444/*
  • c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h

    rd5704c6 rf817b02  
    436436  /* end of fields required on all CPUs */
    437437
    438   unsigned32   some_other_cpu_dependent_info;
     438  unsigned32   clicks_per_microsecond;
    439439}   rtems_cpu_table;
     440
     441#define rtems_cpu_configuration_get_clicks_per_microsecond() \
     442   (_CPU_Table.clicks_per_microsecond)
    440443
    441444/*
  • 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>
  • c/src/tests/psxtests/psxstat/main.c

    rd5704c6 rf817b02  
    3333
    3434#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     35#define CONFIGURE_INIT_TASK_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
     36
    3537
    3638#define CONFIGURE_INIT
  • c/src/tests/samples/minimum/init.c

    rd5704c6 rf817b02  
    2929#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3030
     31#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
     32
    3133#define CONFIGURE_INIT
    3234
  • cpukit/rtems/include/rtems.h

    rd5704c6 rf817b02  
    115115#define RTEMS_MINIMUN_HETERO_CONVERSION  MP_PACKET_MINIMUN_HETERO_CONVERSION
    116116
    117 
    118117#ifdef __cplusplus
    119118}
  • cpukit/sapi/include/rtems/config.h

    rd5704c6 rf817b02  
    117117SAPI_EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
    118118
     119/*
     120 *  Some handy macros to avoid dependencies on either the BSP
     121 *  or the exact format of the configuration table.
     122 */
     123
     124#define rtems_configuration_get_work_space_start() \
     125        (_Configuration_Table->work_space_start)
     126
     127#define rtems_configuration_get_work_space_size() \
     128        (_Configuration_Table->work_space_size)
     129
     130#define rtems_configuration_get_maximum_extensions() \
     131        (_Configuration_Table->maximum_extensions)
     132
     133#define rtems_configuration_get_microseconds_per_tick() \
     134        (_Configuration_Table->microseconds_per_tick)
     135#define rtems_configuration_get_milliseconds_per_tick() \
     136        (_Configuration_Table->microseconds_per_tick / 1000)
     137
     138#define rtems_configuration_get_ticks_per_timeslice() \
     139        (_Configuration_Table->ticks_per_timeslice)
     140
     141#define rtems_configuration_get_maximum_devices() \
     142        (_Configuration_Table->maximum_devices)
     143
     144#define rtems_configuration_get_number_of_device_drivers() \
     145        (_Configuration_Table->number_of_device_drivers)
     146
     147#define rtems_configuration_get_device_driver_table() \
     148        (_Configuration_Table->device_driver_table)
     149
     150#define rtems_configuration_get_number_of_initial_extensions() \
     151        (_Configuration_Table->number_of_initial_extensions)
     152
     153#define rtems_configuration_get_user_extension_table() \
     154        (_Configuration_Table->user_extension_table)
     155
     156#define rtems_configuration_get_user_multiprocessing_table() \
     157        (_Configuration_Table->user_multiprocessing_table)
     158
     159#define rtems_configuration_get_rtems_api_configuration() \
     160        (_Configuration_Table->rtems_api_configuration)
     161
     162#define rtems_configuration_get_posix_api_configuration() \
     163        (_Configuration_Table->posix_api_configuration)
     164
    119165#ifdef __cplusplus
    120166}
  • cpukit/score/cpu/mips/rtems/score/cpu.h

    rd5704c6 rf817b02  
    436436  /* end of fields required on all CPUs */
    437437
    438   unsigned32   some_other_cpu_dependent_info;
     438  unsigned32   clicks_per_microsecond;
    439439}   rtems_cpu_table;
     440
     441#define rtems_cpu_configuration_get_clicks_per_microsecond() \
     442   (_CPU_Table.clicks_per_microsecond)
    440443
    441444/*
  • cpukit/score/cpu/mips64orion/rtems/score/cpu.h

    rd5704c6 rf817b02  
    436436  /* end of fields required on all CPUs */
    437437
    438   unsigned32   some_other_cpu_dependent_info;
     438  unsigned32   clicks_per_microsecond;
    439439}   rtems_cpu_table;
     440
     441#define rtems_cpu_configuration_get_clicks_per_microsecond() \
     442   (_CPU_Table.clicks_per_microsecond)
    440443
    441444/*
  • scripts/Makefile.am

    rd5704c6 rf817b02  
    11AUTOMAKE_OPTIONS = foreign
    22
     3# add gnatnewlib once that one works. :)
    34SUBDIRS = . binutils gccnewlib gdb rtems
    45
  • scripts/gccnewlib/Makefile.am

    rd5704c6 rf817b02  
    44
    55MKGCCNEWLIBSPEC = $(SHELL) $(top_builddir)/mkgccnewlibspec
     6
     7C_ONLY_ARG = -a $(top_builddir)/gccnewlib/gccnewlib_c_only.spec.in
    68
    79MKGCCNEWLIBSPEC_DEPS = \
     
    1517
    1618i960-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
    17         $(MKGCCNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . i960-rtems
     19        $(MKGCCNEWLIBSPEC) $(C_ONLY_ARG) -cfg $(top_builddir)/setup.cache -o . i960-rtems
    1820
    1921m68k-rtems-$(GCCNEWLIBVERS).spec: $(MKGCCNEWLIBSPEC_DEPS)
     
    3941
    4042TEMPLATES = \
    41 gccnewlib.spec.in
     43gccnewlib.spec.in \
     44gccnewlib_c_only.spec.in
    4245
    4346RPM_SPECS_DATA = \
  • scripts/gnatnewlib/gnatnewlib.spec.in

    rd5704c6 rf817b02  
    1010Distribution: Linux
    1111Name:         @target_alias@-gcc-newlib
    12 Summary:      gcc and newlib C Library for @target_alias@.
     12Summary:      gnat, gcc, and newlib C Library for @target_alias@.
    1313Group:        rtems
    1414Release:      @Release@
    1515Copyright:    1999 OARCorp
    1616
    17 Provides:       @target_alias@-gcc @target_alias@-chill @target_alias@-gcj
    18 Provides:       @target_alias@-g77 @target_alias@-objc
     17Provides:       @target_alias@-gcc
    1918Requires:       @target_alias@-binutils
    2019
     
    2221Packager:       corsepiu@faw.uni-ulm.de and joel@OARcorp.com
    2322
    24 Version:        gcc@gcc_version@newlib@newlib_version@
     23Version:        gnat@gnat_version@newlib@newlib_version@
    2524Source0:        ftp://ftp.gnu.org/pub/gnu/gcc/gcc-@gcc_version@.tar.gz
    2625Source1:        ftp://sourceware.cygnus/com/pub/newlib/newlib-@newlib_version@.tar.gz
    27 Patch0:         gcc-@gcc_version@-rtems-@gcc_patch_version@.diff
     26Source2:        ftp://cs.nyu.edu/pub/gnat/gnat-@gnat_version@.tar.gz
     27Patch0:         gcc-@gcc_version@-gnatrtems-@gcc_patch_version@.diff
    2828Patch1:         newlib-@newlib_version@-rtems-@newlib_patch_version@.diff
    2929Buildroot:      /tmp
     
    4040# Or you can try the ftp options of rpm :-)
    4141#
    42 NoSource:      0, 1
     42NoSource:      0, 1, 2
    4343
    4444%description
     
    5656 your /usr/src/redhat/SOURCES directory ($RPM_SOURCE_DIR).
    5757 Or you can try the ftp options of rpm :-)
    58 
    59 %package -n @target_alias@-gcc
    60 Summary:      rtems gcc and newlib C Library for @target_alias@
    61 Group: rtems
    62 Requires: @target_alias@-binutils
    63 
    64 %description -n @target_alias@-gcc
    65 RTEMS is an open source operating system for embedded systems.
    66 
    67 This is gcc and newlib C Library for @target_alias@.
    68 
    69 %package -n @target_alias@-chill
    70 Summary:      gcc/chill compiler for @target_alias@
    71 Group: rtems
    72 Requires: @target_alias@-gcc
    73 
    74 %description -n @target_alias@-chill
    75 RTEMS is an open source operating system for embedded systems.
    76 
    77 This is the gcc/chill compiler and support files for @target_alias@
    78 
    79 %package -n @target_alias@-gcj
    80 Summary:      gcc/java compiler (gcj) for @target_alias@
    81 Group: rtems
    82 Requires: @target_alias@-gcc
    83 
    84 %description -n @target_alias@-gcj
    85 RTEMS is an open source operating system for embedded systems.
    86 
    87 This is the gcc/java compiler for @target_alias@
    88 
    89 %package -n @target_alias@-g77
    90 Summary:      gcc/g77 compiler for @target_alias@
    91 Group: rtems
    92 Requires: @target_alias@-gcc
    93 
    94 %description -n @target_alias@-g77
    95 RTEMS is an open source operating system for embedded systems.
    9658
    9759This is the gcc/g77 compiler for @target_alias@
  • scripts/mkgccnewlibspec.in

    rd5704c6 rf817b02  
    1818}
    1919
     20specsrc=${RTEMS_DIR}/gccnewlib/gccnewlib.spec.in
     21
    2022while test $# -ge 2; do
    2123case $1 in
     
    2830  shift
    2931  dst=$1
     32  shift
     33-a)        # alternate specs file
     34  shift
     35  specsrc=$1
    3036  shift
    3137  ;;
     
    5763    -e "s%@newlib_version@%${newlib_version}%g" \
    5864    -e "s%@newlib_patch_version@%${newlib_patch_version}%g" \
    59 < ${RTEMS_DIR}/gccnewlib/gccnewlib.spec.in \
     65< ${specsrc} \
    6066> ${specfile}
    6167
  • testsuites/psxtests/psxstat/main.c

    rd5704c6 rf817b02  
    3333
    3434#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     35#define CONFIGURE_INIT_TASK_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
     36
    3537
    3638#define CONFIGURE_INIT
  • testsuites/samples/minimum/init.c

    rd5704c6 rf817b02  
    2929#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3030
     31#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
     32
    3133#define CONFIGURE_INIT
    3234
Note: See TracChangeset for help on using the changeset viewer.