From 8fbb4dea9912d22c1758d38b843e406a263fdd42 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 27 Sep 2009 15:41:09 +0800 Subject: [PATCH] Debug --- Kernel/arch/x86/mm_phys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/arch/x86/mm_phys.c b/Kernel/arch/x86/mm_phys.c index 2727c018..acca5f5c 100644 --- a/Kernel/arch/x86/mm_phys.c +++ b/Kernel/arch/x86/mm_phys.c @@ -176,7 +176,7 @@ void MM_DerefPhys(tPAddr Addr) // Mark as free in bitmaps if( gaPageReferences[ Addr ] == 0 ) { - LOG("Freed 0x%x\n", Addr); + LOG("Freed 0x%x by %p\n", Addr<<12, __builtin_return_address(0)); gaPageBitmap[ Addr / 32 ] &= ~(1 << (Addr&31)); if(gaPageReferences[ Addr ] == 0) gaSuperBitmap[ Addr >> 10 ] &= ~(1 << ((Addr >> 5)&31)); -- 2.20.1