[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FP context switching on i386



Till Straumann wrote:
> Thomas Doerfler wrote:
>> Till,
>>
>> although I am not at all familiar with i386 ABI stuff, I would guess
>> that we have to save the context during a task switch, at least when it
>> was forced due to a interrupt (e.g. timer) event. In these cases there
>> is no function call involved for the function that uses the FP context.
>>   
> I think you're right, Thanks.

The most efficient way is to do  is lasy FP saving: you disable the 387
while noting the task that was using it and get an exception is someone
wants to use FPU registers...

-- eric