[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FP context switching on i386
- Date: Sun, 04 Oct 2009 00:19:06 +0200
- From: Thomas.Doerfler at embedded-brains.de (Thomas Doerfler)
- Subject: FP context switching on i386
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