From d121a4942a3144ca52e8148607cc74d1a9c07752 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 6 Jan 2009 11:39:36 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@591 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/threads.h | 3 +++ src/templates/chcore.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/threads.h b/src/include/threads.h index b537d6bc6..771fabb83 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -50,6 +50,9 @@ struct Thread { tmode_t p_flags; /** Machine dependent processor context.*/ Context p_ctx; +#ifdef CH_USE_NESTED_LOCKS + cnt_t p_locks; +#endif /* * The following fields are merged in unions because they are all * state-specific fields. This trick saves some extra space for each diff --git a/src/templates/chcore.h b/src/templates/chcore.h index f94cb4b18..576fbf708 100644 --- a/src/templates/chcore.h +++ b/src/templates/chcore.h @@ -62,7 +62,7 @@ typedef struct { } Context; /** - * Platform dependent part of the @p chThdCreate() API. + * Platform dependent part of the @p chThdInit() API. * This code usually setup the context switching frame represented by a * @p intctx structure. */ -- cgit v1.2.3