summaryrefslogtreecommitdiff
path: root/src/target/arm920t.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-04-01 13:02:24 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-04-01 13:02:24 +0200
commit3b7c9585db2dd49b48123d50e9e8af7bc527be52 (patch)
tree543433d697a4131e362ff6cf158324479dd89af8 /src/target/arm920t.c
parenta0b83e82f7fa1833f7ac137d052335c55d1a4223 (diff)
parent977df18f50f0f4d2310787787c03d83c2498da1a (diff)
downloadopenocd+libswd-3b7c9585db2dd49b48123d50e9e8af7bc527be52.tar.gz
openocd+libswd-3b7c9585db2dd49b48123d50e9e8af7bc527be52.tar.bz2
openocd+libswd-3b7c9585db2dd49b48123d50e9e8af7bc527be52.tar.xz
openocd+libswd-3b7c9585db2dd49b48123d50e9e8af7bc527be52.zip
Merge remote branch 'origin/master' into HEAD
Diffstat (limited to 'src/target/arm920t.c')
-rw-r--r--src/target/arm920t.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm920t.c b/src/target/arm920t.c
index a3a5adf1..210c253d 100644
--- a/src/target/arm920t.c
+++ b/src/target/arm920t.c
@@ -602,7 +602,7 @@ static int arm920t_read_phys_memory(struct target *target,
static int arm920t_write_phys_memory(struct target *target,
uint32_t address, uint32_t size,
- uint32_t count, uint8_t *buffer)
+ uint32_t count, const uint8_t *buffer)
{
struct arm920t_common *arm920t = target_to_arm920(target);
@@ -613,7 +613,7 @@ static int arm920t_write_phys_memory(struct target *target,
/** Writes a buffer, in the specified word size, with current MMU settings. */
int arm920t_write_memory(struct target *target, uint32_t address,
- uint32_t size, uint32_t count, uint8_t *buffer)
+ uint32_t size, uint32_t count, const uint8_t *buffer)
{
int retval;
const uint32_t cache_mask = ~0x1f; /* cache line size : 32 byte */