summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/threadimpl.h
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/threadimpl.h
parentscore: Add _Stack_Extend_size() (diff)
downloadrtems-01d59443b06ab351039cbc63a688cfa87f196ea0.tar.bz2
score: Move thread stack allocation
Move thread stack allocation to caller side of _Thread_Initialize(). Update #3835.
Diffstat (limited to 'cpukit/include/rtems/score/threadimpl.h')
-rw-r--r--cpukit/include/rtems/score/threadimpl.h9
1 files changed, 7 insertions, 2 deletions
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;