[Bug 1967] New: Concern over OBJECTS_NAME_ALIGNMENT
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Mon Nov 21 16:25:50 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1967
Summary: Concern over OBJECTS_NAME_ALIGNMENT
Product: RTEMS
Version: HEAD
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: cpukit
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: gedare at rtems.org
I was just browsing some code in score/object.h:
typedef union {
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/** This is a pointer to a string name. */
const char *name_p;
#endif
/** This is the actual 32-bit "raw" integer name. */
uint32_t name_u32;
} Objects_Name;
#define OBJECTS_NAME_ALIGNMENT sizeof( uint32_t )
If the alignment requirement for the CPU is worse than 32-bits then this
alignment constant is probably wrong. What worries me is when the pointer
(name_p) is larger than 32-bits.
--
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