aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/osal/rt
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-12 09:43:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-12 09:43:27 +0000
commit6c90d27a46cfeb8970eec2cf9d41729202d0e40b (patch)
tree75c38e7256a44bdbaeb3d11c1d5e9ca78c08c09b /os/hal/osal/rt
parent1033792b73022cbf5a7ef741313ae18592306251 (diff)
downloadChibiOS-6c90d27a46cfeb8970eec2cf9d41729202d0e40b.tar.gz
ChibiOS-6c90d27a46cfeb8970eec2cf9d41729202d0e40b.tar.bz2
ChibiOS-6c90d27a46cfeb8970eec2cf9d41729202d0e40b.zip
Preparation to recursive mutexes, now unlock primitives have the mutex as parameter.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6706 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/osal/rt')
-rw-r--r--os/hal/osal/rt/osal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/os/hal/osal/rt/osal.h b/os/hal/osal/rt/osal.h
index 74044616a..ab648d720 100644
--- a/os/hal/osal/rt/osal.h
+++ b/os/hal/osal/rt/osal.h
@@ -839,8 +839,7 @@ static inline void osalMutexLock(mutex_t *mp) {
static inline void osalMutexUnlock(mutex_t *mp) {
#if CH_CFG_USE_MUTEXES
- (void)mp;
- chMtxUnlock();
+ chMtxUnlock(mp);
#elif CH_CFG_USE_SEMAPHORES
chSemSignal((semaphore_t *)mp);
#else