diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-29 17:51:38 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-29 17:51:38 +0200 |
commit | b17fb17a56fd5f31093fbd5aee9b123501b90674 (patch) | |
tree | 19e1b9da1715c7c0b1c87398ac3e5af808eda71a /testsuites/tmtests | |
parent | 4a5a45045a2068b87cc6e7801b0147c853d165b3 (diff) |
Revert "tmtests/tm26: Avoid NULL pointer access"
There is no NULL pointer access. Please note that
_Thread_Get_executing() != executing variable in Low_task().
This reverts commit 5611839a7e2e371dd1f327c336c785095f634e55.
Diffstat (limited to 'testsuites/tmtests')
-rw-r--r-- | testsuites/tmtests/tm26/task1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c index ee662184c5..6cec7dafbb 100644 --- a/testsuites/tmtests/tm26/task1.c +++ b/testsuites/tmtests/tm26/task1.c @@ -439,6 +439,9 @@ 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 |