diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-26 10:06:37 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-26 10:06:37 +0000 |
commit | e628eeb8528f8d23d47ca5bf04ab0ee4fe3238ca (patch) | |
tree | 517c755ff9c0440526906985d15083595d83bebc | |
parent | c2a407c4d58b69cda4c1f7504bbf79c1aeffb594 (diff) | |
download | ChibiOS-e628eeb8528f8d23d47ca5bf04ab0ee4fe3238ca.tar.gz ChibiOS-e628eeb8528f8d23d47ca5bf04ab0ee4fe3238ca.tar.bz2 ChibiOS-e628eeb8528f8d23d47ca5bf04ab0ee4fe3238ca.zip |
Removed idle working area from the 'ch' structure because alignment constraints.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8949 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/rt/include/chschd.h | 6 | ||||
-rw-r--r-- | os/rt/src/chsys.c | 11 |
2 files changed, 9 insertions, 8 deletions
diff --git a/os/rt/include/chschd.h b/os/rt/include/chschd.h index 6af0cdedb..f442286c9 100644 --- a/os/rt/include/chschd.h +++ b/os/rt/include/chschd.h @@ -490,12 +490,6 @@ struct ch_system { */
kernel_stats_t kernel_stats;
#endif
-#if CH_CFG_NO_IDLE_THREAD == FALSE
- /**
- * @brief Idle thread working area.
- */
- THD_WORKING_AREA(idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE);
-#endif
};
/*===========================================================================*/
diff --git a/os/rt/src/chsys.c b/os/rt/src/chsys.c index d9ca6d81a..850b9b5a9 100644 --- a/os/rt/src/chsys.c +++ b/os/rt/src/chsys.c @@ -39,6 +39,13 @@ /* Module exported variables. */
/*===========================================================================*/
+#if (CH_CFG_NO_IDLE_THREAD == FALSE) || defined(__DOXYGEN__)
+/**
+ * @brief Idle thread working area.
+ */
+THD_WORKING_AREA(ch_idle_thread_wa, PORT_IDLE_THREAD_STACK_SIZE);
+#endif
+
/*===========================================================================*/
/* Module local types. */
/*===========================================================================*/
@@ -152,8 +159,8 @@ void chSysInit(void) { {
static const thread_descriptor_t idle_descriptor = {
"idle",
- THD_WORKING_AREA_BASE(ch.idle_thread_wa),
- THD_WORKING_AREA_END(ch.idle_thread_wa),
+ THD_WORKING_AREA_BASE(ch_idle_thread_wa),
+ THD_WORKING_AREA_END(ch_idle_thread_wa),
IDLEPRIO,
_idle_thread,
NULL
|