diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-08-06 10:51:00 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-08-10 07:14:43 +0200 |
commit | 66cb14205416253df88a412f579956d8d6109794 (patch) | |
tree | 941ac9ed9ec67f06ae89ee54d85d04c35d2e30d9 /cpukit/rtems | |
parent | Add dummy PRI_MIN_KERN to <sys/priority.h> (diff) | |
download | rtems-66cb14205416253df88a412f579956d8d6109794.tar.bz2 |
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.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/partcreate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c index 2134b99e19..1a7304efa3 100644 --- a/cpukit/rtems/src/partcreate.c +++ b/cpukit/rtems/src/partcreate.c @@ -47,8 +47,8 @@ rtems_status_code rtems_partition_create( rtems_name name, void *starting_address, - uint32_t length, - uint32_t buffer_size, + uintptr_t length, + size_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) |