rtems: Change CONTEXT_FP_SIZE define

Define CONTEXT_FP_SIZE to zero in case hardware and software floating
point support is disabled.  The problem is that empty structures have a
different size in C and C++.  In C++ they have a non-zero size leading
to an overestimate of the workspace size.
This commit is contained in:
Sebastian Huber
2015-06-03 00:20:54 +02:00
parent 43d7005829
commit f455cdeabe

View File

@@ -43,7 +43,11 @@ extern "C" {
* This constant defines the number of bytes required
* to store a full floating point context.
*/
#define CONTEXT_FP_SIZE CPU_CONTEXT_FP_SIZE
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#define CONTEXT_FP_SIZE CPU_CONTEXT_FP_SIZE
#else
#define CONTEXT_FP_SIZE 0
#endif
/**
* @brief Initialize context area.