]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[SPARC64]: Check for errors in hypervisor_tlb_lock().
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 17 Feb 2006 22:40:30 +0000 (14:40 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:31 +0000 (01:13 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/mm/init.c

index 950d58082e28ffb3d3668a9fa6555ec2200a1cac..bd9e3205674b5bae4ae3bd7d55fa551d8cd6a689 100644 (file)
@@ -510,6 +510,11 @@ static void __init hypervisor_tlb_lock(unsigned long vaddr,
                               "=&r" (arg3)
                             : "0" (func), "1" (arg0), "2" (arg1),
                               "3" (arg2), "4" (arg3));
+       if (arg0 != 0) {
+               prom_printf("hypervisor_tlb_lock[%lx:%lx:%lx:%lx]: "
+                           "errors with %lx\n", vaddr, 0, pte, mmu, arg0);
+               prom_halt();
+       }
 }
 
 static unsigned long kern_large_tte(unsigned long paddr);