From 6c90d27a46cfeb8970eec2cf9d41729202d0e40b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 12 Feb 2014 09:43:27 +0000 Subject: 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 --- os/hal/osal/rt/osal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'os/hal/osal/rt') 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 -- cgit v1.2.3