Added allocate address to MM_Allocate's OOM fail
authorJohn Hodge <[email protected]>
Tue, 22 Sep 2009 12:55:28 +0000 (20:55 +0800)
committerJohn Hodge <[email protected]>
Tue, 22 Sep 2009 12:55:28 +0000 (20:55 +0800)
Kernel/arch/x86/mm_virt.c

index 3f23d35..a022da2 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au