mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 06:58:19 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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__
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user