From df4e449c0972a703ce403332668a7bb3366d126a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 22 Sep 2009 20:55:28 +0800 Subject: [PATCH] Added allocate address to MM_Allocate's OOM fail --- Kernel/arch/x86/mm_virt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1