summaryrefslogtreecommitdiff
path: root/src/target/xscale.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-19 08:18:36 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-19 08:18:36 +0000
commit333642fcff9901a8f20c02457756ca9715641139 (patch)
tree6b2b4d22eaaec6104316093471c9ad40c53787cd /src/target/xscale.c
parenta1c14646cbfde337441bb76f09a333c8c40127eb (diff)
downloadopenocd+libswd-333642fcff9901a8f20c02457756ca9715641139.tar.gz
openocd+libswd-333642fcff9901a8f20c02457756ca9715641139.tar.bz2
openocd+libswd-333642fcff9901a8f20c02457756ca9715641139.tar.xz
openocd+libswd-333642fcff9901a8f20c02457756ca9715641139.zip
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/xscale.c')
-rw-r--r--src/target/xscale.c5
1 files changed, 3 insertions, 2 deletions
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++;
}