From 333642fcff9901a8f20c02457756ca9715641139 Mon Sep 17 00:00:00 2001 From: oharboe Date: Fri, 19 Jun 2009 08:18:36 +0000 Subject: 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 --- src/target/etb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/target/etb.c') diff --git a/src/target/etb.c b/src/target/etb.c index 633c5aa6..fe3afe43 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(); -- cgit v1.2.3