Changeset 78f96ab in rtems


Ignore:
Timestamp:
Jul 5, 2007, 8:32:43 PM (12 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1611e8ca
Parents:
20074c49
Message:

fixed some problems with shared PPC exception handling code

Location:
c/src/lib
Files:
20 edited

Legend:

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

    r20074c49 r78f96ab  
     12007-07-06      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * Makefile.am: adapted to shared exception code
     4
    152007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/powerpc/ep1a/Makefile.am

    r20074c49 r78f96ab  
    130130    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
    131131    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
    132     ../../../libcpu/@RTEMS_CPU@/mpc6xx/exceptions.rel \
     132    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \
    133133    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
    134134    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel
  • c/src/lib/libbsp/powerpc/gen5200/ChangeLog

    r20074c49 r78f96ab  
     12007-07-06      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * irq_init.c, Makefile.am: adapted to shared exception code
     4
    152007-06-22      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • c/src/lib/libbsp/powerpc/gen5200/Makefile.am

    r20074c49 r78f96ab  
    145145    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
    146146    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \
    147     ../../../libcpu/@RTEMS_CPU@/mpc6xx/exceptions.rel
     147    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel
    148148
    149149include $(srcdir)/preinstall.am
  • c/src/lib/libbsp/powerpc/gen5200/irq/irq_init.c

    r20074c49 r78f96ab  
    274274  vectorDesc.isOn              = connected;
    275275
    276   if (!mpc60x_set_exception (&vectorDesc))
     276  if (!ppc_set_exception (&vectorDesc))
    277277    {
    278278    BSP_panic("Unable to initialize RTEMS decrementer raw exception\n");
     
    284284  vectorDesc.hdl.raw_hdl_size  = (unsigned) &external_exception_vector_prolog_code_size;
    285285
    286   if (!mpc60x_set_exception (&vectorDesc))
     286  if (!ppc_set_exception (&vectorDesc))
    287287    {
    288288    BSP_panic("Unable to initialize RTEMS external raw exception\n");
     
    294294  vectorDesc.hdl.raw_hdl_size  = (unsigned) &system_management_exception_vector_prolog_code_size;
    295295
    296   if (!mpc60x_set_exception (&vectorDesc))
     296  if (!ppc_set_exception (&vectorDesc))
    297297    {
    298298    BSP_panic("Unable to initialize RTEMS system management raw exception\n");
  • c/src/lib/libbsp/powerpc/gen5200/vectors/vectors_init.c

    r20074c49 r78f96ab  
    187187    printk("installing exception number %d\n", i);
    188188
    189         if (!mpc60x_vector_is_valid(i))
     189        if (!ppc_vector_is_valid(i))
    190190        continue;
    191191
     
    198198  }
    199199
    200   if (!mpc60x_init_exceptions(&exception_config))
     200  if (!ppc_init_exceptions(&exception_config))
    201201    BSP_panic("Exception handling initialization failed\n");
    202202  else
  • c/src/lib/libbsp/powerpc/mvme5500/ChangeLog

    r20074c49 r78f96ab  
     12007-07-06      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * Makefile.am: adapted to shared exception code
     4
    152007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/powerpc/mvme5500/Makefile.am

    r20074c49 r78f96ab  
    150150    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
    151151    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
    152     ../../../libcpu/@RTEMS_CPU@/mpc6xx/exceptions.rel \
     152    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \
    153153    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
    154154    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel
  • c/src/lib/libbsp/powerpc/psim/ChangeLog

    r20074c49 r78f96ab  
     12007-07-06      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * irq_init.c, Makefile.am: adapted to shared exception code
     4
    152007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/powerpc/psim/Makefile.am

    r20074c49 r78f96ab  
    9797    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
    9898    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
    99     ../../../libcpu/@RTEMS_CPU@/mpc6xx/exceptions.rel \
     99    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \
    100100    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
    101101    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel
  • c/src/lib/libbsp/powerpc/psim/irq/irq_init.c

    r20074c49 r78f96ab  
    152152    vectorDesc.off              =       nop_func;
    153153    vectorDesc.isOn             =       connected;
    154     if (!mpc60x_set_exception (&vectorDesc)) {
     154    if (!ppc_set_exception (&vectorDesc)) {
    155155      BSP_panic("Unable to initialize RTEMS decrementer raw exception\n");
    156156    }
     
    159159    vectorDesc.hdl.raw_hdl      =       external_exception_vector_prolog_code;
    160160    vectorDesc.hdl.raw_hdl_size =       (unsigned) external_exception_vector_prolog_code_size;
    161     if (!mpc60x_set_exception (&vectorDesc)) {
     161    if (!ppc_set_exception (&vectorDesc)) {
    162162      BSP_panic("Unable to initialize RTEMS external raw exception\n");
    163163    }
  • c/src/lib/libbsp/powerpc/score603e/ChangeLog

    r20074c49 r78f96ab  
     12007-07-06      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * Makefile.am: adapted to shared exception code
     4
    152007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • c/src/lib/libbsp/powerpc/score603e/Makefile.am

    r20074c49 r78f96ab  
    121121    ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \
    122122    ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \
    123     ../../../libcpu/@RTEMS_CPU@/mpc6xx/exceptions.rel \
     123    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \
    124124    ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
    125125    ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel
  • c/src/lib/libbsp/powerpc/virtex/ChangeLog

    r20074c49 r78f96ab  
     12007-07-05      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * include/bsp.h:
     4        added bsp/vectors.h and bsp/irq.h to list of included headers
     5
     62007-07-05      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     7
     8        * opbintctrl/opbintctrl.c:
     9        removed obsolete code
     10
    1112007-07-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    212
  • c/src/lib/libbsp/powerpc/virtex/include/bsp.h

    r20074c49 r78f96ab  
    7070#include <rtems/iosupp.h>
    7171#include <rtems/rtems_bsdnet.h>
    72 
     72#include <bsp/irq.h>
     73#include <bsp/vectors.h>
    7374
    7475
  • c/src/lib/libbsp/powerpc/virtex/opbintctrl/opbintctrl.c

    r20074c49 r78f96ab  
    101101rtems_status_code opb_intc_init(void)
    102102{
    103    uint32_t msr_value;
    104103  uint32_t i, mask = 0;
    105104
     
    126125    (OPB_INTC_MER_HIE | OPB_INTC_MER_ME);
    127126
    128 #if 0 /* EB: we do it somewhere else */
    129   /*
    130    * enable (non-critical) exceptions
    131    */
    132 
    133    _CPU_MSR_GET(msr_value);
    134    msr_value |= PPC_MSR_EE;
    135    _CPU_MSR_SET(msr_value);
    136 
    137   /* install exit handler to close opb_intc when program atexit called */
    138   /* atexit(opb_intc_exit); */
    139 #endif
    140 
    141127  return RTEMS_SUCCESSFUL;
    142128}
  • c/src/lib/libcpu/powerpc/ChangeLog

    r20074c49 r78f96ab  
     12007-07-05      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * configure.ac, Makefile.am:
     4        added ppc403 and ppc405 to "shared" conditional
     5        adapted to shared setting
     6       
    172007-07-02      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    28
  • c/src/lib/libcpu/powerpc/Makefile.am

    r20074c49 r78f96ab  
    9999else
    100100include_HEADERS =
    101 include_libcpu_HEADERS += shared/include/spr.h
    102 
    103 noinst_PROGRAMS += shared/cpuIdent.rel
    104 shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c shared/include/cpuIdent.h
     101shared_cpuIdent_rel_SOURCES = shared/include/cpuIdent.c
    105102shared_cpuIdent_rel_CPPFLAGS = $(AM_CPPFLAGS)
    106103shared_cpuIdent_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    107 include_libcpu_HEADERS += shared/include/cpuIdent.h
    108104
    109105endif
  • c/src/lib/libcpu/powerpc/configure.ac

    r20074c49 r78f96ab  
    4242|| test "$RTEMS_CPU_MODEL" = "mpc5xx" \
    4343|| test "$RTEMS_CPU_MODEL" = "ppc603e" \
     44|| test "$RTEMS_CPU_MODEL" = "ppc403" \
     45|| test "$RTEMS_CPU_MODEL" = "ppc405" \
    4446|| test "$RTEMS_CPU_MODEL" = "mpc604" \
    4547|| test "$RTEMS_CPU_MODEL" = "mpc6xx" \
  • c/src/lib/libcpu/powerpc/preinstall.am

    r20074c49 r78f96ab  
    9898        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ictrl.h
    9999PREINSTALL_FILES += $(PROJECT_INCLUDE)/ictrl.h
    100 
    101 else
    102 $(PROJECT_INCLUDE)/libcpu/spr.h: shared/include/spr.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    103         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/spr.h
    104 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/spr.h
    105 
    106 $(PROJECT_INCLUDE)/libcpu/cpuIdent.h: shared/include/cpuIdent.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    107         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cpuIdent.h
    108 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cpuIdent.h
    109100endif
    110101if ppc405
Note: See TracChangeset for help on using the changeset viewer.