#3486 closed enhancement (fixed)

Use uintptr_t and size_t instead of uint32_t in rtems_partition_create()

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: rtems Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Use uintptr_t to specify the length of the partition buffer area instead of uint32_t. This is in line with rtems_region_create(). On 64-bit targets, the length may exceed 4GiB. Use size_t for the buffer size, since on some targets the single object size is less than the overall address range, e.g. m32c sizeof(uintptr_t) > sizeof(size_t).

Change History (3)

comment:1 Changed on Aug 10, 2018 at 5:17:59 AM by Sebastian Huber <sebastian.huber@…>

In 66cb142/rtems:

rtems: Parameter types in rtems_partition_create()

Use uintptr_t to specify the length of the partition buffer area instead
of uint32_t. This is in line with rtems_region_create(). On 64-bit
targets, the length may exceed 4GiB. Use size_t for the buffer size,
since on some targets the single object size is less than the overall
address range, e.g. m32c sizeof(uintptr_t) > sizeof(size_t).

Update #3486.

comment:2 Changed on Aug 10, 2018 at 5:18:10 AM by Sebastian Huber <sebastian.huber@…>

In b2de426/rtems:

score: Fix _Addresses_Subtract()

Use architecture-specific integer type for an address difference.

Update #3486.

comment:3 Changed on Aug 10, 2018 at 5:20:18 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 0c4f2be/rtems-docs:

c-user: Adjust integer types in partition create

Close #3486.

Note: See TracTickets for help on using tickets.