Changeset 39de538 in rtems


Ignore:
Timestamp:
Feb 5, 2013, 4:00:10 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c082b575
Parents:
3020614
git-author:
Sebastian Huber <sebastian.huber@…> (02/05/13 16:00:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/06/13 14:35:54)
Message:

bsps/powerpc: Add and use ppc_cpu_is_specific_e200

Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_initialize.c

    r3020614 r39de538  
    106106  MTIVPR(ppc_exc_vector_base);
    107107
    108   if (ppc_cpu_is(PPC_e200z0) || ppc_cpu_is(PPC_e200z1)) {
     108  if (
     109    ppc_cpu_is_specific_e200(PPC_e200z0)
     110      || ppc_cpu_is_specific_e200(PPC_e200z1)
     111  ) {
    109112    /*
    110113     * These cores have hard wired IVOR registers.  An access will case a
     
    136139    MTIVOR(34, ppc_exc_vector_address(ASM_E500_EMB_FP_ROUND_VECTOR));
    137140  }
    138   if (ppc_cpu_is_e500()) {
     141  if (ppc_cpu_is_specific_e200(PPC_e200z7) || ppc_cpu_is_e500()) {
    139142    MTIVOR(35, ppc_exc_vector_address(ASM_E500_PERFMON_VECTOR));
    140143  }
  • c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h

    r3020614 r39de538  
    125125}
    126126
     127static inline bool ppc_cpu_is_specific_e200(ppc_cpu_id_t id)
     128{
     129        return (ppc_cpu_current() & 0xfff0) == id;
     130}
     131
    127132static inline bool ppc_cpu_is_e300(void)
    128133{
Note: See TracChangeset for help on using the changeset viewer.