Commit 16baf7d0 authored by Simon Que's avatar Simon Que Committed by Hari Kanigeri

Subject: SYSLINK SysMgr setup for AppM3

Made SysMgr, Platform, ProcMgr compatible for setting up for
AppM3, in addition to SysM3.
Signed-off-by: default avatarSimon Que <sque@ti.com>
parent 6b320295
This diff is collapsed.
......@@ -299,7 +299,7 @@ u32 sysmgr_put_object_config(u16 proc_id, void *config, u32 cmd_id, u32 size)
if (entry->offset != -1) {
offset += entry->offset;
entry = (struct sysmgr_bootload_page_entry *)
((u32) &blp->slave_config + entry->offset);
((u32) &blp->host_config + entry->offset);
} else {
break;
}
......@@ -327,7 +327,7 @@ u32 sysmgr_put_object_config(u16 proc_id, void *config, u32 cmd_id, u32 size)
entry->valid = SYSMGR_ENTRYVALIDSTAMP;
/* Attach the new created entry */
prev->offset = ((u32) entry - (u32) &blp->slave_config);
prev->offset = ((u32) entry - (u32) &blp->host_config);
}
/* return number of bytes wrote to the boot load page */
......@@ -578,8 +578,7 @@ s32 sysmgr_destroy(void)
}
if (atomic_dec_return(&sysmgr_state.ref_count)
!= SYSMGR_MAKE_MAGICSTAMP(0))
{
!= SYSMGR_MAKE_MAGICSTAMP(0)) {
status = 1;
goto exit;
}
......@@ -776,6 +775,8 @@ void sysmgr_wait_for_scalability_info(u16 proc_id)
printk(KERN_ERR "sysmgr_wait_for_scalability_info: BF while temp->handshake:%x\n",
temp->handshake);
printk(KERN_ERR "Please break the platform and load Ducati image.\n");
while (temp->handshake != SYSMGR_SCALABILITYHANDSHAKESTAMP)
;
......
......@@ -598,7 +598,7 @@ int proc_mgr_start(void *handle, u32 entry_point,
#if defined CONFIG_SYSLINK_USE_SYSMGR
if (retval == 0) {
/* TBD: should be removed when notify local is implemepented */
platform_start_callback(proc_mgr_handle->proc_id);
platform_start_callback((void *)params->proc_id);
}
#endif /* defined (CONFIG_SYSLINK_USE_SYSMGR)*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment