Now uses the TO_PAGE_SIZE() macro already defined to round the debug area to a page size multiple.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13713 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1299,9 +1299,8 @@ rldelf_init(void)
|
||||
|
||||
// create the debug area
|
||||
{
|
||||
int32 size = (sizeof(runtime_loader_debug_area) + B_PAGE_SIZE - 1)
|
||||
/ B_PAGE_SIZE * B_PAGE_SIZE;
|
||||
|
||||
int32 size = TO_PAGE_SIZE(sizeof(runtime_loader_debug_area));
|
||||
|
||||
runtime_loader_debug_area *area;
|
||||
area_id areaID = _kern_create_area(RUNTIME_LOADER_DEBUG_AREA_NAME,
|
||||
(void **)&area, B_ANY_ADDRESS, size, B_NO_LOCK,
|
||||
|
||||
Reference in New Issue
Block a user