diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-23 17:17:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-23 17:19:08 +0200 |
commit | 218286bc055e9d9bcbefd3dfa2b38f92a95b15a6 (patch) | |
tree | dfd79ee383ba1192fa1a71d40bd52d5742601b76 /cpukit/posix | |
parent | posix: Include missing <stdint.h> (diff) | |
download | rtems-218286bc055e9d9bcbefd3dfa2b38f92a95b15a6.tar.bz2 |
score: Create stack implementation header
Move implementation specific parts of stack.h and stack.inl into new
header file stackimpl.h. The stack.h contains now only the application
visible API.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/pthreadattrsetstack.c | 7 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadattrsetstacksize.c | 6 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadcreate.c | 1 |
3 files changed, 8 insertions, 6 deletions
diff --git a/cpukit/posix/src/pthreadattrsetstack.c b/cpukit/posix/src/pthreadattrsetstack.c index 7c4f14b6a4..699d2fec93 100644 --- a/cpukit/posix/src/pthreadattrsetstack.c +++ b/cpukit/posix/src/pthreadattrsetstack.c @@ -21,11 +21,12 @@ #endif #if HAVE_DECL_PTHREAD_ATTR_SETSTACK -#include <pthread.h> -#include <errno.h> -#include <rtems/system.h> #include <rtems/posix/pthreadimpl.h> +#include <rtems/score/stackimpl.h> + +#include <pthread.h> +#include <errno.h> int pthread_attr_setstack( pthread_attr_t *attr, diff --git a/cpukit/posix/src/pthreadattrsetstacksize.c b/cpukit/posix/src/pthreadattrsetstacksize.c index 3fd78b3615..79c683b99f 100644 --- a/cpukit/posix/src/pthreadattrsetstacksize.c +++ b/cpukit/posix/src/pthreadattrsetstacksize.c @@ -20,12 +20,12 @@ #include "config.h" #endif +#include <rtems/posix/pthreadimpl.h> +#include <rtems/score/stackimpl.h> + #include <pthread.h> #include <errno.h> -#include <rtems/system.h> -#include <rtems/posix/pthreadimpl.h> - int pthread_attr_setstacksize( pthread_attr_t *attr, size_t stacksize diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c index fcac8d4e91..4742b596d6 100644 --- a/cpukit/posix/src/pthreadcreate.c +++ b/cpukit/posix/src/pthreadcreate.c @@ -31,6 +31,7 @@ #include <rtems/posix/time.h> #include <rtems/score/apimutex.h> #include <rtems/score/watchdogimpl.h> +#include <rtems/score/stackimpl.h> static inline size_t _POSIX_Threads_Ensure_minimum_stack ( size_t size |