Fix the diagnostic dump for the XTLB refill handler.
authorMaciej W. Rozycki <macro@linux-mips.org>
Wed, 29 Jun 2005 10:43:51 +0000 (10:43 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:31:32 +0000 (19:31 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlbex.c

index c7b3bf2..19bf0cc 100644 (file)
@@ -1238,8 +1238,15 @@ static void __init build_r4000_tlb_refill_handler(void)
        {
                int i;
 
+               f = final_handler;
+#ifdef CONFIG_64BIT
+               if (final_len > 32)
+                       final_len = 64;
+               else
+                       f = final_handler + 32;
+#endif /* CONFIG_64BIT */
                for (i = 0; i < final_len; i++)
-                       printk("%08x\n", final_handler[i]);
+                       printk("%08x\n", f[i]);
        }
 #endif