This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc 2.1.92 tst-getdate failure on linuxppc
On Mon, 21 Aug 2000, Geoff Keating wrote:
> > From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
> > Date: Sun, 20 Aug 2000 13:24:04 +0200
> > Cc: libc-alpha@sources.redhat.com
> >
> > Test: not testing FE_NOMASK_ENV, it isn't implemented.
> >
> > in test-fenv.out? Can I just copy the implementations from another
> > platform? Which files do I need to look at as examples?
>
> It needs kernel support. You have to change the kernel to allow user
> control over the FP exception-enable bits of the MSR. Then you change
> the libc to switch these exceptions on (using the new interface) when
> FE_NOMASK_ENV is used for the first time in the program.
Hmm, if I read the kernel source correctly, FPE0 and FPE1 are always set to 1
for user tasks, so do we really need to modify these bits? If not, we can
just use _[SG]ET_FPUCW, or? Am I missing something here?
Franz.