diff options
| author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-10 08:07:43 +0000 |
|---|---|---|
| committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-10 08:07:43 +0000 |
| commit | c3dc5598c315f4650bfcd1e595104a2ace7aa87c (patch) | |
| tree | 890774f4ca76e9729624adfc0254544791e9cecb /os/kernel/src/chregistry.c | |
| parent | 16712a78831d021d9ee40ade082aefafc9aea196 (diff) | |
| download | ChibiOS-c3dc5598c315f4650bfcd1e595104a2ace7aa87c.tar.gz ChibiOS-c3dc5598c315f4650bfcd1e595104a2ace7aa87c.tar.bz2 ChibiOS-c3dc5598c315f4650bfcd1e595104a2ace7aa87c.zip | |
Global variables consolidation.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6116 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chregistry.c')
| -rw-r--r-- | os/kernel/src/chregistry.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/os/kernel/src/chregistry.c b/os/kernel/src/chregistry.c index b43341edd..b0d241fee 100644 --- a/os/kernel/src/chregistry.c +++ b/os/kernel/src/chregistry.c @@ -42,8 +42,8 @@ * terminating threads can pulse an event source and an event handler
* can perform a scansion of the registry in order to recover the
* memory.
- * @pre In order to use the threads registry the @p CH_CFG_USE_REGISTRY option
- * must be enabled in @p chconf.h.
+ * @pre In order to use the threads registry the @p CH_CFG_USE_REGISTRY
+ * option must be enabled in @p chconf.h.
* @{
*/
#include "ch.h"
@@ -66,7 +66,7 @@ /* Module local functions. */
/*===========================================================================*/
-#define _offsetof(st, m) \
+#define _offsetof(st, m) \
((size_t)((char *)&((st *)0)->m - (char *)0))
/*===========================================================================*/
@@ -131,7 +131,7 @@ thread_t *chRegFirstThread(void) { thread_t *tp;
chSysLock();
- tp = rlist.r_newer;
+ tp = ch.rlist.r_newer;
#if CH_CFG_USE_DYNAMIC
tp->p_refs++;
#endif
@@ -155,7 +155,7 @@ thread_t *chRegNextThread(thread_t *tp) { chSysLock();
ntp = tp->p_newer;
- if (ntp == (thread_t *)&rlist)
+ if (ntp == (thread_t *)&ch.rlist)
ntp = NULL;
#if CH_CFG_USE_DYNAMIC
else {
|
