From bacf79e0b981e9e3796fb6e3a9d9b39ed476d60d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 13 Sep 2009 21:00:11 +0000 Subject: 2009-09-13 Joel Sherrill * score/include/rtems/score/thread.h, score/src/threadinitialize.c, score/src/threadstackfree.c: Disable capability for API to let user provide thread stack when no API configured includes this capability. --- cpukit/score/include/rtems/score/thread.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'cpukit/score/include') diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 5d3dc43634..ed5b475cd1 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -35,6 +35,9 @@ #define RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT #endif +#if defined(RTEMS_POSIX_API) + #define RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API +#endif #ifdef __cplusplus extern "C" { @@ -218,14 +221,16 @@ typedef struct { uint32_t isr_level; /** This field is the initial priority. */ Priority_Control initial_priority; - /** This field indicates whether the SuperCore allocated the stack. */ - bool core_allocated_stack; + #if defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) + /** This field indicates whether the SuperCore allocated the stack. */ + bool core_allocated_stack; + #endif /** This field is the stack information. */ Stack_Control Initial_stack; -#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) - /** This field is the initial FP context area address. */ - Context_Control_fp *fp_context; -#endif + #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) + /** This field is the initial FP context area address. */ + Context_Control_fp *fp_context; + #endif /** This field is the initial stack area address. */ void *stack; } Thread_Start_information; -- cgit v1.2.3