Changeset cfe68385 in rtems


Ignore:
Timestamp:
Feb 21, 2020, 6:28:13 AM (22 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
0561cc1
Parents:
c7f748a
git-author:
Sebastian Huber <sebastian.huber@…> (02/21/20 06:28:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/25/20 06:18:36)
Message:

config: Improve _Configure_From_workspace()

Commit 4c09f4b3fefc7ba5c5868a97ad00c1ee14a06677 changed the cast from
size_t to ssize_t to try to fix an workspace issue on 16-bit
architectures. This change was reverted by commit
7ff6115b8b913d848b8fe76daf72ca0b4bbf2548 for the workspace but not
_Configure_From_workspace(). Change the cast to uintptr_t to be in line
with the Heap Handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/confdefs.h

    rc7f748a rcfe68385  
    12401240 */
    12411241#define _Configure_From_workspace(_size) \
    1242   (ssize_t) (_Configure_Zero_or_One(_size) * \
     1242  (uintptr_t) (_Configure_Zero_or_One(_size) * \
    12431243    _Configure_Align_up(_size + HEAP_BLOCK_HEADER_SIZE, \
    12441244      _CONFIGURE_HEAP_MIN_BLOCK_SIZE))
Note: See TracChangeset for help on using the changeset viewer.