[PATCH 11/12] rtems: Delete Region_Control::length
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Apr 8 06:49:26 UTC 2016
---
cpukit/libmisc/monitor/mon-region.c | 2 +-
cpukit/rtems/include/rtems/rtems/region.h | 1 -
cpukit/rtems/src/regioncreate.c | 1 -
cpukit/rtems/src/regionextend.c | 1 -
4 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/cpukit/libmisc/monitor/mon-region.c b/cpukit/libmisc/monitor/mon-region.c
index 60136c9..cc5c04b 100644
--- a/cpukit/libmisc/monitor/mon-region.c
+++ b/cpukit/libmisc/monitor/mon-region.c
@@ -23,7 +23,7 @@ rtems_monitor_region_canonical(
canonical_region->attribute = rtems_region->attribute_set;
canonical_region->start_addr = (void *) heap->area_begin;
- canonical_region->length = rtems_region->length;
+ canonical_region->length = heap->area_end - heap->area_begin;
canonical_region->page_size = rtems_region->page_size;
canonical_region->max_seg_size = rtems_region->maximum_segment_size;
canonical_region->used_blocks = heap->stats.used_blocks;
diff --git a/cpukit/rtems/include/rtems/rtems/region.h b/cpukit/rtems/include/rtems/rtems/region.h
index eb7e4af..78f6686 100644
--- a/cpukit/rtems/include/rtems/rtems/region.h
+++ b/cpukit/rtems/include/rtems/rtems/region.h
@@ -60,7 +60,6 @@ typedef struct {
Objects_Control Object;
Thread_queue_Control Wait_queue; /* waiting threads */
const Thread_queue_Operations *wait_operations;
- uintptr_t length; /* physical length(bytes) */
uintptr_t page_size; /* in bytes */
uintptr_t maximum_segment_size; /* in bytes */
rtems_attribute attribute_set;
diff --git a/cpukit/rtems/src/regioncreate.c b/cpukit/rtems/src/regioncreate.c
index f6dfe82..cb19416 100644
--- a/cpukit/rtems/src/regioncreate.c
+++ b/cpukit/rtems/src/regioncreate.c
@@ -87,7 +87,6 @@ rtems_status_code rtems_region_create(
_Region_Free( the_region );
return_status = RTEMS_INVALID_SIZE;
} else {
- the_region->length = length;
the_region->page_size = page_size;
the_region->attribute_set = attribute_set;
diff --git a/cpukit/rtems/src/regionextend.c b/cpukit/rtems/src/regionextend.c
index e6cadf8..3153889 100644
--- a/cpukit/rtems/src/regionextend.c
+++ b/cpukit/rtems/src/regionextend.c
@@ -48,7 +48,6 @@ rtems_status_code rtems_region_extend(
);
if ( amount_extended > 0 ) {
- the_region->length += amount_extended;
the_region->maximum_segment_size += amount_extended;
status = RTEMS_SUCCESSFUL;
} else {
--
1.8.4.5
More information about the devel
mailing list