From: David S. Miller Date: Fri, 17 Feb 2006 22:40:30 +0000 (-0800) Subject: [SPARC64]: Check for errors in hypervisor_tlb_lock(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12e126ad229abc718d05600027fcd5794c1e31e5;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [SPARC64]: Check for errors in hypervisor_tlb_lock(). Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 950d58082e2..bd9e3205674 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c @@ -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);