forked from Imagelibrary/rtems
tmtests/tm26: Fix context switch to FP task
It is wrong to restore the floating point context here. The _Context_Switch() ends up in _Thread_Handler() which will call _Thread_Restore_fp(). In _Thread_Do_dispatch() the FP restore is after the context switch.
This commit is contained in:
@@ -439,9 +439,6 @@ rtems_task Low_task(
|
||||
thread_disable_dispatch();
|
||||
|
||||
benchmark_timer_initialize();
|
||||
#if (CPU_HARDWARE_FP == 1) || (CPU_SOFTWARE_FP == 1)
|
||||
_Context_Restore_fp( &_Thread_Get_executing()->fp_context );
|
||||
#endif
|
||||
_Context_Switch(
|
||||
&executing->Registers,
|
||||
&_Thread_Get_executing()->Registers
|
||||
|
||||
Reference in New Issue
Block a user