From: John Hodge Date: Tue, 22 Sep 2009 12:55:28 +0000 (+0800) Subject: Added allocate address to MM_Allocate's OOM fail X-Git-Tag: rel0.06~535 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=df4e449c0972a703ce403332668a7bb3366d126a;p=tpg%2Facess2.git Added allocate address to MM_Allocate's OOM fail --- diff --git a/Kernel/arch/x86/mm_virt.c b/Kernel/arch/x86/mm_virt.c index 3f23d35c..a022da2b 100644 --- a/Kernel/arch/x86/mm_virt.c +++ b/Kernel/arch/x86/mm_virt.c @@ -232,7 +232,8 @@ tPAddr MM_Allocate(Uint VAddr) // Allocate paddr = MM_AllocPhys(); if( paddr == 0 ) { - Warning("MM_Allocate - Out of Memory (Called by %p)", __builtin_return_address(0)); + Warning("MM_Allocate - Out of Memory when allocating at %p (Called by %p)", + VAddr, __builtin_return_address(0)); return 0; } // Map