mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
Merge changes from topic "xlnx_fix_gen_uniq_var" into integration
* changes: fix(psci): avoid altering function parameters fix(services): avoid altering function parameters fix(common): ignore the unused function return value fix(psci): modify variable conflicting with external function fix(delay-timer): create unique variable name
This commit is contained in:
commit
10639cc9af
7 changed files with 21 additions and 15 deletions
|
@ -61,7 +61,7 @@ void tf_log_newline(const char log_fmt[2])
|
|||
return;
|
||||
}
|
||||
|
||||
putchar('\n');
|
||||
(void)putchar((int32_t)'\n');
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* the clock period in microseconds.
|
||||
********************************************************************/
|
||||
|
||||
typedef struct timer_ops {
|
||||
typedef struct timer_operation {
|
||||
uint32_t (*get_timer_value)(void);
|
||||
uint32_t clk_mult;
|
||||
uint32_t clk_div;
|
||||
|
|
|
@ -1299,7 +1299,8 @@ int psci_stop_other_cores(unsigned int this_cpu_idx, unsigned int wait_ms,
|
|||
|
||||
/* Need to wait for other cores to shutdown */
|
||||
if (wait_ms != 0U) {
|
||||
while ((wait_ms-- != 0U) && (!psci_is_last_on_cpu(this_cpu_idx))) {
|
||||
for (uint32_t delay_ms = wait_ms; ((delay_ms != 0U) &&
|
||||
(!psci_is_last_on_cpu(this_cpu_idx))); delay_ms--) {
|
||||
mdelay(1U);
|
||||
}
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ int psci_do_cpu_off(unsigned int end_pwrlvl)
|
|||
if ((psci_spd_pm != NULL) && (psci_spd_pm->svc_off != NULL)) {
|
||||
rc = psci_spd_pm->svc_off(0);
|
||||
if (rc != PSCI_E_SUCCESS)
|
||||
goto exit;
|
||||
goto off_exit;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -127,7 +127,7 @@ int psci_do_cpu_off(unsigned int end_pwrlvl)
|
|||
plat_psci_stat_accounting_start(&state_info);
|
||||
#endif
|
||||
|
||||
exit:
|
||||
off_exit:
|
||||
/*
|
||||
* Release the locks corresponding to each power level in the
|
||||
* reverse order to which they were acquired.
|
||||
|
|
|
@ -93,7 +93,7 @@ int psci_cpu_on_start(u_register_t target_cpu,
|
|||
psci_svc_cpu_data.aff_info_state);
|
||||
rc = cpu_on_validate_state(psci_get_aff_info_state_by_idx(target_idx));
|
||||
if (rc != PSCI_E_SUCCESS)
|
||||
goto exit;
|
||||
goto on_exit;
|
||||
|
||||
/*
|
||||
* Call the cpu on handler registered by the Secure Payload Dispatcher
|
||||
|
@ -151,7 +151,7 @@ int psci_cpu_on_start(u_register_t target_cpu,
|
|||
psci_svc_cpu_data.aff_info_state);
|
||||
}
|
||||
|
||||
exit:
|
||||
on_exit:
|
||||
psci_spin_unlock_cpu(target_idx);
|
||||
return rc;
|
||||
}
|
||||
|
|
|
@ -152,7 +152,7 @@ int psci_cpu_suspend_start(unsigned int idx,
|
|||
* detection that a wake-up interrupt has fired.
|
||||
*/
|
||||
if (read_isr_el1() != 0U) {
|
||||
goto exit;
|
||||
goto suspend_exit;
|
||||
}
|
||||
|
||||
#if PSCI_OS_INIT_MODE
|
||||
|
@ -163,7 +163,7 @@ int psci_cpu_suspend_start(unsigned int idx,
|
|||
*/
|
||||
rc = psci_validate_state_coordination(idx, end_pwrlvl, state_info);
|
||||
if (rc != PSCI_E_SUCCESS) {
|
||||
goto exit;
|
||||
goto suspend_exit;
|
||||
}
|
||||
} else {
|
||||
#endif
|
||||
|
@ -181,7 +181,7 @@ int psci_cpu_suspend_start(unsigned int idx,
|
|||
if (psci_plat_pm_ops->pwr_domain_validate_suspend != NULL) {
|
||||
rc = psci_plat_pm_ops->pwr_domain_validate_suspend(state_info);
|
||||
if (rc != PSCI_E_SUCCESS) {
|
||||
goto exit;
|
||||
goto suspend_exit;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -327,7 +327,7 @@ int psci_cpu_suspend_start(unsigned int idx,
|
|||
*/
|
||||
psci_set_pwr_domains_to_run(idx, end_pwrlvl);
|
||||
|
||||
exit:
|
||||
suspend_exit:
|
||||
psci_release_pwr_domain_locks(end_pwrlvl, parent_nodes);
|
||||
|
||||
return rc;
|
||||
|
|
|
@ -94,14 +94,19 @@ static int32_t std_svc_setup(void)
|
|||
* calls to PSCI SMC handler
|
||||
*/
|
||||
static uintptr_t std_svc_smc_handler(uint32_t smc_fid,
|
||||
u_register_t x1,
|
||||
u_register_t x2,
|
||||
u_register_t x3,
|
||||
u_register_t x4,
|
||||
u_register_t x1_arg,
|
||||
u_register_t x2_arg,
|
||||
u_register_t x3_arg,
|
||||
u_register_t x4_arg,
|
||||
void *cookie,
|
||||
void *handle,
|
||||
u_register_t flags)
|
||||
{
|
||||
u_register_t x1 = x1_arg;
|
||||
u_register_t x2 = x2_arg;
|
||||
u_register_t x3 = x3_arg;
|
||||
u_register_t x4 = x4_arg;
|
||||
|
||||
if (((smc_fid >> FUNCID_CC_SHIFT) & FUNCID_CC_MASK) == SMC_32) {
|
||||
/* 32-bit SMC function, clear top parameter bits */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue