[En-Nut-Discussion] Will the FPU from the STM32F4xx supported (context.c)?
Ole Reinhardt
ole.reinhardt at embedded-it.de
Mon Sep 2 11:12:45 CEST 2013
Hi!
> You should be save if you only use the FPU in _one_ thread. Making the FPU
> context-switch/thread safe should be a configurable item, as there are many
> cases where it is not needed and the related overhead is not wanted.
If the FPU is available, how can you be sure _not_ to use the FPU? Won't
it be used implicitly by the compiler if a flotingpoint calculation is
executed? This may even be used by a library which you are not aware of.
So i would suggest to add the FPU registers to the context switch by
default and add a configuration option to _not_ save them if really wanted!
Bye,
Ole
--
kernel concepts GmbH Tel: +49-271-771091-14
Sieghuetter Hauptweg 48 Mob: +49-177-7420433
D-57072 Siegen
http://www.embedded-it.de
http://www.kernelconcepts.de
More information about the En-Nut-Discussion
mailing list