[RTEMS Project] #3505: powerpc/virtex redefined warning

RTEMS trac trac at rtems.org
Wed Aug 22 17:39:21 UTC 2018


#3505: powerpc/virtex redefined warning
----------------------------+--------------------
  Reporter:  Joel Sherrill  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  normal         |  Milestone:  5.1
 Component:  arch/powerpc   |    Version:  5
  Severity:  normal         |   Keywords:
Blocked By:                 |   Blocking:
----------------------------+--------------------
 This looks like ppc403 and ppc405 are both defined but I am not seeing
 source of the ppc405 definition. The warning is in this section of code:


 #if defined (ppc403)
 #define exisr   0x040   /* DCR: external interrupt status register */
 #define exier   0x042   /* DCR: external interrupt enable register */
 #endif /* ppc403 */
 #if defined(ppc405)
 #define exisr   0x0C0   /* DCR: external interrupt status register */
 #define exier   0x0C2   /* DCR: external interrupt enable register */
 #endif /* ppc405 */

 In file included from /home/joel/rtems-work/rtems-
 testing/rtems/rtems/cpukit/include/rtems/score/percpu.h:25:0,
                  from
 ../../../../../../../../rtems/c/src/lib/libbsp/powerpc/virtex/../../../../../../bsps/powerpc/shared/exceptions/ppc_exc_async_normal.S:16:
 /home/joel/rtems-work/rtems-
 testing/rtems/rtems/cpukit/score/cpu/powerpc/include/rtems/asm.h:228:0:
 warning: "exisr" redefined
  #define exisr   0x0C0   /* DCR: external interrupt status register */

 /home/joel/rtems-work/rtems-
 testing/rtems/rtems/cpukit/score/cpu/powerpc/include/rtems/asm.h:224:0:
 note: this is the location of the previous definition
  #define exisr   0x040   /* DCR: external interrupt status register */

 /home/joel/rtems-work/rtems-
 testing/rtems/rtems/cpukit/score/cpu/powerpc/include/rtems/asm.h:229:0:
 warning: "exier" redefined
  #define exier   0x0C2   /* DCR: external interrupt enable register */

 /home/joel/rtems-work/rtems-
 testing/rtems/rtems/cpukit/score/cpu/powerpc/include/rtems/asm.h:225:0:
 note: this is the location of the previous definition
  #define exier   0x042   /* DCR: external interrupt enable register */

--
Ticket URL: <http://devel.rtems.org/ticket/3505>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list