forked from Imagelibrary/rtems
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
* rtems/include/rtems/rtems/region.h: Include stddef.h for size_t. (rtems_region_get_segment_size): Use size_t instead of uint32_t for "size" (3rd arg). * rtems/src/regiongetsegmentsize.c: Reflect changes above. * libcsupport/src/malloc.c: Reflect changes above.
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* rtems/include/rtems/rtems/region.h:
|
||||||
|
Include stddef.h for size_t.
|
||||||
|
(rtems_region_get_segment_size): Use size_t instead of uint32_t for "size" (3rd arg).
|
||||||
|
* rtems/src/regiongetsegmentsize.c: Reflect changes above.
|
||||||
|
* libcsupport/src/malloc.c: Reflect changes above.
|
||||||
|
|
||||||
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
* aclocal/rtems-top.m4: Don't AC_SUBST(PROJECT_ROOT).
|
* aclocal/rtems-top.m4: Don't AC_SUBST(PROJECT_ROOT).
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ void *malloc(
|
|||||||
#ifdef MALLOC_STATS
|
#ifdef MALLOC_STATS
|
||||||
if (return_this)
|
if (return_this)
|
||||||
{
|
{
|
||||||
uint32_t actual_size;
|
size_t actual_size;
|
||||||
uint32_t current_depth;
|
uint32_t current_depth;
|
||||||
status = rtems_region_get_segment_size(
|
status = rtems_region_get_segment_size(
|
||||||
RTEMS_Malloc_Heap, return_this, &actual_size);
|
RTEMS_Malloc_Heap, return_this, &actual_size);
|
||||||
@@ -369,7 +369,7 @@ void free(
|
|||||||
|
|
||||||
#ifdef MALLOC_STATS
|
#ifdef MALLOC_STATS
|
||||||
{
|
{
|
||||||
uint32_t size;
|
size_t size;
|
||||||
status = rtems_region_get_segment_size( RTEMS_Malloc_Heap, ptr, &size );
|
status = rtems_region_get_segment_size( RTEMS_Malloc_Heap, ptr, &size );
|
||||||
if ( status == RTEMS_SUCCESSFUL ) {
|
if ( status == RTEMS_SUCCESSFUL ) {
|
||||||
MSBUMP(lifetime_freed, size);
|
MSBUMP(lifetime_freed, size);
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <rtems/score/object.h>
|
#include <rtems/score/object.h>
|
||||||
#include <rtems/score/threadq.h>
|
#include <rtems/score/threadq.h>
|
||||||
#include <rtems/score/heap.h>
|
#include <rtems/score/heap.h>
|
||||||
@@ -190,7 +192,7 @@ rtems_status_code rtems_region_get_segment(
|
|||||||
rtems_status_code rtems_region_get_segment_size(
|
rtems_status_code rtems_region_get_segment_size(
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
void *segment,
|
void *segment,
|
||||||
uint32_t *size
|
size_t *size
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
rtems_status_code rtems_region_get_segment_size(
|
rtems_status_code rtems_region_get_segment_size(
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
void *segment,
|
void *segment,
|
||||||
uint32_t *size
|
size_t *size
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
register Region_Control *the_region;
|
register Region_Control *the_region;
|
||||||
|
|||||||
Reference in New Issue
Block a user