projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8249261
)
cortex a8: mem_ap_read_buf_u32() error handling
author
Øyvind Harboe
<oyvind.harboe@zylin.com>
Sun, 18 Jul 2010 21:12:25 +0000
(23:12 +0200)
committer
Øyvind Harboe
<oyvind.harboe@zylin.com>
Mon, 19 Jul 2010 06:36:15 +0000
(08:36 +0200)
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/target/cortex_a8.c
patch
|
blob
|
history
diff --git
a/src/target/cortex_a8.c
b/src/target/cortex_a8.c
index 0f5c74289bd3a872c70160b099328c7ad9a0ea69..a2f3ea060bb710143fd915d69acd2044fa27b075 100644
(file)
--- a/
src/target/cortex_a8.c
+++ b/
src/target/cortex_a8.c
@@
-191,7
+191,9
@@
static int cortex_a8_read_regs_through_mem(struct target *target, uint32_t addre
return retval;
dap_ap_select(swjdp, swjdp_memoryap);
- mem_ap_read_buf_u32(swjdp, (uint8_t *)(®file[1]), 4*15, address);
+ retval = mem_ap_read_buf_u32(swjdp, (uint8_t *)(®file[1]), 4*15, address);
+ if (retval != ERROR_OK)
+ return retval;
dap_ap_select(swjdp, swjdp_debugap);
return retval;