diff options
Diffstat (limited to 'cpukit/posix/src/pthreadcreate.c')
-rw-r--r-- | cpukit/posix/src/pthreadcreate.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c index 93e6fd89a5..47a408b333 100644 --- a/cpukit/posix/src/pthreadcreate.c +++ b/cpukit/posix/src/pthreadcreate.c @@ -97,6 +97,12 @@ int pthread_create( return EINVAL; /* + * Currently all POSIX threads are floating point if the hardware + * supports it. + */ + is_fp = true; + + /* * Core Thread Initialize ensures we get the minimum amount of * stack space if it is allowed to allocate it itself. * @@ -104,7 +110,7 @@ int pthread_create( * twice the minimum. */ if ( the_attr->stackaddr != NULL ) { - if ( !_Stack_Is_enough(the_attr->stacksize) ) { + if ( !_Stack_Is_enough( the_attr->stacksize, is_fp ) ) { return EINVAL; } @@ -192,12 +198,6 @@ int pthread_create( } /* - * Currently all POSIX threads are floating point if the hardware - * supports it. - */ - is_fp = true; - - /* * Allocate the thread control block. * * NOTE: Global threads are not currently supported. |