stlink: avoid null pointer dereference in stlink_usb_close()
[fw/openocd] / src / target / arm9tdmi.h
index 351b00adfc26bb3221332f1e26b2bac0e70ffc20..366cd12944fffd8e0e8269c82a61356f6b65be30 100644 (file)
@@ -18,8 +18,9 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.           *
  ***************************************************************************/
+
 #ifndef ARM9TDMI_H
 #define ARM9TDMI_H
 
@@ -29,7 +30,7 @@ int arm9tdmi_init_target(struct command_context *cmd_ctx,
                struct target *target);
 int arm9tdmi_init_arch_info(struct target *target,
                struct arm7_9_common *arm7_9, struct jtag_tap *tap);
-int arm9tdmi_register_commands(struct command_context *cmd_ctx);
+extern const struct command_registration arm9tdmi_command_handlers[];
 
 int arm9tdmi_clock_out(struct arm_jtag *jtag_info,
                uint32_t instr, uint32_t out, uint32_t *in, int sysspeed);
@@ -37,7 +38,7 @@ int arm9tdmi_clock_data_in(struct arm_jtag *jtag_info, uint32_t *in);
 int arm9tdmi_clock_data_in_endianness(struct arm_jtag *jtag_info,
                void *in, int size, int be);
 void arm9tdmi_read_core_regs(struct target *target,
-               uint32_t mask, uint32_tcore_regs[16]);
+               uint32_t mask, uint32_t *core_regs[16]);
 void arm9tdmi_write_core_regs(struct target *target,
                uint32_t mask, uint32_t core_regs[16]);