Changeset 14426c8f in rtems


Ignore:
Timestamp:
Jan 24, 2005, 3:05:14 PM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
609b924
Parents:
a1ec1b9
Message:

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

  • 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.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    ra1ec1b9 r14426c8f  
     12005-01-24      Ralf Corsepius <ralf.corsepius@rtems.org>
     2
     3        * score/include/rtems/score/heap.h: Use uintptr_t for _H_uptr_t.
     4        * score/inline/rtems/score/address.inl: Remove
     5        RTEMS_CPU_HAS_16_BIT_ADDRESSES.
     6        Use uintptr_t for void* to address cast.
     7
    182005-01-24      Ralf Corsepius <ralf.corsepius@rtems.org>
    29
  • cpukit/score/include/rtems/score/heap.h

    ra1ec1b9 r14426c8f  
    5252 */
    5353
    54 typedef unsigned long int _H_uptr_t;
     54typedef uintptr_t _H_uptr_t;
    5555
    5656/**
  • cpukit/score/inline/rtems/score/address.inl

    ra1ec1b9 r14426c8f  
    8181#if (CPU_ALIGNMENT == 0)
    8282    return TRUE;
    83 #elif defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
    84     return ( ( (unsigned short)address % CPU_ALIGNMENT ) == 0 );
    8583#else
    86     return ( ( (uint32_t  )address % CPU_ALIGNMENT ) == 0 );
     84    return ( ( (uintptr_t)address % CPU_ALIGNMENT ) == 0 );
    8785#endif
    8886}
Note: See TracChangeset for help on using the changeset viewer.