2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>

* rtems/include/rtems/rtems/region.h,
	rtems/include/rtems/rtems/support.h,
	rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c,
	rtems/src/workspace.c: Revert ssize_t patch.
This commit is contained in:
Joel Sherrill
2008-12-01 17:31:11 +00:00
parent 63ca296656
commit e65f596dfd
6 changed files with 23 additions and 55 deletions

View File

@@ -1,3 +1,10 @@
2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/include/rtems/rtems/region.h,
rtems/include/rtems/rtems/support.h,
rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c,
rtems/src/workspace.c: Revert ssize_t patch.
2008-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/Makefile.am, score/include/rtems/score/watchdog.h: Add

View File

@@ -66,53 +66,14 @@ extern "C" {
*/
typedef struct {
/**
* This field is the object management portion of a Region instance.
*/
Objects_Control Object;
/**
* This is the set of threads blocked waiting on memory.
*/
Thread_queue_Control Wait_queue;
/**
* This is the physical starting address of the Region area.
*/
void *starting_address;
/**
* This is the physical length (in bytes) of the Region memory.
*/
uint32_t length;
/**
* This is the physical page size (in bytes) of each allocated segment.
*/
uint32_t page_size;
/**
* This is the maximum segment size (in bytes) that can ever be allocated
* from this Region. It is calculated at creation time.
*/
uint32_t maximum_segment_size;
/**
* This is the Classic API attribute provided to the create directive.
* It is translated into behavioral attributes on the SuperCore Heap
* instance.
*/
Thread_queue_Control Wait_queue; /* waiting threads */
void *starting_address; /* physical start addr */
uint32_t length; /* physical length(bytes) */
uint32_t page_size; /* in bytes */
uint32_t maximum_segment_size; /* in bytes */
rtems_attribute attribute_set;
/**
* This is the number of blocks currently allocated from this Region.
*/
uint32_t number_of_used_blocks;
/**
* This is the Heap instance which implements the core functionality
* of a Region instance.
*/
uint32_t number_of_used_blocks; /* blocks allocated */
Heap_Control Memory;
} Region_Control;
@@ -240,7 +201,7 @@ rtems_status_code rtems_region_get_segment(
rtems_status_code rtems_region_get_segment_size(
Objects_Id id,
void *segment,
ssize_t *size
size_t *size
);
/**
@@ -282,8 +243,8 @@ rtems_status_code rtems_region_return_segment(
rtems_status_code rtems_region_resize_segment(
Objects_Id id,
void *segment,
ssize_t size,
ssize_t *old_size
size_t size,
size_t *old_size
);
#ifndef __RTEMS_APPLICATION__

View File

@@ -79,8 +79,8 @@ bool rtems_workspace_get_information(
* @return TRUE if successful
*/
bool rtems_workspace_allocate(
ssize_t bytes,
void **pointer
size_t bytes,
void **pointer
);
/**

View File

@@ -45,7 +45,7 @@
rtems_status_code rtems_region_get_segment_size(
Objects_Id id,
void *segment,
ssize_t *size
size_t *size
)
{
Objects_Locations location;

View File

@@ -46,8 +46,8 @@
rtems_status_code rtems_region_resize_segment(
Objects_Id id,
void *segment,
ssize_t size,
ssize_t *old_size
size_t size,
size_t *old_size
)
{
uint32_t avail_size;

View File

@@ -39,8 +39,8 @@ bool rtems_workspace_get_information(
* _Workspace_Allocate
*/
bool rtems_workspace_allocate(
ssize_t bytes,
void **pointer
size_t bytes,
void **pointer
)
{
*pointer = _Heap_Allocate( &_Workspace_Area, bytes );