FP context switching on i386
Thomas Doerfler
Thomas.Doerfler at embedded-brains.de
Sat Oct 3 22:19:06 UTC 2009
Eric Valette schrieb:
> Thomas Doerfler wrote:
>> How is the FPU controlled in i386?
>
> Do not remember exactly. Have no data book handy here. Its clear that if
> it is and MSR bit, extra care shall be taken when restoring next
> runnable thread MSR.
That's not the only issue. since interrupt disable/enable also works
with MSR, a thread may have copys of the MSR that are not visible to the
thread dispatcher. So it is very important that the application modifes
the MSR only with proper macros, that do not change the FP bit.
Thomas.
>
> -- eric
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
--
--------------------------------------------
Embedded Brains GmbH
Thomas Doerfler Obere Lagerstr. 30
D-82178 Puchheim Germany
email: Thomas.Doerfler at embedded-brains.de
Phone: +49-89-18908079-2
Fax: +49-89-18908079-9
More information about the users
mailing list