Changeset bb41881e in rtems


Ignore:
Timestamp:
Apr 28, 2005, 2:16:29 PM (15 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1b3028c
Parents:
11640757
Message:

2005-04-28 Jennifer Averett <jennifer.averett@…>

  • score603e/Makefile.am, score603e/configure.ac, score603e/console/console.c, score603e/include/bsp.h, score603e/include/gen2.h, score603e/include/tm27.h, score603e/startup/bspstart.c: Update score603e to new exception model NOTE: These modifications have not been tested on hardware.
Location:
c/src/lib/libbsp/powerpc
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ChangeLog

    r11640757 rbb41881e  
     12005-04-28      Jennifer Averett <jennifer.averett@oarcorp.com>
     2
     3        * score603e/Makefile.am, score603e/configure.ac,
     4        score603e/console/console.c, score603e/include/bsp.h,
     5        score603e/include/gen2.h, score603e/include/tm27.h,
     6        score603e/startup/bspstart.c: Update score603e to new exception model
     7        NOTE: These modifications have not been tested on hardware.
     8
    192005-04-28      Jennifer Averett <jennifer.averett@oarcorp.com>
    210
  • c/src/lib/libbsp/powerpc/score603e/Makefile.am

    r11640757 rbb41881e  
    11##
    2 ## $Id$
     2## $Id$ 
    33##
    44
     
    1515nodist_include_HEADERS = include/bspopts.h
    1616DISTCLEANFILES = include/bspopts.h
     17nodist_include_HEADERS += ../../shared/include/coverhd.h
    1718
    1819noinst_PROGRAMS =
     20
     21include_bspdir = $(includedir)/bsp
    1922
    2023include_HEADERS += ../../shared/tod.h
    2124include_HEADERS += include/coverhd.h include/gen2.h
    2225
    23 EXTRA_DIST = start/start.S
    24 start.$(OBJEXT): start/start.S
    25         $(CPPASCOMPILE) -DASM -o $@ -c $<
    26 project_lib_DATA = start.$(OBJEXT)
    27 
     26###
    2827dist_project_lib_DATA += startup/linkcmds
    2928
    30 noinst_PROGRAMS += clock.rel
    31 clock_rel_SOURCES = clock/clock.c
    32 clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
    33 clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     29noinst_PROGRAMS += startup.rel
     30startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
     31    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
     32    ../../shared/main.c ../../shared/sbrk.c \
     33    startup/Hwr_init.c startup/genpvec.c \
     34    ../../shared/gnatinstallhandler.c
     35startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
     36startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     37
     38###
     39noinst_PROGRAMS += pclock.rel
     40pclock_rel_SOURCES = ../../powerpc/shared/clock/p_clock.c
     41pclock_rel_CPPFLAGS = $(AM_CPPFLAGS)
     42pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     43
     44###
     45### include_bsp_HEADERS =
    3446
    3547noinst_PROGRAMS += console.rel
     
    4052console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    4153
    42 # First and second generation used different Bridge chips :(
    43 #       Generation 1 --> 82378zb (now in the CVS Attic)
    44 #       Generation 2 --> FPGA
    45 noinst_PROGRAMS += startup.rel
    46 startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
    47     ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
    48     ../../shared/main.c ../../shared/sbrk.c startup/setvec.c \
    49     startup/Hwr_init.c startup/spurious.c startup/genpvec.c \
    50     ../../shared/gnatinstallhandler.c startup/FPGA.c
    51 startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
    52 startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    53 
    54 noinst_PROGRAMS += timer.rel
    55 timer_rel_SOURCES = timer/timer.c
    56 timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
    57 timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    58 
    59 noinst_PROGRAMS += tod.rel
    60 tod_rel_SOURCES = tod/tod.c
    61 tod_rel_CPPFLAGS = $(AM_CPPFLAGS)
    62 tod_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    63 
    64 noinst_PROGRAMS += PCI_bus.rel
    65 PCI_bus_rel_SOURCES = PCI_bus/PCI.c PCI_bus/PCI.h PCI_bus/flash.c \
    66     PCI_bus/universe.c
    67 PCI_bus_rel_CPPFLAGS = $(AM_CPPFLAGS)
    68 PCI_bus_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     54###
     55include_bsp_HEADERS = ../../powerpc/shared/pci/pci.h
     56
     57noinst_PROGRAMS += pci.rel
     58pci_rel_SOURCES = pci/no_host_bridge.c ../../powerpc/shared/pci/pci.c \
     59    ../../powerpc/shared/pci/pcifinddevice.c
     60pci_rel_CPPFLAGS = $(AM_CPPFLAGS)
     61pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     62
     63###
     64include_bsp_HEADERS += irq/irq.h
     65
     66noinst_PROGRAMS += irq.rel
     67irq_rel_SOURCES = irq/FPGA.c irq/irq.c \
     68    ../../powerpc/shared/irq/irq_asm.S
     69irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
     70irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     71
     72##
     73include_bsp_HEADERS += ../../powerpc/shared/vectors/vectors.h
    6974
    7075noinst_PROGRAMS += vectors.rel
    71 vectors_rel_SOURCES = vectors/vectors.S
     76vectors_rel_SOURCES = ../../powerpc/shared/vectors/vectors_init.c \
     77    ../../powerpc/shared/vectors/vectors.S
    7278vectors_rel_CPPFLAGS = $(AM_CPPFLAGS)
    7379vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    7480
     81##
     82include_bsp_HEADERS += ../../shared/vmeUniverse/vmeUniverse.h \
     83    ../../powerpc/shared/vme/VMEConfig.h ../../powerpc/shared/vme/VME.h
     84
     85noinst_PROGRAMS += vme.rel
     86vme_rel_SOURCES = ../../shared/vmeUniverse/vmeUniverse.c \
     87    vme/vmeconfig.c
     88vme_rel_CPPFLAGS = $(AM_CPPFLAGS)
     89vme_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     90
     91##
     92
     93EXTRA_DIST = start/start.S
     94start.$(OBJEXT): start/start.S
     95        $(CPPASCOMPILE) -DASM -o $@ -c $<
     96project_lib_DATA = start.$(OBJEXT)
     97
     98EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S
     99rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
     100        $(CPPASCOMPILE) -DASM -o $@ -c $<
     101project_lib_DATA += rtems_crti.$(OBJEXT)
     102
    75103noinst_LIBRARIES = libbsp.a
    76104libbsp_a_SOURCES =
    77 libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel tod.rel \
    78     vectors.rel PCI_bus.rel
    79 libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel
     105libbsp_a_LIBADD = pclock.rel console.rel irq.rel  \
     106    pci.rel vectors.rel  startup.rel vme.rel
     107libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
     108    ../../../libcpu/@RTEMS_CPU@/shared/stack.rel \
     109    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
     110    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
     111    ../../../libcpu/@RTEMS_CPU@/mpc6xx/exceptions.rel \
     112    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
     113    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel
    80114
    81115all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
     116
     117###
    82118
    83119PREINSTALL_DIRS =
     
    111147PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
    112148
     149$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
     150        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
     151PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
     152
     153$(PROJECT_INCLUDE)/bsp/$(dirstamp):
     154        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
     155        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     156PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     157
     158$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
     159        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
     160PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
     161
    113162$(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp)
    114163        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h
    115164PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
    116165
    117 $(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    118         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
    119 PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
    120 
    121166$(PROJECT_INCLUDE)/gen2.h: include/gen2.h $(PROJECT_INCLUDE)/$(dirstamp)
    122167        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/gen2.h
    123168PREINSTALL_FILES += $(PROJECT_INCLUDE)/gen2.h
    124169
     170$(PROJECT_INCLUDE)/bsp/consoleIo.h: ../../powerpc/shared/console/consoleIo.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     171        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/consoleIo.h
     172PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/consoleIo.h
     173
     174$(PROJECT_INCLUDE)/bsp/uart.h: ../../powerpc/shared/console/uart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     175        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/uart.h
     176PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/uart.h
     177
     178$(PROJECT_INCLUDE)/bsp/motorola.h: ../../powerpc/shared/motorola/motorola.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     179        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/motorola.h
     180PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/motorola.h
     181
     182$(PROJECT_INCLUDE)/bsp/openpic.h: ../../powerpc/shared/openpic/openpic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     183        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/openpic.h
     184PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/openpic.h
     185
     186$(PROJECT_INCLUDE)/bsp/pci.h: ../../powerpc/shared/pci/pci.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     187        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pci.h
     188PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pci.h
     189
     190$(PROJECT_INCLUDE)/bsp/residual.h: ../../powerpc/shared/residual/residual.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     191        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/residual.h
     192PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/residual.h
     193
     194$(PROJECT_INCLUDE)/bsp/pnp.h: ../../powerpc/shared/residual/pnp.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     195        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/pnp.h
     196PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/pnp.h
     197
     198$(PROJECT_INCLUDE)/bsp/irq.h: ../../powerpc/shared/irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     199        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
     200PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
     201
     202$(PROJECT_INCLUDE)/bsp/vectors.h: ../../powerpc/shared/vectors/vectors.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     203        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vectors.h
     204PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vectors.h
     205
     206$(PROJECT_INCLUDE)/bsp/vmeUniverse.h: ../../shared/vmeUniverse/vmeUniverse.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     207        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
     208PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/vmeUniverse.h
     209
     210$(PROJECT_INCLUDE)/bsp/VMEConfig.h: ../../powerpc/shared/vme/VMEConfig.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     211        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VMEConfig.h
     212PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VMEConfig.h
     213
     214$(PROJECT_INCLUDE)/bsp/VME.h: ../../powerpc/shared/vme/VME.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     215        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/VME.h
     216PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/VME.h
     217
     218if HAS_NETWORKING
     219endif
     220
     221$(PROJECT_LIB)/rtems_crti.$(OBJEXT): rtems_crti.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
     222        $(INSTALL_DATA) $< $(PROJECT_LIB)/rtems_crti.$(OBJEXT)
     223TMPINSTALL_FILES += $(PROJECT_LIB)/rtems_crti.$(OBJEXT)
     224
    125225$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
    126226        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
    127227TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
    128228
    129 $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
    130         $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
    131 PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
    132 
    133229CLEANFILES = $(PREINSTALL_FILES)
    134230DISTCLEANFILES += $(PREINSTALL_DIRS)
  • c/src/lib/libbsp/powerpc/score603e/configure.ac

    r11640757 rbb41881e  
    44
    55AC_PREREQ(2.59)
    6 AC_INIT([rtems-c-src-lib-libbsp-powerpc-score603e],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
     6AC_INIT([rtems-c-src-lib-libbsp-powerpc-ep1a],[_RTEMS_VERSION],[rtems-bugs@rtems.com])
    77AC_CONFIG_SRCDIR([bsp_specs])
    88RTEMS_TOP(../../../../../..)
     
    1515RTEMS_CANONICALIZE_TOOLS
    1616RTEMS_PROG_CCAS
    17 
    18 RTEMS_BSPOPTS_SET([CONSOLE_USE_INTERRUPTS],[*],[0])
    19 RTEMS_BSPOPTS_HELP([CONSOLE_USE_INTERRUPTS],
    20 [whether using console interrupts])
    21 
    22 RTEMS_BSPOPTS_SET([INITIALIZE_COM_PORTS],[*],[1])
    23 RTEMS_BSPOPTS_HELP([INITIALIZE_COM_PORTS],
    24 [FIXME: Missing explanation])
    25 
    26 RTEMS_BSPOPTS_SET([HAS_PMC_PSC8],[*],[0])
    27 RTEMS_BSPOPTS_HELP([HAS_PMC_PSC8],
    28 [FIXME: Missing explanation])
    2917
    3018## FIXME: This should be a 1 out of 3 selection
     
    4634[FIXME: Missing explanation.])
    4735
    48 RTEMS_BSPOPTS_SET([PPC_USE_SPRG],[*],[0])
    49 RTEMS_BSPOPTS_HELP([PPC_USE_SPRG],
    50 [If defined, then the PowerPC specific code in RTEMS will use some
    51 of the special purpose registers to slightly optimize interrupt
    52 response time.  The use of these registers can conflict with
    53 other tools like debuggers.])
     36RTEMS_BSPOPTS_SET([CONSOLE_USE_INTERRUPTS],[*],[0])
     37RTEMS_BSPOPTS_HELP([CONSOLE_USE_INTERRUPTS],
     38[whether using console interrupts])
    5439
    55 RTEMS_BSPOPTS_SET([PPC_USE_DATA_CACHE],[*],[0])
    56 RTEMS_BSPOPTS_HELP([PPC_USE_DATA_CACHE],
    57 [If defined, then the PowerPC specific code in RTEMS will use
    58  data cache instructions to optimize the context switch code.
    59  This code can conflict with debuggers or emulators.  It is known
    60  to break the Corelis PowerPC emulator with at least some combinations
    61  of PowerPC 603e revisions and emulator versions.
    62  The BSP actually contains the call that enables this.])
    63 
    64 RTEMS_BSPOPTS_SET([PPC_VECTOR_FILE_BASE],[*],[0x0100])
    65 RTEMS_BSPOPTS_HELP([PPC_VECTOR_FILE_BASE],
    66 [This defines the base address of the exception table.
    67  NOTE: Vectors are actually at 0xFFF00000 but file starts at offset.])
     40RTEMS_CHECK_NETWORKING
     41AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    6842
    6943# Explicitly list all Makefiles here
  • c/src/lib/libbsp/powerpc/score603e/console/console.c

    r11640757 rbb41881e  
    2222
    2323#include "consolebsp.h"
     24#include <rtems/bspIo.h>
    2425
    2526#if (1)
     
    468469
    469470#endif
     471
     472/* const char arg to be compatible with BSP_output_char decl. */
     473void
     474debug_putc_onlcr(const char c)
     475{
     476  int                      console;
     477  volatile uint8_t         *csr;
     478  uint32_t                 isrlevel;
     479
     480  console = USE_FOR_CONSOLE;
     481  csr = Ports_85C30[ console ].ctrl;
     482
     483  rtems_interrupt_disable( isrlevel );
     484  outbyte_polled_85c30( csr, c );
     485  rtems_interrupt_enable( isrlevel );
     486}
     487
     488BSP_output_char_function_type   BSP_output_char = debug_putc_onlcr;
     489/* const char arg to be compatible with BSP_output_char decl. */
     490
  • c/src/lib/libbsp/powerpc/score603e/include/bsp.h

    r11640757 rbb41881e  
    2121
    2222#include <bspopts.h>
     23#include <rtems.h>
     24#include <rtems/console.h>
     25#include <libcpu/io.h>
     26#include <rtems/clockdrv.h>
     27#include <bsp/vectors.h>
    2328
    2429/*
  • c/src/lib/libbsp/powerpc/score603e/include/gen2.h

    r11640757 rbb41881e  
    4848 * PSC8 - PMC Card
    4949 */
     50/* address of our ram on the PCI bus   */
     51#define PCI_DRAM_OFFSET              PREP_PCI_DRAM_OFFSET
    5052#define BSP_PCI_CONFIGURATION_BASE   0x80800000
    5153#define BSP_PMC_BASE                 BSP_PCI_CONFIGURATION_BASE
     54#define PCI_MEM_BASE_ADJUSTMENT      0
    5255#define BSP_PCI_PMC_DEVICE_BASE      0x80808000
    53 
    5456#define BSP_PCI_REGISTER_BASE        0xfc000000
    5557
     
    8183#define SCORE603E_85C30_DATA_11       BSP_PMC_SERIAL_ADDRESS(0x20001c)
    8284
     85#define _IO_BASE                       PREP_ISA_IO_BASE
    8386#define SCORE603E_PCI_IO_CFG_ADDR      0x80000cf8
    8487#define SCORE603E_PCI_IO_CFG_DATA      0x80000cfc
     
    8689#define SCORE603E_UNIVERSE_BASE        0x80030000
    8790#define SCORE603E_IO_VME_UNIVERSE_BASE 0x80007000
    88 #define BSP_PCI_MEM_BASE         0xc0000000
     91#define PCI_MEM_BASE                   0xc0000000
     92#define BSP_PCI_MEM_BASE               PCI_MEM_BASE  /* XXX - May want to remove this later */
    8993#define BSP_NVRAM_BASE           0xfd100000
    9094#define BSP_RTC_ADDRESS          ((volatile unsigned char *)0xfd180000)
     
    246250#define BSP_TIMER_LEAST_VALID    1  /* Don't trust a value lower than this */
    247251
     252#define BSP_PIC_DO_EOI              /* XXX - Don't know what this corresponds to on the score board */
     253
    248254/*
    249255 *  Convert decrement value to tenths of microsecnds (used by
  • c/src/lib/libbsp/powerpc/score603e/include/tm27.h

    r11640757 rbb41881e  
    1616#define __tm27_h
    1717
     18#include <bsp/irq.h>
     19
    1820/*
    1921 *  Stuff for Time Test 27
     
    2224#define MUST_WAIT_FOR_INTERRUPT 1
    2325
    24 #define Install_tm27_vector( _handler ) \
    25   set_vector( (_handler), PPC_IRQ_DECREMENTER, 1 )
     26static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
     27                                              0,
     28                                              (rtems_irq_enable)nullFunc,
     29                                              (rtems_irq_disable)nullFunc,
     30                                              (rtems_irq_is_enabled) nullFunc};
     31void Install_tm27_vector(void (*_handler)())
     32{
     33  clockIrqData.hdl = _handler;
     34  if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
     35        printk("Error installing clock interrupt handler!\n");
     36        rtems_fatal_error_occurred(1);
     37  }
     38}
    2639
    2740#define Cause_tm27_intr()  \
  • c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c

    r11640757 rbb41881e  
    2121#include <rtems/libio.h>
    2222#include <rtems/libcsupport.h>
     23#include <rtems/bspIo.h>
     24
     25/*
     26 * PCI Bus Frequency
     27 */
     28unsigned int BSP_bus_frequency;  /* XXX - Set this based upon the Score board */
     29
     30/*
     31 * processor clock frequency
     32 */
     33unsigned int BSP_processor_frequency; /* XXX - Set this based upon the Score board */
     34
     35/*
     36 * Time base divisior (how many tick for 1 second).
     37 */
     38unsigned int BSP_time_base_divisor = 1000;  /* XXX - Just a guess */
    2339
    2440/*
     
    3248uint32_t                          bsp_isr_level;
    3349
     50void BSP_panic(char *s)
     51{
     52  printk("%s PANIC %s\n",_RTEMS_version, s);
     53  __asm__ __volatile ("sc");
     54}
     55
     56void _BSP_Fatal_error(unsigned int v)
     57{
     58  printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
     59  __asm__ __volatile ("sc");
     60}
     61
    3462/*
    3563 *  Use the shared implementations of the following routines
     
    80108{
    81109  init_RTC();
    82 
     110/*   XXX - What Does this now ????
    83111  init_PCI();
    84112  initialize_universe();
     113*/
     114
    85115  initialize_PCI_bridge ();
    86116
     
    201231    (unsigned char *)&RAM_END - (unsigned char *) &end
    202232  );
     233
     234  BSP_processor_frequency = 266000000;
     235  BSP_bus_frequency       =  66000000;
    203236
    204237  /*
Note: See TracChangeset for help on using the changeset viewer.