mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-24 03:08:27 +08:00
score: Add RTEMS_ALIGNED()
This commit is contained in:
@@ -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