From a680dfb6d51eba9dcb71cfff012b0e45ac5eb0c0 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Wed, 29 Feb 2012 12:45:33 -0800 Subject: [PATCH] Revert dmutex_init code in driver/mutex.c back to the old code in 30fc39c8 without DEFINE_SEMAPHORE. Fixes GH-11. --- driver/mutex.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/driver/mutex.c b/driver/mutex.c index a5381da..ba8b0cf 100644 --- a/driver/mutex.c +++ b/driver/mutex.c @@ -45,11 +45,8 @@ static const int disable_ints; void dmutex_init(mutex_t *mp) { -static DEFINE_SEMAPHORE(null_sema); - memset(mp, 0, sizeof *mp); - mp->m_sem = null_sema; -// sema_init(&mp->m_sem, 1); + sema_init(&mp->m_sem, 1); mp->m_initted = TRUE; }