mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
score: Add RTEMS_ALIGNED()
This commit is contained in:
1 parent
a0c79c1f3f
commit
cd9ef18564
1 file changed
+9
@@ -235,6 +235,15 @@
|
||||
#define RTEMS_PACKED
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Instructs the compiler to enforce the specified alignment.
|
||||
*/
|
||||
#if defined(__GNUC__)
|
||||
#define RTEMS_ALIGNED( _alignment ) __attribute__((__aligned__(_alignment)))
|
||||
#else
|
||||
#define RTEMS_ALIGNED( _alignment )
|
||||
#endif
|
||||
|
||||
/* Provided for backward compatibility */
|
||||
#define RTEMS_COMPILER_PACKED_ATTRIBUTE RTEMS_PACKED
|
||||
|
||||
|
||||
Reference in new issue
Block a user