Ignore:
Timestamp:
Aug 6, 2018, 9:53:42 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
0fc87d47
Parents:
66cb142
git-author:
Sebastian Huber <sebastian.huber@…> (08/06/18 09:53:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/10/18 05:14:43)
Message:

score: Fix _Addresses_Subtract()

Use architecture-specific integer type for an address difference.

Update #3486.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/dpmemexternal2internal.c

    r66cb142 rb2de426  
    3030  Dual_ported_memory_Control *the_port;
    3131  ISR_lock_Context            lock_context;
    32   uint32_t                    ending;
     32  uintptr_t                   length;
    3333
    3434  if ( internal == NULL ) {
     
    4242  }
    4343
    44   ending = _Addresses_Subtract( external, the_port->external_base );
     44  length = (uintptr_t) _Addresses_Subtract( external, the_port->external_base );
    4545
    46   if ( ending > the_port->length ) {
     46  if ( length > the_port->length ) {
    4747    *internal = external;
    4848  } else {
    49     *internal = _Addresses_Add_offset( the_port->internal_base, ending );
     49    *internal = _Addresses_Add_offset( the_port->internal_base, length );
    5050  }
    5151
Note: See TracChangeset for help on using the changeset viewer.