[Cbe-oss-dev] [PATCH 14/28 v3]MARS/base: change mutex to kernel syscall

Kazunori Asayama asayama at sm.sony.co.jp
Tue Feb 10 14:38:10 EST 2009


Yuji Mano wrote:
> This moves the mutex implementation into the kernel and the kernel provides
> syscalls for the mutex routines. Workload modules can use the mutex routines
> through the module API.
> 
> The purpose of this change is to remove unnecessary duplicate code in the
> workload (task) code to keep code size to a minimum.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>
> ---
> v3:
>  - mutex.c added to kernel makefile sources
> v2:
>  - move kernel mutex implementation out into separate mutex.c
> 
>  base/include/host/mars/mutex.h          |   18 +--
>  base/include/mpu/mars/mars.h            |    1 
>  base/include/mpu/mars/module.h          |   35 ++++++
>  base/include/mpu/mars/mutex.h           |   68 -------------
>  base/src/common/kernel_internal_types.h |   45 +++++---
>  base/src/mpu/kernel/Makefile.am         |    3 
>  base/src/mpu/kernel/kernel.c            |   58 +++++------
>  base/src/mpu/kernel/mutex.c             |  164 ++++++++++++++++++++++++++++++++
>  base/src/mpu/lib/Makefile.am            |    6 -
>  base/src/mpu/lib/module.c               |   10 +
>  base/src/mpu/lib/mutex.c                |  163 -------------------------------
>  11 files changed, 277 insertions(+), 294 deletions(-)

Acked-by: Kazunori Asayama <asayama at sm.sony.co.jp>

-- 
(Kazunori Asayama
  (asayama at sm.sony.co.jp))
t



More information about the cbe-oss-dev mailing list