2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>

* score/include/rtems/score/heap.h: Use uintptr_t for _H_uptr_t.
	* score/inline/rtems/score/address.inl: Remove
	RTEMS_CPU_HAS_16_BIT_ADDRESSES.
	Use uintptr_t for void* to address cast.
This commit is contained in:
Ralf Corsepius
2005-01-24 15:05:14 +00:00
parent a1ec1b9551
commit 14426c8fb8
3 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* score/include/rtems/score/heap.h: Use uintptr_t for _H_uptr_t.
* score/inline/rtems/score/address.inl: Remove
RTEMS_CPU_HAS_16_BIT_ADDRESSES.
Use uintptr_t for void* to address cast.
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* libcsupport/include/stdint.h: Use __PTRDIFF_TYPE for intptr_t.

View File

@@ -51,7 +51,7 @@ extern "C" {
* 'rtems/score/types.h' and used here.
*/
typedef unsigned long int _H_uptr_t;
typedef uintptr_t _H_uptr_t;
/**
* Forward reference

View File

@@ -80,10 +80,8 @@ RTEMS_INLINE_ROUTINE boolean _Addresses_Is_aligned (
{
#if (CPU_ALIGNMENT == 0)
return TRUE;
#elif defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
return ( ( (unsigned short)address % CPU_ALIGNMENT ) == 0 );
#else
return ( ( (uint32_t )address % CPU_ALIGNMENT ) == 0 );
return ( ( (uintptr_t)address % CPU_ALIGNMENT ) == 0 );
#endif
}