You can't safely do FP instructions in the kernel. I do not
believe the FP context is saved/restored between processes in kernel
mode, only from user mode. The kernel saves and restores the fp state
in the few places it uses FP instructions (for memory copying).
In anycase, I think there'd be a problem here.
-Matt
:There's probably a way to include *some* of the libm functions (from
:/usr/src/lib/msun, since /usr/src/lib/libm is deprecated). However, this
:would require a considerable amount of Makefile magic, and also require that
:the msun code be present in order to do a complete build of the kernel with
:modules.
:
:I doubt that this requirement would make you many friends in -questions :)
:
:> I was thinking of just getting a sintable array and making a few simple
:> functions, so the whole of libm doesn't need to be statically linked into
:the
:> module (from my understanding, once loaded, this module wont ever get
:paged out,
:> and thus it'd be _bad_ for it to be big).
:
:This is probably the best way to go, IMO.
:
:--
:Matt Emmerton
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message