Use PAGE_SIZE - 1 instead of 4096.

2006-10-23  Soren Sandmann <sandmann@daimi.au.dk>

	* module/sysprof-module.c (init_module): Use PAGE_SIZE - 1 instead
	of 4096.
This commit is contained in:
Soren Sandmann
2006-10-23 13:02:40 +00:00
committed by Søren Sandmann Pedersen
parent 4dd37d092c
commit e255c00a6d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-10-23 Soren Sandmann <sandmann@daimi.au.dk>
* module/sysprof-module.c (init_module): Use PAGE_SIZE - 1 instead
of 4096.
2006-10-22 Soren Sandmann <sandmann@daimi.au.dk>
Communicate traces to userspace through shared memory instead of

View File

@ -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;