Changeset 0d36bfb3 in rtems


Ignore:
Timestamp:
Mar 20, 2015, 10:56:08 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
dc8ab440
Parents:
73a2caf
git-author:
Joel Sherrill <joel.sherrill@…> (03/20/15 22:56:08)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:16:36)
Message:

rtems/score/tls.h: Add casts to eliminate warnings on some targets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/tls.h

    r73a2caf r0d36bfb3  
    118118static inline void *_TLS_Copy_and_clear( void *tls_area )
    119119{
    120   tls_area = memcpy( tls_area, _TLS_Data_begin, (size_t) _TLS_Data_size );
     120  tls_area = memcpy(
     121    tls_area,
     122    _TLS_Data_begin,
     123    (size_t) ((uintptr_t)_TLS_Data_size)
     124  );
     125
    121126
    122127  memset(
    123     (char *) tls_area + (size_t) _TLS_BSS_begin - (size_t) _TLS_Data_begin,
     128    (char *) tls_area + (size_t)((intptr_t) _TLS_BSS_begin) -
     129      (size_t)((intptr_t) _TLS_Data_begin),
    124130    0,
    125     (size_t) _TLS_BSS_size
     131    ((size_t) (intptr_t)_TLS_BSS_size)
    126132  );
    127133
Note: See TracChangeset for help on using the changeset viewer.