[Cbe-oss-dev] [PATCH 09/23 v2]MARS/base: workload module elf loader

Kazunori Asayama asayama at sm.sony.co.jp
Tue Mar 17 12:58:49 EST 2009


Yuji Mano wrote:
> This patch accomplishes several changes.
> 
> * It moves the workload_module structure definition into internal headers so it
>   is no longer public.
> * The workload module structure is now redefined and 64 bytes.
> * The workload context structure is now 256 bytes.
> * The mars_workload_queue_add_begin() API function now takes the module_elf and
>   module_name parameters and internally sets the workload module structure
>   inside the workload context.
> * Updates the kernel so text and data segments are loaded/reloaded as necessary.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

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

> ---
> v2:
>  - Need to mars_ea_get() before unmapping elfs in remove_workload_module() so
>    workload module is copied into the work area from EA.
> 
>  base/include/common/mars/workload_types.h |   37 +-----
>  base/include/host/mars/workload_queue.h   |    8 +
>  base/src/common/workload_internal_types.h |   15 ++
>  base/src/host/lib/workload_queue.c        |  160 +++++++++++++++++++++++++++++-
>  base/src/mpu/kernel/kernel.c              |   48 +++++----
>  5 files changed, 217 insertions(+), 51 deletions(-)

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



More information about the cbe-oss-dev mailing list