diff options
author | Angela Stegmaier <angelabaker@ti.com> | 2010-08-17 16:04:17 -0500 |
---|---|---|
committer | Ricardo Perez Olivares <x0081762@ti.com> | 2010-08-17 18:22:22 -0500 |
commit | 180370bda29fd64472e77b8901074d1fa2f289b9 (patch) | |
tree | 6326aae7be6f0356ed4395eece4d9568ae8cbf1e | |
parent | 033b6908c334c7412693c2848bea20528c5b753e (diff) |
SYSLINK: procmgr- add memcpy to proc4430_read and update proc4430_write
This patch adds a memcpy to proc4430_read and fixes the memcpy in
proc4430_write to have the proper source and destination pointers.
Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
-rw-r--r-- | drivers/dsp/syslink/procmgr/proc4430/proc4430.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dsp/syslink/procmgr/proc4430/proc4430.c b/drivers/dsp/syslink/procmgr/proc4430/proc4430.c index b743638f97eb..44c66c6a4445 100644 --- a/drivers/dsp/syslink/procmgr/proc4430/proc4430.c +++ b/drivers/dsp/syslink/procmgr/proc4430/proc4430.c @@ -591,7 +591,8 @@ int proc4430_read(void *handle, u32 proc_addr, u32 *num_bytes, return -ENODEV; } - /* TODO */ + buffer = memcpy(buffer, (void *)proc_addr, *num_bytes); + return retval; } @@ -617,7 +618,7 @@ int proc4430_write(void *handle, u32 proc_addr, u32 *num_bytes, return -ENODEV; } - buffer = memcpy(buffer, (void *)proc_addr, *num_bytes); + proc_addr = (u32)memcpy((void *)proc_addr, buffer, *num_bytes); return retval; } |