2.1.75 compilation fix for coprocessor emulation

Pavel Machek (pavel@Elf.mj.gts.cz)
Wed, 24 Dec 1997 14:45:13 +0100


Hi!

This trivial change is needed for compilation of 2.1.75 for machine
with emulated FPU. Please include in .76.

Pavel

--- clean/arch/i386/kernel/ptrace.c Fri Dec 19 10:42:12 1997
+++ linux/arch/i386/kernel/ptrace.c Wed Dec 24 13:43:12 1997
@@ -611,7 +611,7 @@
child->tss.i387.hard.twd = 0xffffffff;
}
#ifdef CONFIG_MATH_EMULATION
- if ( hard_math ) {
+ if ( boot_cpu_data.hard_math ) {
#endif
if (last_task_used_math == child) {
clts();
@@ -639,7 +639,7 @@
}
child->used_math = 1;
#ifdef CONFIG_MATH_EMULATION
- if ( hard_math ) {
+ if ( boot_cpu_data.hard_math ) {
#endif
if (last_task_used_math == child) {
/* Discard the state of the FPU */

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).