Changeset 66cb142 in rtems


Ignore:
Timestamp:
Aug 6, 2018, 8:51:00 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b2de426
Parents:
b8eae140
git-author:
Sebastian Huber <sebastian.huber@…> (08/06/18 08:51:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/10/18 05:14:43)
Message:

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.

Location:
cpukit
Files:
2 edited

Legend:

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

    rb8eae140 r66cb142  
    6262  void               *starting_address;
    6363  /** This field is the size of the Partition in bytes. */
    64   intptr_t            length;
     64  uintptr_t           length;
    6565  /** This field is the size of each buffer in bytes */
    66   uint32_t            buffer_size;
     66  size_t              buffer_size;
    6767  /** This field is the attribute set provided at create time. */
    6868  rtems_attribute     attribute_set;
    6969  /** This field is the of allocated buffers. */
    70   uint32_t            number_of_used_blocks;
     70  uintptr_t           number_of_used_blocks;
    7171  /** This field is the chain used to manage unallocated buffers. */
    7272  Chain_Control       Memory;
     
    8989  rtems_name       name,
    9090  void            *starting_address,
    91   uint32_t         length,
    92   uint32_t         buffer_size,
     91  uintptr_t        length,
     92  size_t           buffer_size,
    9393  rtems_attribute  attribute_set,
    9494  rtems_id        *id
  • cpukit/rtems/src/partcreate.c

    rb8eae140 r66cb142  
    4848  rtems_name       name,
    4949  void            *starting_address,
    50   uint32_t         length,
    51   uint32_t         buffer_size,
     50  uintptr_t        length,
     51  size_t           buffer_size,
    5252  rtems_attribute  attribute_set,
    5353  rtems_id        *id
Note: See TracChangeset for help on using the changeset viewer.