[PATCH 12/12] rtems: Delete Region_Control::page_size

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


---
 cpukit/libmisc/monitor/mon-region.c       | 2 +-
 cpukit/rtems/include/rtems/rtems/region.h | 1 -
 cpukit/rtems/src/regioncreate.c           | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/cpukit/libmisc/monitor/mon-region.c b/cpukit/libmisc/monitor/mon-region.c
index cc5c04b..8734222 100644
--- a/cpukit/libmisc/monitor/mon-region.c
+++ b/cpukit/libmisc/monitor/mon-region.c
@@ -24,7 +24,7 @@ rtems_monitor_region_canonical(
     canonical_region->attribute = rtems_region->attribute_set;
     canonical_region->start_addr = (void *) heap->area_begin;
     canonical_region->length = heap->area_end - heap->area_begin;
-    canonical_region->page_size = rtems_region->page_size;
+    canonical_region->page_size = heap->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 78f6686..4772e28 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             page_size;             /* in bytes               */
   uintptr_t             maximum_segment_size;  /* in bytes               */
   rtems_attribute       attribute_set;
   Heap_Control          Memory;
diff --git a/cpukit/rtems/src/regioncreate.c b/cpukit/rtems/src/regioncreate.c
index cb19416..430de3b 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->page_size     = page_size;
         the_region->attribute_set = attribute_set;
 
         _Objects_Open(
-- 
1.8.4.5




More information about the devel mailing list