From: Soren Sandmann Date: Mon, 23 Oct 2006 13:02:40 +0000 (+0000) Subject: Use PAGE_SIZE - 1 instead of 4096. X-Git-Tag: 1.1.2~168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e255c00a6d13c355b1fab79446f4c6eb0e2f8b64;p=platform%2Fupstream%2Fsysprof.git Use PAGE_SIZE - 1 instead of 4096. 2006-10-23 Soren Sandmann * module/sysprof-module.c (init_module): Use PAGE_SIZE - 1 instead of 4096. --- diff --git a/ChangeLog b/ChangeLog index 08c4a60..c6411f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-23 Soren Sandmann + + * module/sysprof-module.c (init_module): Use PAGE_SIZE - 1 instead + of 4096. + 2006-10-22 Soren Sandmann Communicate traces to userspace through shared memory instead of diff --git a/module/sysprof-module.c b/module/sysprof-module.c index 04d667f..388f068 100644 --- a/module/sysprof-module.c +++ b/module/sysprof-module.c @@ -355,7 +355,7 @@ init_module(void) return ret; } - area_page = (unsigned long)&(area_backing[4096]) & PAGE_MASK; + area_page = ((unsigned long)area_backing + PAGE_SIZE - 1) & PAGE_MASK; area = (SysprofMmapArea *)area_page; area->head = 0;