summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/thread.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-02 21:43:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-09 09:05:50 +0200
commit335e5caa9a9e0f28acf94fe4c2871017fcd71794 (patch)
tree13eb37c82f52e2a0e6199eb03aad6590eeabc566 /cpukit/score/include/rtems/score/thread.h
parentsptests/spcontext01: Improve output (diff)
downloadrtems-335e5caa9a9e0f28acf94fe4c2871017fcd71794.tar.bz2
score: Add Thread_Control::is_fp
Store the floating-point unit property in the thread control block regardless of the CPU_HARDWARE_FP and CPU_SOFTWARE_FP settings. Make sure the floating-point unit is only enabled for the corresponding multilibs. This helps targets which have a volatile only floating point context like SPARC for example.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/thread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 39fcb1707f..c69646b26b 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -750,6 +750,8 @@ struct Thread_Control_struct {
#endif
/** This field is true if the thread is preemptible. */
bool is_preemptible;
+ /** This field is true if the thread uses the floating point unit. */
+ bool is_fp;
/**
* @brief Scheduler related control.