diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-05 07:11:12 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-08-05 07:11:12 +0000 |
commit | 18293612537125c8864d4627c7c4b2b4ba7cc882 (patch) | |
tree | ac6aaec4091dad07099f0fad2445755c69d79418 /src/target/target.c | |
parent | 3a4896182036eb472a06f66be3710d5c228b6748 (diff) |
define resetting the target into the halted or running
state as an atomic operation.
git-svn-id: svn://svn.berlios.de/openocd/trunk@888 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target.c')
-rw-r--r-- | src/target/target.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/target/target.c b/src/target/target.c index 5bd16622..0950e436 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -308,18 +308,6 @@ int target_process_reset(struct command_context_s *cmd_ctx, enum target_reset_mo target = target->next; } - /* request target halt if necessary, and schedule further action */ - target = targets; - while (target) - { - if (reset_mode!=RESET_RUN) - { - if ((retval = target_halt(target))!=ERROR_OK) - return retval; - } - target = target->next; - } - target = targets; while (target) { |