[Bug 1588] New: Header conflict in powerpc registers and MPC55XX registers
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Thu Jun 24 14:25:32 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1588
Summary: Header conflict in powerpc registers and MPC55XX
registers
Product: RTEMS
Version: 4.10
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: bsps
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: dufault at hda.com
cpukit/score/cpu/powerpc/rtems/powerpc/registers.h has this:
/* Segment Registers */
#define SR0 0
#define SR1 1
...
#define SR15 15
and c/src/lib/libcpu/powerpc/mpc55xx/include/regs.h has this:
uint32_t SR15:1; /* Channel 15 Pending Service Status */
uint32_t SR14:1; /* Channel 14 Pending Service Status */
...
Resulting in:
In file included from bla.c:2:
/opt/rtems-4.10/powerpc-rtems4.10/phycore_mpc5554/lib/include/mpc55xx/regs.h:1813:
error: expected identifier or '(' before numeric constant
I'd probably change the #define to have a prefix such as PPCREG_SR0.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list