summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/inline/rtems/score/address.inl
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/score/inline/rtems/score/address.inl')
-rw-r--r--c/src/exec/score/inline/rtems/score/address.inl4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/exec/score/inline/rtems/score/address.inl b/c/src/exec/score/inline/rtems/score/address.inl
index 1a77e617d7..b9a0373aff 100644
--- a/c/src/exec/score/inline/rtems/score/address.inl
+++ b/c/src/exec/score/inline/rtems/score/address.inl
@@ -90,7 +90,11 @@ RTEMS_INLINE_ROUTINE boolean _Addresses_Is_aligned (
void *address
)
{
+#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
+ return ( ( (unsigned short)address % CPU_ALIGNMENT ) == 0 );
+#else
return ( ( (unsigned32)address % CPU_ALIGNMENT ) == 0 );
+#endif
}
/*PAGE