]> git.sur5r.net Git - openocd/commit
ADIv5 clean up AP fault handling
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 21 Feb 2010 22:51:19 +0000 (14:51 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 21 Feb 2010 22:51:19 +0000 (14:51 -0800)
commita97bb67543eacde38f093610982812f714e7a050
tree35cc0a1850bf08d6e914588b3249d75bcd8bc9a7
parent249263d29da11b0ec981c2e0d520cd7dcf08939b
ADIv5 clean up AP fault handling

Pass up fault codes from various routines, so their callers
can clean up after failures, and remove the FIXME comments
highlighting those previously goofy code paths.

 dap_ap_{read,write}_reg_u32()
 dap_ap_write_reg()
 mem_ap_{read,write}_u32()
 mem_ap_{read,write}_atomic_u32()
 dap_setup_accessport()

Make dap_ap_write_reg_u32() just wrap dap_ap_write_reg(),
instead of cloning its core code (and broken fault handling).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/arm_adi_v5.c