[Cbe-oss-dev] [PATCH 05/11]MARS: Kernel syscall add get workload by id

Kazunori Asayama asayama at sm.sony.co.jp
Tue Sep 16 16:43:39 EST 2008


Yuji Mano wrote:
> This adds a new MARS kernel syscall 'mars_get_workload_by_id' to allow for the
> task library to grab an instance of a workload context other than the one
> currently running. This is needed when a task waits for completion of another
> task, and needs to obtain the exit_code of the completed task from the task
> context.
> 
> This also renames the previously existing MARS kernel syscall
> 'mars_get_workload_context' to 'mars_get_workload'.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

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

> 
> ---
>  include/mpu/mars/mars_kernel.h        |   10 +++++++---
>  include/mpu/mars/mars_syscalls.h      |    3 ++-
>  src/mpu/kernel/mars_kernel_syscalls.c |   12 +++++++++---
>  src/mpu/kernel/mars_kernel_workload.c |   26 +++++++++++++++++++++++++-
>  src/mpu/lib/mars_syscalls.c           |    9 +++++++--
>  src/mpu/lib/mars_task.c               |    8 ++++----
>  src/mpu/lib/mars_task_barrier.c       |    4 ++--
>  src/mpu/lib/mars_task_event_flag.c    |    2 +-
>  src/mpu/lib/mars_task_queue.c         |    2 +-
>  src/mpu/lib/mars_task_semaphore.c     |    2 +-
>  src/mpu/lib/mars_task_signal.c        |    2 +-
>  11 files changed, 60 insertions(+), 20 deletions(-)
> 

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



More information about the cbe-oss-dev mailing list