Re: 2.1.97 SMP+UP works suddenly..+fpu_memcpy doesn't

Gerhard Koerting (G.Koerting@techem.ruhr-uni-bochum.de)
Thu, 23 Apr 1998 22:35:51 +0200


> > If you change fstenv/fsave to fnstenv/fnsave, fpu_memcpy should run with
> > SMP too. I'm using that for a long time, but I don't know why this makes
> > a difference.
>
> That did cure the problem. The only thing I notice now, is that fpu
> interrupts is climbing whereas previously (UP) it stayed at exactly 1.
>
Yes, with this patch the kernel sometimes doesn't detect that exception 16
works for fpu exceptions. As all SMP-capable processors (from Intel)
can use exception 16 I just diabled irq13 if compiling for SMP and CPU>=486.

--- linux/arch/i386/kernel/irq.c.old Tue Jul 8 19:42:04 1997
+++ linux/arch/i386/kernel/irq.c Tue Jul 8 19:42:22 1997
@@ -730,5 +730,7 @@
request_region(0x20,0x20,"pic1");
request_region(0xa0,0x20,"pic2");
setup_x86_irq(2, &irq2);
+#if !defined(__SMP__) || CPU == 386
setup_x86_irq(13, &irq13);
+#endif
}

-- 
Gerhard Koerting		FAX:   +49 2324 947418
Technical Chemistry		Email: G.Koerting@techem.ruhr-uni-bochum.de
Ruhr-University Bochum
D-44780 Bochum, Germany

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu