summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-06 06:40:56 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-06 06:40:56 +0000
commit213368e21f892a4c6df80cbdae1a163df36c1d51 (patch)
treed9f8ccce1eb6fba55759c8f59227dc90bd8fcfdf /src/target
parent4d88c124b1262a738b4a9f107ef62404a45bf323 (diff)
downloadopenocd_libswd-213368e21f892a4c6df80cbdae1a163df36c1d51.tar.gz
openocd_libswd-213368e21f892a4c6df80cbdae1a163df36c1d51.tar.bz2
openocd_libswd-213368e21f892a4c6df80cbdae1a163df36c1d51.tar.xz
openocd_libswd-213368e21f892a4c6df80cbdae1a163df36c1d51.zip
add warnings about not using in_handler
git-svn-id: svn://svn.berlios.de/openocd/trunk@1609 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/mips_ejtag.c12
-rw-r--r--src/target/mips_ejtag.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c
index d1931c6f..5cd82abf 100644
--- a/src/target/mips_ejtag.c
+++ b/src/target/mips_ejtag.c
@@ -32,7 +32,7 @@
#include <stdlib.h>
-int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, in_handler_t handler)
+int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, void *delete_me_and_submit_patch)
{
jtag_tap_t *tap;
@@ -49,11 +49,11 @@ int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, in_handler_t h
field.num_bits = tap->ir_length;
field.out_value = t;
buf_set_u32(field.out_value, 0, field.num_bits, new_instr);
-
+
field.in_value = NULL;
field.in_check_value = NULL;
field.in_check_mask = NULL;
- field.in_handler = handler;
+ field.in_handler = NULL;
field.in_handler_priv = NULL;
jtag_add_ir_scan(1, &field, TAP_INVALID);
}
@@ -72,7 +72,7 @@ int mips_ejtag_get_idcode(mips_ejtag_t *ejtag_info, u32 *idcode, in_handler_t ha
field.tap = ejtag_info->tap;
field.num_bits = 32;
field.out_value = NULL;
-
+
field.in_value = (void*)idcode;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -99,7 +99,7 @@ int mips_ejtag_get_impcode(mips_ejtag_t *ejtag_info, u32 *impcode, in_handler_t
field.tap = ejtag_info->tap;
field.num_bits = 32;
field.out_value = NULL;
-
+
field.in_value = (void*)impcode;
field.in_check_value = NULL;
field.in_check_mask = NULL;
@@ -130,7 +130,7 @@ int mips_ejtag_drscan_32(mips_ejtag_t *ejtag_info, u32 *data)
field.num_bits = 32;
field.out_value = t;
buf_set_u32(field.out_value, 0, field.num_bits, *data);
-
+
field.in_value = (u8*)data;
field.in_check_value = NULL;
field.in_check_mask = NULL;
diff --git a/src/target/mips_ejtag.h b/src/target/mips_ejtag.h
index cab8c11f..a7d5c5d7 100644
--- a/src/target/mips_ejtag.h
+++ b/src/target/mips_ejtag.h
@@ -107,7 +107,7 @@ typedef struct mips_ejtag_s
u32 ejtag_ctrl;
} mips_ejtag_t;
-extern int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, in_handler_t handler);
+extern int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, void *delete_me_and_submit_patch);
extern int mips_ejtag_enter_debug(mips_ejtag_t *ejtag_info);
extern int mips_ejtag_exit_debug(mips_ejtag_t *ejtag_info, int enable_interrupts);
extern int mips_ejtag_get_impcode(mips_ejtag_t *ejtag_info, u32 *impcode, in_handler_t handler);