diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-15 23:26:16 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-15 23:26:16 +0200 |
commit | 26a77f71e1d44d12af549c618a1b7010ff83ac2b (patch) | |
tree | 04fe8f6b0480418446161c89efe08d88bbc59e12 /src | |
parent | e85fe0a637d1be9c652ac1779218c1297aaaafec (diff) | |
download | openocd_libswd-26a77f71e1d44d12af549c618a1b7010ff83ac2b.tar.gz openocd_libswd-26a77f71e1d44d12af549c618a1b7010ff83ac2b.tar.bz2 openocd_libswd-26a77f71e1d44d12af549c618a1b7010ff83ac2b.tar.xz openocd_libswd-26a77f71e1d44d12af549c618a1b7010ff83ac2b.zip |
mips32_pracc: -Wshadow warning fixes
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/target/mips32_pracc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/mips32_pracc.c b/src/target/mips32_pracc.c index d96867aa..236f3894 100644 --- a/src/target/mips32_pracc.c +++ b/src/target/mips32_pracc.c @@ -928,7 +928,7 @@ int mips32_pracc_read_regs(struct mips_ejtag *ejtag_info, uint32_t *regs) * 3. data ... */ int mips32_pracc_fastdata_xfer(struct mips_ejtag *ejtag_info, struct working_area *source, - int write, uint32_t addr, int count, uint32_t *buf) + int write_t, uint32_t addr, int count, uint32_t *buf) { uint32_t handler_code[] = { /* caution when editing, table is modified below */ @@ -973,7 +973,7 @@ int mips32_pracc_fastdata_xfer(struct mips_ejtag *ejtag_info, struct working_are if (source->size < MIPS32_FASTDATA_HANDLER_SIZE) return ERROR_TARGET_RESOURCE_NOT_AVAILABLE; - if (write) + if (write_t) { handler_code[8] = MIPS32_LW(11,0,8); /* load data from probe at fastdata area */ handler_code[9] = MIPS32_SW(11,0,9); /* store data to RAM @ r9 */ @@ -1030,7 +1030,7 @@ int mips32_pracc_fastdata_xfer(struct mips_ejtag *ejtag_info, struct working_are for (i = 0; i < count; i++) { /* Send the data out using fastdata (clears the access pending bit) */ - if ((retval = mips_ejtag_fastdata_scan(ejtag_info, write, buf++)) != ERROR_OK) + if ((retval = mips_ejtag_fastdata_scan(ejtag_info, write_t, buf++)) != ERROR_OK) return retval; } |