[PATCH 10/12] rtems: Delete Region_Control::starting_address

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Apr 8 06:49:25 UTC 2016


---
 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 17e6d18..60136c9 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 8ae52f3..eb7e4af 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 8f1f7c5..f6dfe82 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,
-- 
1.8.4.5




More information about the devel mailing list