summaryrefslogtreecommitdiff
path: root/cpukit/include/rtems/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-09 14:48:34 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-12 09:08:36 +0100
commit01d59443b06ab351039cbc63a688cfa87f196ea0 (patch)
tree2044378caa3adc38cb494405d5618731f3686de2 /cpukit/include/rtems/score
parent4c9deb6c10ad2ccab37da5723748841dbc73f0d2 (diff)
score: Move thread stack allocation
Move thread stack allocation to caller side of _Thread_Initialize(). Update #3835.
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r--cpukit/include/rtems/score/thread.h2
-rw-r--r--cpukit/include/rtems/score/threadimpl.h9
2 files changed, 7 insertions, 4 deletions
diff --git a/cpukit/include/rtems/score/thread.h b/cpukit/include/rtems/score/thread.h
index 336be281bd..c70624f64a 100644
--- a/cpukit/include/rtems/score/thread.h
+++ b/cpukit/include/rtems/score/thread.h
@@ -83,8 +83,6 @@ extern "C" {
*/
#define RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT
-#define RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API
-
#if defined(RTEMS_DEBUG)
#define RTEMS_SCORE_THREAD_ENABLE_RESOURCE_COUNT
#endif
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h
index 54f6c8c797..b4b85ffa90 100644
--- a/cpukit/include/rtems/score/threadimpl.h
+++ b/cpukit/include/rtems/score/threadimpl.h
@@ -134,16 +134,21 @@ typedef struct {
const struct _Scheduler_Control *scheduler;
/**
- * @brief The starting address of the thread area.
+ * @brief The starting address of the stack area.
*/
void *stack_area;
/**
- * @brief The size of the thread area in bytes.
+ * @brief The size of the stack area in bytes.
*/
size_t stack_size;
/**
+ * @brief The address of the allocated stack area or NULL.
+ */
+ void *allocated_stack;
+
+ /**
* @brief The new thread's priority.
*/
Priority_Control priority;