This is an automated email from Gerrit. Marc Schink ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4921
-- gerrit commit da610c7ea56942724a6cbeda5d83a4977e8ba9e8 Author: Marc Schink <[email protected]> Date: Fri Feb 15 14:36:54 2019 +0100 Use bool for target_register_timer_callback() Change-Id: I268e8c5d783914aa97cbde301448b2c5bc3cb9e6 Signed-off-by: Marc Schink <[email protected]> diff --git a/src/target/aarch64.c b/src/target/aarch64.c index 63174c2..6bbd6d1 100644 --- a/src/target/aarch64.c +++ b/src/target/aarch64.c @@ -2388,7 +2388,7 @@ static int aarch64_init_arch_info(struct target *target, armv8->armv8_mmu.read_physical_memory = aarch64_read_phys_memory; armv8_init_arch_info(target, armv8); - target_register_timer_callback(aarch64_handle_target_request, 1, 1, target); + target_register_timer_callback(aarch64_handle_target_request, 1, true, target); return ERROR_OK; } diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 7fd1ed9..b6bd6e4 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -2859,7 +2859,7 @@ int arm7_9_init_arch_info(struct target *target, struct arm7_9_common *arm7_9) return retval; return target_register_timer_callback(arm7_9_handle_target_request, - 1, 1, target); + 1, true, target); } static const struct command_registration arm7_9_any_command_handlers[] = { diff --git a/src/target/armv7m_trace.c b/src/target/armv7m_trace.c index 62f0f8e..9d46988 100644 --- a/src/target/armv7m_trace.c +++ b/src/target/armv7m_trace.c @@ -116,7 +116,7 @@ int armv7m_trace_tpiu_config(struct target *target) return retval; if (trace_config->config_type == TRACE_CONFIG_TYPE_INTERNAL) - target_register_timer_callback(armv7m_poll_trace, 1, 1, target); + target_register_timer_callback(armv7m_poll_trace, 1, true, target); target_call_event_callbacks(target, TARGET_EVENT_TRACE_CONFIG); diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c index 648317e..27e0d29 100644 --- a/src/target/cortex_a.c +++ b/src/target/cortex_a.c @@ -2833,7 +2833,7 @@ static int cortex_a_init_arch_info(struct target *target, /* REVISIT v7a setup should be in a v7a-specific routine */ armv7a_init_arch_info(target, armv7a); - target_register_timer_callback(cortex_a_handle_target_request, 1, 1, target); + target_register_timer_callback(cortex_a_handle_target_request, 1, true, target); return ERROR_OK; } diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 62d3760..3354ddc 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -2269,7 +2269,7 @@ static int cortex_m_init_arch_info(struct target *target, armv7m->load_core_reg_u32 = cortex_m_load_core_reg_u32; armv7m->store_core_reg_u32 = cortex_m_store_core_reg_u32; - target_register_timer_callback(cortex_m_handle_target_request, 1, 1, target); + target_register_timer_callback(cortex_m_handle_target_request, 1, true, target); return ERROR_OK; } diff --git a/src/target/hla_target.c b/src/target/hla_target.c index 4f97eb9..b36fc68 100644 --- a/src/target/hla_target.c +++ b/src/target/hla_target.c @@ -346,7 +346,7 @@ static int adapter_init_arch_info(struct target *target, armv7m->examine_debug_reason = adapter_examine_debug_reason; armv7m->stlink = true; - target_register_timer_callback(hl_handle_target_request, 1, 1, target); + target_register_timer_callback(hl_handle_target_request, 1, true, target); return ERROR_OK; } diff --git a/src/target/openrisc/jsp_server.c b/src/target/openrisc/jsp_server.c index 6cd53f4..4eb1c8c 100644 --- a/src/target/openrisc/jsp_server.c +++ b/src/target/openrisc/jsp_server.c @@ -101,7 +101,7 @@ static int jsp_new_connection(struct connection *connection) jsp_service->connection = connection; - int retval = target_register_timer_callback(&jsp_poll_read, 1, 1, jsp_service); + int retval = target_register_timer_callback(&jsp_poll_read, 1, true, jsp_service); if (ERROR_OK != retval) return retval; -- _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
