Changeset 185da08 in rtems


Ignore:
Timestamp:
Jul 10, 2007, 6:43:12 PM (12 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
29e86b62
Parents:
f610e83f
Message:

additional fixes for the shared exception code

Location:
c/src/lib
Files:
18 edited

Legend:

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

    rf610e83f r185da08  
     12007-07-10      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * irq/irq_init.c: adapted to shared exception code
     4
    152007-07-06      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    26
  • c/src/lib/libbsp/powerpc/ep1a/irq/irq_init.c

    rf610e83f r185da08  
    316316    vectorDesc.off              =       nop_func;
    317317    vectorDesc.isOn             =       connected;
    318     if (!mpc60x_set_exception (&vectorDesc)) {
     318    if (!ppc_set_exception (&vectorDesc)) {
    319319      BSP_panic("Unable to initialize RTEMS decrementer raw exception\n");
    320320    }
     
    323323    vectorDesc.hdl.raw_hdl      =       external_exception_vector_prolog_code;
    324324    vectorDesc.hdl.raw_hdl_size =       (unsigned) external_exception_vector_prolog_code_size;
    325     if (!mpc60x_set_exception (&vectorDesc)) {
     325    if (!ppc_set_exception (&vectorDesc)) {
    326326      BSP_panic("Unable to initialize RTEMS external raw exception\n");
    327327    }
  • c/src/lib/libbsp/powerpc/gen5200/vectors/vectors_init.c

    rf610e83f r185da08  
    7777#include <rtems/bspIo.h>
    7878
    79 extern int mpc60x_vector_is_valid(rtems_vector);
    8079static rtems_raw_except_global_settings exception_config;
    8180static rtems_raw_except_connect_data    exception_table[LAST_VALID_EXC + 1];
  • c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog

    rf610e83f r185da08  
     12007-07-10      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * vectors/vectors_init.c, irq/irq_init.c:
     4        adapted to shared exception code
     5
    162007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/powerpc/mbx8xx/irq/irq_init.c

    rf610e83f r185da08  
    148148    vectorDesc.off              =       nop_func2;
    149149    vectorDesc.isOn             =       connected;
    150     if (!mpc8xx_set_exception (&vectorDesc)) {
     150    if (!ppc_set_exception (&vectorDesc)) {
    151151      BSP_panic("Unable to initialize RTEMS decrementer raw exception\n");
    152152    }
     
    155155    vectorDesc.hdl.raw_hdl      =       external_exception_vector_prolog_code;
    156156    vectorDesc.hdl.raw_hdl_size =       (unsigned) &external_exception_vector_prolog_code_size;
    157     if (!mpc8xx_set_exception (&vectorDesc)) {
     157    if (!ppc_set_exception (&vectorDesc)) {
    158158      BSP_panic("Unable to initialize RTEMS external raw exception\n");
    159159    }
  • c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors_init.c

    rf610e83f r185da08  
    113113  for (i=0; i <= exception_config.exceptSize; i++) {
    114114    printk("installing exception number %d\n", i);
    115     if (!mpc8xx_vector_is_valid (i)) {
     115    if (!ppc_vector_is_valid (i)) {
    116116      continue;
    117117    }
     
    128128    exception_table[i].isOn             = except_always_enabled;
    129129  }
    130   if (!mpc8xx_init_exceptions(&exception_config)) {
     130  if (!ppc_init_exceptions(&exception_config)) {
    131131    /*
    132132     * At this stage we may not call BSP_Panic because it uses exceptions!!!
  • c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog

    rf610e83f r185da08  
     12007-07-10      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * vectors/vectors_init.c, irq/irq_init.c:
     4        adapted to shared exception code
     5
     62007-07-06      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     7
     8        * Makefile.am: adapted to shared exception code
     9
    1102007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    211
  • c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am

    rf610e83f r185da08  
    8585    ../../../libcpu/@RTEMS_CPU@/mpc8260/mmu.rel \
    8686    ../../../libcpu/@RTEMS_CPU@/mpc8260/timer.rel \
    87     ../../../libcpu/@RTEMS_CPU@/mpc8260/exceptions.rel
     87    ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel
    8888
    8989EXTRA_DIST += times
  • c/src/lib/libbsp/powerpc/mpc8260ads/irq/irq_init.c

    rf610e83f r185da08  
    137137    vectorDesc.off                      =       nop_func;
    138138    vectorDesc.isOn                     =       connected;
    139     if (!mpc8xx_set_exception (&vectorDesc)) {
     139    if (!ppc_set_exception (&vectorDesc)) {
    140140      BSP_panic("Unable to initialize RTEMS decrementer raw exception\n");
    141141    }
     
    144144    vectorDesc.hdl.raw_hdl      =       external_exception_vector_prolog_code;
    145145    vectorDesc.hdl.raw_hdl_size =       (unsigned) &external_exception_vector_prolog_code_size;
    146     if (!mpc8xx_set_exception (&vectorDesc)) {
     146    if (!ppc_set_exception (&vectorDesc)) {
    147147      BSP_panic("Unable to initialize RTEMS external raw exception\n");
    148148    }
  • c/src/lib/libbsp/powerpc/mpc8260ads/vectors/vectors_init.c

    rf610e83f r185da08  
    121121    printk("installing exception number %d\n", i);
    122122*/
    123     if (!mpc8xx_vector_is_valid (i)) {
     123    if (!ppc_vector_is_valid (i)) {
    124124      continue;
    125125    }
     
    134134/*  _BSP_GPLED0_on(); */
    135135
    136   if (!mpc8xx_init_exceptions(&exception_config)) {
     136  if (!ppc_init_exceptions(&exception_config)) {
    137137    /*
    138138     * At this stage we may not call BSP_Panic because it uses exceptions!!!
  • c/src/lib/libbsp/powerpc/mvme5500/ChangeLog

    rf610e83f r185da08  
     12007-07-10      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * irq/irq_init.c: adapted to shared exception code
     4
    152007-07-06      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    26
  • c/src/lib/libbsp/powerpc/mvme5500/irq/irq_init.c

    rf610e83f r185da08  
    228228  vectorDesc.off                = nop_func;
    229229  vectorDesc.isOn               = connected;
    230   if (!mpc60x_set_exception (&vectorDesc)) {
     230  if (!ppc_set_exception (&vectorDesc)) {
    231231      BSP_panic("Unable to initialize RTEMS decrementer raw exception\n");
    232232  }
     
    235235  vectorDesc.hdl.raw_hdl        = external_exception_vector_prolog_code;
    236236  vectorDesc.hdl.raw_hdl_size   = (unsigned) external_exception_vector_prolog_code_size;
    237   if (!mpc60x_set_exception (&vectorDesc)) {
     237  if (!ppc_set_exception (&vectorDesc)) {
    238238      BSP_panic("Unable to initialize RTEMS external raw exception\n");
    239239    }
  • c/src/lib/libbsp/powerpc/score603e/ChangeLog

    rf610e83f r185da08  
     12007-07-10      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     2
     3        * irq/irq_init.c: adapted to shared exception code
     4
    152007-07-06      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    26
  • c/src/lib/libbsp/powerpc/score603e/irq/irq_init.c

    rf610e83f r185da08  
    349349    vectorDesc.off              =       nop_func;
    350350    vectorDesc.isOn             =       connected;
    351     if (!mpc60x_set_exception (&vectorDesc)) {
     351    if (!ppc_set_exception (&vectorDesc)) {
    352352      BSP_panic("Unable to initialize RTEMS decrementer raw exception\n");
    353353    }
     
    356356    vectorDesc.hdl.raw_hdl      =       external_exception_vector_prolog_code;
    357357    vectorDesc.hdl.raw_hdl_size =       (unsigned) external_exception_vector_prolog_code_size;
    358     if (!mpc60x_set_exception (&vectorDesc)) {
     358    if (!ppc_set_exception (&vectorDesc)) {
    359359      BSP_panic("Unable to initialize RTEMS external raw exception\n");
    360360    }
  • c/src/lib/libcpu/powerpc/Makefile.am

    rf610e83f r185da08  
    3535
    3636
     37if !mpc5xx
    3738include_libcpu_HEADERS += new-exceptions/raw_exception.h
    3839noinst_PROGRAMS += new-exceptions/raw_exception.rel
     
    4142new_exceptions_raw_exception_rel_CPPFLAGS = $(AM_CPPFLAGS)
    4243new_exceptions_raw_exception_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     44endif
    4345
    4446endif
  • c/src/lib/libcpu/powerpc/new-exceptions/raw_exception.c

    rf610e83f r185da08  
    120120#if (defined(mpc555) || defined(mpc505))
    121121
    122 int ppc_vector_is_valid(rtems_vector vector)
     122int mpc5xx_vector_is_valid(rtems_vector vector)
    123123{
    124124  switch (current_ppc_cpu) {
     
    347347        case PPC_PSIM:
    348348            if (!PSIM_vector_is_valid(vector)) {
     349                return 0;
     350            }
     351            break;
     352#endif
     353#if ( defined(mpc555) || defined(mpc505) )
     354        case PPC_5XX:
     355            if (!mpc5xx_vector_is_valid(vector)) {
    349356                return 0;
    350357            }
  • c/src/lib/libcpu/powerpc/old-exceptions/cpu.c

    rf610e83f r185da08  
    260260  _CPU_MSR_GET( msr_value );
    261261  the_context->msr |= (msr_value & PPC_MSR_EP);
     262#if defined(PPC_MSR_RI)
    262263  the_context->msr |= PPC_MSR_RI;
     264#endif
    263265  the_context->msr |= msr_value & (PPC_MSR_DR|PPC_MSR_IR);
    264266
  • c/src/lib/libcpu/powerpc/preinstall.am

    rf610e83f r185da08  
    5252
    5353else
     54if !mpc5xx
    5455$(PROJECT_INCLUDE)/libcpu/raw_exception.h: new-exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    5556        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
    5657PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
     58endif
    5759endif
    5860if shared
Note: See TracChangeset for help on using the changeset viewer.