[Cbe-oss-dev] [PATCH 08/10 v2]MARS: Fix error handling

Kazunori Asayama asayama at sm.sony.co.jp
Fri Oct 3 21:01:44 EST 2008


Yuji Mano wrote:
> This removes the mars_debug.h and mars_timer.h headers and removes usage of all
> debug macros.
> 
> The error handling is fixed to not use any macros.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

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

> 
> ---
> v2:
>  - fix not properly unlocking mutex on error conditions
>  - fix careless copy/paste of mis-ordered goto and setting return value
>  - minor cosmetic cleanups
> 
>  include/common/mars/mars_debug.h       |  295 ---------------------------
>  include/common/mars/mars_task_types.h  |    4 
>  include/host/mars/mars_timer.h         |  121 -----------
>  include/mpu/mars/mars_dma.h            |   98 +++------
>  include/mpu/mars/mars_kernel.h         |    2 
>  include/mpu/mars/mars_timer.h          |  123 -----------
>  src/host/lib/Makefile.am               |    2 
>  src/host/lib/mars_context.c            |  154 ++++++++------
>  src/host/lib/mars_mutex.c              |   24 +-
>  src/host/lib/mars_task.c               |  166 +++++++++------
>  src/host/lib/mars_task_barrier.c       |   23 +-
>  src/host/lib/mars_task_event_flag.c    |   86 +++++---
>  src/host/lib/mars_task_queue.c         |   89 +++++---
>  src/host/lib/mars_task_semaphore.c     |   22 +-
>  src/host/lib/mars_task_signal.c        |   19 +
>  src/host/lib/mars_workload_queue.c     |  348 +++++++++++++++++++++------------
>  src/mpu/kernel/mars_kernel.c           |    8 
>  src/mpu/kernel/mars_kernel_scheduler.c |   32 +--
>  src/mpu/kernel/mars_kernel_task.c      |   26 --
>  src/mpu/kernel/mars_kernel_workload.c  |  176 ++++++++++------
>  src/mpu/lib/Makefile.am                |    3 
>  src/mpu/lib/mars_mutex.c               |   36 +--
>  src/mpu/lib/mars_task.c                |   39 ++-
>  src/mpu/lib/mars_task_barrier.c        |   66 +++---
>  src/mpu/lib/mars_task_event_flag.c     |   92 ++++----
>  src/mpu/lib/mars_task_queue.c          |  112 ++++++----
>  src/mpu/lib/mars_task_semaphore.c      |   32 +--
>  src/mpu/lib/mars_task_signal.c         |   10 
>  28 files changed, 981 insertions(+), 1227 deletions(-)
> 

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



More information about the cbe-oss-dev mailing list