summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/region.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-14 22:48:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-14 22:48:54 +0000
commit41eb1e40900196835f903485a6f81637e6b2210f (patch)
tree9a2f3040ad704b84d5ab79efcc8c441ec5f326ad /cpukit/rtems/include/rtems/rtems/region.h
parent2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-41eb1e40900196835f903485a6f81637e6b2210f.tar.bz2
2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/realloc.c, rtems/include/rtems/rtems/region.h, rtems/src/regioncreate.c, rtems/src/regionextend.c, rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c, rtems/src/regionmp.c, rtems/src/regionresizesegment.c, sapi/include/rtems/config.h, score/include/rtems/score/heap.h, score/include/rtems/score/protectedheap.h, score/src/heap.c, score/src/heapallocate.c, score/src/heapallocatealigned.c, score/src/heapextend.c, score/src/heapresizeblock.c, score/src/heapsizeofuserarea.c, score/src/pheapallocate.c, score/src/pheapallocatealigned.c, score/src/pheapextend.c, score/src/pheapgetblocksize.c, score/src/pheapresizeblock.c: Change sizes of heap/region and allocated objects in heap to intptr_t so they can be larger than a single allocatable object (e.g. size_t).
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/include/rtems/rtems/region.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/region.h b/cpukit/rtems/include/rtems/rtems/region.h
index 74d66ea334..085b317a2c 100644
--- a/cpukit/rtems/include/rtems/rtems/region.h
+++ b/cpukit/rtems/include/rtems/rtems/region.h
@@ -69,9 +69,9 @@ typedef struct {
Objects_Control Object;
Thread_queue_Control Wait_queue; /* waiting threads */
void *starting_address; /* physical start addr */
- uint32_t length; /* physical length(bytes) */
+ intptr_t length; /* physical length(bytes) */
uint32_t page_size; /* in bytes */
- uint32_t maximum_segment_size; /* in bytes */
+ intptr_t maximum_segment_size; /* in bytes */
rtems_attribute attribute_set;
uint32_t number_of_used_blocks; /* blocks allocated */
Heap_Control Memory;
@@ -106,7 +106,7 @@ void _Region_Manager_initialization(
rtems_status_code rtems_region_create(
rtems_name name,
void *starting_address,
- uint32_t length,
+ intptr_t length,
uint32_t page_size,
rtems_attribute attribute_set,
Objects_Id *id
@@ -123,7 +123,7 @@ rtems_status_code rtems_region_create(
rtems_status_code rtems_region_extend(
Objects_Id id,
void *starting_address,
- uint32_t length
+ intptr_t length
);
/**
@@ -186,7 +186,7 @@ rtems_status_code rtems_region_delete(
*/
rtems_status_code rtems_region_get_segment(
Objects_Id id,
- uint32_t size,
+ intptr_t size,
rtems_option option_set,
rtems_interval timeout,
void **segment
@@ -201,7 +201,7 @@ rtems_status_code rtems_region_get_segment(
rtems_status_code rtems_region_get_segment_size(
Objects_Id id,
void *segment,
- size_t *size
+ intptr_t *size
);
/**
@@ -243,8 +243,8 @@ rtems_status_code rtems_region_return_segment(
rtems_status_code rtems_region_resize_segment(
Objects_Id id,
void *segment,
- size_t size,
- size_t *old_size
+ intptr_t size,
+ intptr_t *old_size
);
#ifndef __RTEMS_APPLICATION__