Browse Source

Merge "fix(versal): initialize the variable with value 0 in pm code" into integration

pull/1990/head
Joanna Farley 2 years ago
committed by TrustedFirmware Code Review
parent
commit
896c0daf3e
  1. 4
      plat/xilinx/versal/pm_service/pm_client.c
  2. 2
      plat/xilinx/versal/pm_service/pm_svc_main.c

4
plat/xilinx/versal/pm_service/pm_client.c

@ -120,11 +120,9 @@ static void pm_client_set_wakeup_sources(uint32_t node_id)
{
uint32_t reg_num;
uint32_t device_id;
uint8_t pm_wakeup_nodes_set[XPM_NODEIDX_DEV_MAX];
uint8_t pm_wakeup_nodes_set[XPM_NODEIDX_DEV_MAX] = { 0U };
uintptr_t isenabler1 = PLAT_VERSAL_GICD_BASE + GICD_ISENABLER + 4;
zeromem(&pm_wakeup_nodes_set, (u_register_t)sizeof(pm_wakeup_nodes_set));
for (reg_num = 0U; reg_num < NUM_GICD_ISENABLER; reg_num++) {
uint32_t base_irq = reg_num << ISENABLER_SHIFT;
uint32_t reg = mmio_read_32(isenabler1 + (reg_num << 2));

2
plat/xilinx/versal/pm_service/pm_svc_main.c

@ -160,7 +160,7 @@ static uintptr_t eemi_for_compatibility(uint32_t api_id, uint32_t *pm_arg,
case PM_IOCTL:
{
uint32_t value;
uint32_t value = 0U;
ret = pm_api_ioctl(pm_arg[0], pm_arg[1], pm_arg[2],
pm_arg[3], pm_arg[4],

Loading…
Cancel
Save