Re: Why all glibc2 programs are FPU programs

Adam J. Richter (adam@yggdrasil.com)
Tue, 26 May 1998 10:15:55 -0700


>> = David S. Miller
> = Ulrrich Drepper

>> extern int lib_ieee_set;
>>
>> if(lib_ieee_set)
>> set_fpu_cw(foo);
>> else
>> ; /* this is how the kernel sets it */

>This will not work if the kernel again changes this initialization value.

How about if we just declare that defaulting to IEEE compatible
math settings if no previous floating point instructions have
been executed is part of the semantics of set_personality(PER_LINUX)?
That call is executed just before the current setfpucw call.
Now we don't even have to execute an extra system call on every
program invocation and we can dispense with that floating point
instruction in every executable.

Anyhow, it's reasonable to expect makers of Linux distributions
and those of all GNU based operating systems to ship a kernel
that was kernel within, say, six months of when the C library that
they're shipping was current.

I would really like to be able to leave the math emulator off of the
boot floppy that I am putting together. Doing so will enable the
inclusion of scsi PCMCIA drivers. Having one floppy for all local
CDROM's will significantly effect how simple it is for users to
install a GNU/Linux system. There will probably be similar
consequences for a network install disk.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 205
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."

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