From 4cb7d2e55de051dfa8e7b7ca9c6f74960e2fc719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 29 Jul 2009 15:46:21 +0000 Subject: [PATCH] * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31915 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index 70e873c9e9..eff22bbbaa 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -4503,7 +4503,7 @@ vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isUser, // fault and someone is already waiting for a write lock on the same address // space. This thread will then try to acquire the lock again and will // be queued after the writer. -#if 0 +# if 0 if (area) { struct stack_frame { #if defined(__INTEL__) || defined(__POWERPC__) || defined(__M68K__) @@ -4514,24 +4514,24 @@ vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isUser, #warning writeme #endif } frame; -#ifdef __INTEL__ +# ifdef __INTEL__ struct iframe* iframe = i386_get_user_iframe(); if (iframe == NULL) panic("iframe is NULL!"); status_t status = user_memcpy(&frame, (void*)iframe->ebp, sizeof(struct stack_frame)); -#elif defined(__POWERPC__) +# elif defined(__POWERPC__) struct iframe* iframe = ppc_get_user_iframe(); if (iframe == NULL) panic("iframe is NULL!"); status_t status = user_memcpy(&frame, (void*)iframe->r1, sizeof(struct stack_frame)); -#else -# warning "vm_page_fault() stack trace won't work" +# else +# warning "vm_page_fault() stack trace won't work" status = B_ERROR; -#endif +# endif dprintf("stack trace:\n"); int32 maxFrames = 50; @@ -4550,7 +4550,7 @@ vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isUser, sizeof(struct stack_frame)); } } -#endif // 0 (stack trace) +# endif // 0 (stack trace) rw_lock_read_unlock(&addressSpace->lock); #endif