summaryrefslogtreecommitdiff
path: root/src/target/arm7_9_common.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-15 10:35:34 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-15 10:35:34 -0800
commit269040bbad7f18066f5ec5707447c33de6290ef5 (patch)
tree0edee9fc57079e977eb01b13a392963fb70968d9 /src/target/arm7_9_common.h
parent9ac7cdec82c19481b79f2effcefb7106dd7ade41 (diff)
downloadopenocd+libswd-269040bbad7f18066f5ec5707447c33de6290ef5.tar.gz
openocd+libswd-269040bbad7f18066f5ec5707447c33de6290ef5.tar.bz2
openocd+libswd-269040bbad7f18066f5ec5707447c33de6290ef5.tar.xz
openocd+libswd-269040bbad7f18066f5ec5707447c33de6290ef5.zip
ARM: memory utils aren't ARM7/ARM9 dependent
The arm7_9_checksum_memory() and arm7_9_blank_check_memory() routines are not actually specific to the ARM7 and ARM9 core generations ... they can work for any core which can run algorithms using basic ARM (not Thumb) instructions. Rename them; move the declarations to a more generic site; likewise move the code (and tidy it a bit in the process). NOTE: the blank_check() method falsely returned a success status (0) on one error path, when the algorithm failed. Fixed this bug. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm7_9_common.h')
-rw-r--r--src/target/arm7_9_common.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/target/arm7_9_common.h b/src/target/arm7_9_common.h
index bbe95ca2..d70bae26 100644
--- a/src/target/arm7_9_common.h
+++ b/src/target/arm7_9_common.h
@@ -143,8 +143,6 @@ int arm7_9_read_core_reg(struct target *target, int num, enum armv4_5_mode mode)
int arm7_9_read_memory(struct target *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer);
int arm7_9_write_memory(struct target *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer);
int arm7_9_bulk_write_memory(struct target *target, uint32_t address, uint32_t count, uint8_t *buffer);
-int arm7_9_checksum_memory(struct target *target, uint32_t address, uint32_t count, uint32_t* checksum);
-int arm7_9_blank_check_memory(struct target *target, uint32_t address, uint32_t count, uint32_t* blank);
int arm7_9_run_algorithm(struct target *target, int num_mem_params, struct mem_param *mem_params, int num_reg_prams, struct reg_param *reg_param, uint32_t entry_point, void *arch_info);