diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-19 08:18:36 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-19 08:18:36 +0000 |
commit | 333642fcff9901a8f20c02457756ca9715641139 (patch) | |
tree | 6b2b4d22eaaec6104316093471c9ad40c53787cd /src/target/etb.c | |
parent | a1c14646cbfde337441bb76f09a333c8c40127eb (diff) | |
download | riscv-openocd-333642fcff9901a8f20c02457756ca9715641139.zip riscv-openocd-333642fcff9901a8f20c02457756ca9715641139.tar.gz riscv-openocd-333642fcff9901a8f20c02457756ca9715641139.tar.bz2 |
fix jtag_add_callback() args. The first argument is nothing special, it's just another generic argument.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2290 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/etb.c')
-rw-r--r-- | src/target/etb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/target/etb.c b/src/target/etb.c index 633c5aa..fe3afe4 100644 --- a/src/target/etb.c +++ b/src/target/etb.c @@ -158,8 +158,9 @@ static int etb_get_reg(reg_t *reg) } -static void etb_getbuf(uint8_t *in) +static void etb_getbuf(jtag_callback_data_t arg) { + uint8_t *in=(uint8_t *)arg; *((uint32_t *)in)=buf_get_u32(in, 0, 32); } @@ -206,7 +207,7 @@ static int etb_read_ram(etb_t *etb, uint32_t *data, int num_frames) fields[0].in_value = (uint8_t *)(data+i); jtag_add_dr_scan(3, fields, jtag_get_end_state()); - jtag_add_callback(etb_getbuf, (uint8_t *)(data+i)); + jtag_add_callback(etb_getbuf, (jtag_callback_data_t)(data+i)); } jtag_execute_queue(); |