From 09105be0f8e4b550c75d9cc5f4235852abbe8266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 17 Jul 2005 12:54:41 +0000 Subject: [PATCH] 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 --- src/system/runtime_loader/rldelf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/system/runtime_loader/rldelf.c b/src/system/runtime_loader/rldelf.c index eced023811..5902bc510f 100644 --- a/src/system/runtime_loader/rldelf.c +++ b/src/system/runtime_loader/rldelf.c @@ -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,