This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Re: libm use in kernel
- From: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- To: "'eCos Discuss'" <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 15 Nov 2010 11:24:46 -0800
- Subject: RE: [ECOS] Re: libm use in kernel
> From: Christophe Coutand
>
> I doubt there is any limitation that prevent LIBM to be used
> in driver code.
On the x86, how does eCos deal with the FP context? Does it include it as
part of every thread and DSR context, or just thread context? Does it rely
on the chip mechanism to defer FP context swapping until an actual FP
instruction is made following a thread switch? I can imagine a kernel
implementation that would assume that no DSR (let alone ISR) would ever use
FP, and which would crash and burn if one ever did. But I've never looked at
the x86 HAL.
--
Ciao, Paul D. DeRocco
Paul mailto:pderocco@ix.netcom.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss