Modified by Osama Ashaikh
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_A/cmsis_os.h
- Revision:
- 85:ef0a22cdf839
- Parent:
- 49:77c8e4604045
- Child:
- 92:bc9729798a19
--- a/rtx/TARGET_CORTEX_A/cmsis_os.h Wed Jun 17 10:00:10 2015 +0100
+++ b/rtx/TARGET_CORTEX_A/cmsis_os.h Wed Jun 17 11:15:10 2015 +0100
@@ -264,6 +264,9 @@
osPriority tpriority; ///< initial thread priority
uint32_t instances; ///< maximum number of instances of that thread function
uint32_t stacksize; ///< stack size requirements in bytes; 0 is default stack size
+#ifdef __MBED_CMSIS_RTOS_CA9
+ uint32_t *stack_pointer; ///< pointer to the stack memory block
+#endif
} osThreadDef_t;
/// Timer Definition structure contains timer parameters.
@@ -356,10 +359,11 @@
#define osThreadDef(name, priority, instances, stacksz) \
extern const osThreadDef_t os_thread_def_##name
#else // define the object
-#if defined (__MBED_CMSIS_RTOS_CA9)
+#ifdef __MBED_CMSIS_RTOS_CA9
#define osThreadDef(name, priority, stacksz) \
+uint32_t os_thread_def_stack_##name [stacksz / sizeof(uint32_t)]; \
const osThreadDef_t os_thread_def_##name = \
-{ (name), (priority), 1, (stacksz) }
+{ (name), (priority), 1, (stacksz), (os_thread_def_stack_##name) }
#else
#define osThreadDef(name, priority, instances, stacksz) \
const osThreadDef_t os_thread_def_##name = \
