patch-2.3.20 linux/arch/ppc/kernel/traps.c

Next file: linux/arch/ppc/lib/locks.c
Previous file: linux/arch/ppc/kernel/smp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.19/linux/arch/ppc/kernel/traps.c linux/arch/ppc/kernel/traps.c
@@ -89,11 +89,11 @@
 {
 	if ( !user_mode(regs) )
 	{
-#ifdef CONFIG_MBX
-		/* the mbx pci read routines can cause machine checks -- Cort */
+#if defined(CONFIG_8xx) && defined(CONFIG_PCI)
+		/* the qspan pci read routines can cause machine checks -- Cort */
 		bad_page_fault(regs,regs->dar);
 		return;
-#endif /* CONFIG_MBX */
+#endif
 #if defined(CONFIG_XMON) || defined(CONFIG_KGDB)
 		if (debugger_fault_handler) {
 			debugger_fault_handler(regs);
@@ -241,10 +241,14 @@
 		panic("Kernel Mode Software FPU Emulation");
 	}
 
+#ifdef CONFIG_MATH_EMULATION
 	if ((errcode = do_mathemu(regs))) {
+#else
+	if ((errcode = Soft_emulate_8xx(regs))) {
+#endif
 		if (errcode > 0)
 			_exception(SIGFPE, regs);
-		else if (errcode == -EFAULT;
+		else if (errcode == -EFAULT)
 			_exception(SIGSEGV, regs);
 		else
 			_exception(SIGILL, regs);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)