From e255c00a6d13c355b1fab79446f4c6eb0e2f8b64 Mon Sep 17 00:00:00 2001 From: Soren Sandmann Date: Mon, 23 Oct 2006 13:02:40 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ module/sysprof-module.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.7.4