diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-02-16 14:49:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-16 14:49:37 +0000 |
commit | 108e4df7f167bccc2c9ccef87bdd62d15c3aa74b (patch) | |
tree | eab88468edac4c5281fc3116536de4726368a70d /lib/psci | |
parent | 406a4ade146a4d0caa8a763de8e024a92085a08a (diff) | |
parent | 32f0d3c6c3fb1fb9353ec0b82ddb099281b9328c (diff) | |
download | arm-trusted-firmware-108e4df7f167bccc2c9ccef87bdd62d15c3aa74b.tar.gz |
Merge pull request #834 from douglas-raillard-arm/dr/use_dc_zva_zeroing
Use DC ZVA instruction to zero memory
Diffstat (limited to 'lib/psci')
-rw-r--r-- | lib/psci/psci_common.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index 822329e65..9fdce4986 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c @@ -37,6 +37,7 @@ #include <debug.h> #include <platform.h> #include <string.h> +#include <utils.h> #include "psci_private.h" /* @@ -622,7 +623,7 @@ static int psci_get_ns_ep_info(entry_point_info_t *ep, SET_PARAM_HEAD(ep, PARAM_EP, VERSION_1, ep_attr); ep->pc = entrypoint; - memset(&ep->args, 0, sizeof(ep->args)); + zeromem(&ep->args, sizeof(ep->args)); ep->args.arg0 = context_id; mode = scr & SCR_HCE_BIT ? MODE32_hyp : MODE32_svc; @@ -659,7 +660,7 @@ static int psci_get_ns_ep_info(entry_point_info_t *ep, SET_PARAM_HEAD(ep, PARAM_EP, VERSION_1, ep_attr); ep->pc = entrypoint; - memset(&ep->args, 0, sizeof(ep->args)); + zeromem(&ep->args, sizeof(ep->args)); ep->args.arg0 = context_id; /* @@ -951,7 +952,7 @@ unsigned int psci_get_max_phys_off_afflvl(void) { psci_power_state_t state_info; - memset(&state_info, 0, sizeof(state_info)); + zeromem(&state_info, sizeof(state_info)); psci_get_target_local_pwr_states(PLAT_MAX_PWR_LVL, &state_info); return psci_find_target_suspend_lvl(&state_info); |