From acf7cf3bdb2ec984525621bceb2c135931a0bc26 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 8 Apr 2016 08:12:06 +0200 Subject: rtems: Delete Region_Control::starting_address --- cpukit/libmisc/monitor/mon-region.c | 2 +- cpukit/rtems/include/rtems/rtems/region.h | 1 - cpukit/rtems/src/regioncreate.c | 7 +++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cpukit/libmisc/monitor/mon-region.c b/cpukit/libmisc/monitor/mon-region.c index 17e6d185cb..60136c9759 100644 --- a/cpukit/libmisc/monitor/mon-region.c +++ b/cpukit/libmisc/monitor/mon-region.c @@ -22,7 +22,7 @@ rtems_monitor_region_canonical( const Heap_Control *heap = &rtems_region->Memory; canonical_region->attribute = rtems_region->attribute_set; - canonical_region->start_addr = rtems_region->starting_address; + canonical_region->start_addr = (void *) heap->area_begin; canonical_region->length = rtems_region->length; canonical_region->page_size = rtems_region->page_size; canonical_region->max_seg_size = rtems_region->maximum_segment_size; diff --git a/cpukit/rtems/include/rtems/rtems/region.h b/cpukit/rtems/include/rtems/rtems/region.h index 8ae52f3e2b..eb7e4af93a 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; - void *starting_address; /* physical start addr */ uintptr_t length; /* physical length(bytes) */ uintptr_t page_size; /* in bytes */ uintptr_t maximum_segment_size; /* in bytes */ diff --git a/cpukit/rtems/src/regioncreate.c b/cpukit/rtems/src/regioncreate.c index 8f1f7c5669..f6dfe8210c 100644 --- a/cpukit/rtems/src/regioncreate.c +++ b/cpukit/rtems/src/regioncreate.c @@ -87,10 +87,9 @@ rtems_status_code rtems_region_create( _Region_Free( the_region ); return_status = RTEMS_INVALID_SIZE; } else { - the_region->starting_address = starting_address; - the_region->length = length; - the_region->page_size = page_size; - the_region->attribute_set = attribute_set; + the_region->length = length; + the_region->page_size = page_size; + the_region->attribute_set = attribute_set; _Objects_Open( &_Region_Information, -- cgit v1.2.3