diff options
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/armv4_5.c | 2 | ||||
-rw-r--r-- | src/target/armv7m.c | 2 | ||||
-rw-r--r-- | src/target/mips32.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c index 07c8c6eb..ac7f6236 100644 --- a/src/target/armv4_5.c +++ b/src/target/armv4_5.c @@ -1307,6 +1307,8 @@ int arm_checksum_memory(struct target *target, uint32_t i; uint32_t exit_var = 0; + /* see contib/loaders/checksum/armv4_5_crc.s for src */ + static const uint32_t arm_crc_code[] = { 0xE1A02000, /* mov r2, r0 */ 0xE3E00000, /* mov r0, #0xffffffff */ diff --git a/src/target/armv7m.c b/src/target/armv7m.c index a73a9bb4..03c9c7ac 100644 --- a/src/target/armv7m.c +++ b/src/target/armv7m.c @@ -562,6 +562,8 @@ int armv7m_checksum_memory(struct target *target, struct reg_param reg_params[2]; int retval; + /* see contib/loaders/checksum/armv7m_crc.s for src */ + static const uint16_t cortex_m3_crc_code[] = { 0x4602, /* mov r2, r0 */ 0xF04F, 0x30FF, /* mov r0, #0xffffffff */ diff --git a/src/target/mips32.c b/src/target/mips32.c index 24cd7d95..533701aa 100644 --- a/src/target/mips32.c +++ b/src/target/mips32.c @@ -613,6 +613,8 @@ int mips32_checksum_memory(struct target *target, uint32_t address, int retval; uint32_t i; + /* see contib/loaders/checksum/mips32.s for src */ + static const uint32_t mips_crc_code[] = { 0x248C0000, /* addiu $t4, $a0, 0 */ |