diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-11-30 14:08:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-11-30 14:08:30 +0000 |
commit | 43b6f757ce6127d95778fe2eaa9e3a9fc3a06ae3 (patch) | |
tree | b8cce290191ffcee0ce79451897a0ce89aec6af2 /c/src/exec/score/macros/rtems/score/address.inl | |
parent | 2000-11-30 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-43b6f757ce6127d95778fe2eaa9e3a9fc3a06ae3.tar.bz2 |
2000-11-30 Joel Sherrill <joel@OARcorp.com>
* General effort to make things compile with macros not inlines
* inline/rtems/score/coremutex.inl: Added comment indicating
for macros there is another copy of
_CORE_mutex_Seize_interrupt_trylock() in src/coremutexseize.c.
* src/coremutexseize.c: Added body of
_CORE_mutex_Seize_interrupt_trylock() for macro case.
* macros/rtems/score/coremutex.inl: Added prototype for
_CORE_mutex_Seize_interrupt_trylock() since there is a real
body when macros are enabled.
* macros/rtems/score/coresem.inl: Added macro implementation of
_CORE_semaphore_Seize_isr_disable.
* macros/score/Makefile.am: Fixed typos.
* rtems/score/address.inl: Correct macro implementation of
_Addresses_Is_aligned() so it would compile.
* macros/rtems/score/coremsg.inl: Added closing parentheses.
Diffstat (limited to 'c/src/exec/score/macros/rtems/score/address.inl')
-rw-r--r-- | c/src/exec/score/macros/rtems/score/address.inl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/exec/score/macros/rtems/score/address.inl b/c/src/exec/score/macros/rtems/score/address.inl index 10623b1f76..24f9dc12e5 100644 --- a/c/src/exec/score/macros/rtems/score/address.inl +++ b/c/src/exec/score/macros/rtems/score/address.inl @@ -52,12 +52,14 @@ */ #if (CPU_ALIGNMENT == 0) +#define _Addresses_Is_aligned( _address ) \ (TRUE) #elif defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES) +#define _Addresses_Is_aligned( _address ) \ ( ( (unsigned short)(_address) % CPU_ALIGNMENT ) == 0 ) +#else #define _Addresses_Is_aligned( _address ) \ ( ( (unsigned32)(_address) % CPU_ALIGNMENT ) == 0 ) -#else #endif /*PAGE |