From cdb638a8ee25acb67a8feeec221454f7d2dea8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 17 Jun 2010 07:24:19 +0000 Subject: [PATCH] * Seems like someone wasn't quite awake when doing these changes; the kernel now compiles again with tracing turned on. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37162 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/debug/tracing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/kernel/debug/tracing.cpp b/src/system/kernel/debug/tracing.cpp index 68980420b4..c48d0a0253 100644 --- a/src/system/kernel/debug/tracing.cpp +++ b/src/system/kernel/debug/tracing.cpp @@ -423,8 +423,8 @@ TracingMetaData::_CreateMetaDataArea(bool findPrevious, area_id& _area, physical_address_restrictions physicalRestrictions = {}; physicalRestrictions.low_address = metaDataAddress; physicalRestrictions.high_address = metaDataAddress + B_PAGE_SIZE; - area_id create_area_etc(B_SYSTEM_TEAM, "tracing metadata", B_PAGE_SIZE, - B_FULL_LOCK, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, + area_id area = create_area_etc(B_SYSTEM_TEAM, "tracing metadata", + B_PAGE_SIZE, B_FULL_LOCK, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, CREATE_AREA_DONT_CLEAR, &virtualRestrictions, &physicalRestrictions, (void**)&metaData); if (area < 0) @@ -478,7 +478,7 @@ TracingMetaData::_InitPreviousTracingData() physical_address_restrictions physicalRestrictions = {}; physicalRestrictions.low_address = fPhysicalAddress; physicalRestrictions.high_address = fPhysicalAddress - + ROUNDUP(kTraceOutputBufferSize + MAX_TRACE_SIZE); + + ROUNDUP(kTraceOutputBufferSize + MAX_TRACE_SIZE, B_PAGE_SIZE); area_id area = create_area_etc(B_SYSTEM_TEAM, "tracing log", kTraceOutputBufferSize + MAX_TRACE_SIZE, B_CONTIGUOUS, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, CREATE_AREA_DONT_CLEAR,