diff options
-rw-r--r-- | src/include/threads.h | 3 | ||||
-rw-r--r-- | src/templates/chcore.h | 2 |
2 files changed, 4 insertions, 1 deletions
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.
*/
|