Changeset f455cdea in rtems


Ignore:
Timestamp:
Jun 2, 2015, 10:20:54 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
b2765075
Parents:
43d7005
git-author:
Sebastian Huber <sebastian.huber@…> (06/02/15 22:20:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/03/15 07:20:51)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/context.h

    r43d7005 rf455cdea  
    4444 *  to store a full floating point context.
    4545 */
    46 #define CONTEXT_FP_SIZE CPU_CONTEXT_FP_SIZE
     46#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
     47  #define CONTEXT_FP_SIZE CPU_CONTEXT_FP_SIZE
     48#else
     49  #define CONTEXT_FP_SIZE 0
     50#endif
    4751
    4852/**
Note: See TracChangeset for help on using the changeset viewer.