projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19fc52f
)
cortex a8: add missing error handling for mem_ap_atomic_write_u32()
author
Øyvind Harboe
<oyvind.harboe@zylin.com>
Sun, 18 Jul 2010 21:03:05 +0000
(23:03 +0200)
committer
Øyvind Harboe
<oyvind.harboe@zylin.com>
Mon, 19 Jul 2010 06:36:14 +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 82ce9a18b46efab3d05998f281463479f258cb63..441c93b2f37d590dceb08ab58ef3b6335c1b3737 100644
(file)
--- a/
src/target/cortex_a8.c
+++ b/
src/target/cortex_a8.c
@@
-147,7
+147,9
@@
static int cortex_a8_exec_opcode(struct target *target,
}
}
- mem_ap_write_u32(swjdp, armv7a->debug_base + CPUDBG_ITR, opcode);
+ retval = mem_ap_write_u32(swjdp, armv7a->debug_base + CPUDBG_ITR, opcode);
+ if (retval != ERROR_OK)
+ return retval;
do
{
@@
-273,6
+275,8
@@
static int cortex_a8_dap_write_coreregister_u32(struct target *target,
LOG_DEBUG("write DCC 0x%08" PRIx32, value);
retval = mem_ap_write_u32(swjdp,
armv7a->debug_base + CPUDBG_DTRRX, value);
+ if (retval != ERROR_OK)
+ return retval;
if (Rd < 15)
{