summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-13 08:05:10 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-13 08:05:10 +0000
commit979d6b794362c8e2e0dc4d0e7040ae7be862462a (patch)
tree2d2278d0f5fc63ac14a02cf0c82bd68a003c744c /src/target
parentcb0bc93c0610dcd4290712791ffb6e1cd56fa22e (diff)
downloadopenocd_libswd-979d6b794362c8e2e0dc4d0e7040ae7be862462a.tar.gz
openocd_libswd-979d6b794362c8e2e0dc4d0e7040ae7be862462a.tar.bz2
openocd_libswd-979d6b794362c8e2e0dc4d0e7040ae7be862462a.tar.xz
openocd_libswd-979d6b794362c8e2e0dc4d0e7040ae7be862462a.zip
marked infinite loop in code w/TODO and fixed warning.
git-svn-id: svn://svn.berlios.de/openocd/trunk@508 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm926ejs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c
index 1b3a17b0..75cda35a 100644
--- a/src/target/arm926ejs.c
+++ b/src/target/arm926ejs.c
@@ -178,6 +178,7 @@ int arm926ejs_cp15_read(target_t *target, u32 op1, u32 op2, u32 CRn, u32 CRm, u3
fields[0].in_handler_priv = value;
fields[0].in_handler = arm_jtag_buf_to_u32;
+ /*TODO: add timeout*/
do
{
/* rescan with NOP, to wait for the access to complete */
@@ -256,7 +257,7 @@ int arm926ejs_cp15_write(target_t *target, u32 op1, u32 op2, u32 CRn, u32 CRm, u
fields[3].in_handler_priv = NULL;
jtag_add_dr_scan(4, fields, -1);
-
+ /*TODO: add timeout*/
do
{
/* rescan with NOP, to wait for the access to complete */