Module: xenomai-3
Branch: next
Commit: f522e9bd42c6f790c67716ee795d9db984640254
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=f522e9bd42c6f790c67716ee795d9db984640254

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Aug 14 09:36:27 2015 +0200

copperplate/heapobj-pshared: change rounding of page mapping array size

---

 lib/copperplate/heapobj-pshared.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/copperplate/heapobj-pshared.c 
b/lib/copperplate/heapobj-pshared.c
index 0df08c3..c1631e5 100644
--- a/lib/copperplate/heapobj-pshared.c
+++ b/lib/copperplate/heapobj-pshared.c
@@ -128,7 +128,7 @@ static inline size_t get_pagemap_size(size_t h)
         */
        assert((h & ~HOBJ_PAGE_MASK) == 0);
        return __align_to((h >> HOBJ_PAGE_SHIFT) * sizeof(struct page_entry)
-                         + sizeof(struct shared_extent), HOBJ_PAGE_SIZE);
+                         + sizeof(struct shared_extent), HOBJ_MINALIGNSZ);
 }
 
 static void init_extent(void *base, struct shared_extent *extent)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to