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/xscale.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/target/xscale.c') diff --git a/src/target/xscale.c b/src/target/xscale.c index d92dde1c..58679bb4 100644 --- a/src/target/xscale.c +++ b/src/target/xscale.c @@ -293,8 +293,9 @@ int xscale_read_dcsr(target_t *target) } -static void xscale_getbuf(uint8_t *in) +static void xscale_getbuf(jtag_callback_data_t arg) { + uint8_t *in=(uint8_t *)arg; *((uint32_t *)in)=buf_get_u32(in, 0, 32); } @@ -365,7 +366,7 @@ int xscale_receive(target_t *target, uint32_t *buffer, int num_words) jtag_add_dr_scan_check(3, fields, jtag_set_end_state(TAP_IDLE)); - jtag_add_callback(xscale_getbuf, (uint8_t *)(field1+i)); + jtag_add_callback(xscale_getbuf, (jtag_callback_data_t)(field1+i)); words_scheduled++; } -- cgit v1.2.3