diff options
author | Tejas Patel <tejas.patel@xilinx.com> | 2020-01-29 22:09:55 -0800 |
---|---|---|
committer | Jolly Shah <jolly.shah@xilinx.com> | 2020-01-30 11:31:52 -0800 |
commit | 932f8b477b16cbaa712c3aefbd2e75a26750df86 (patch) | |
tree | 169c048c5880f2ad81608be392a4350fd04ed689 /plat/xilinx | |
parent | 70d0d759ad0ada27178dfbc6ba7dd5a5cd1fef26 (diff) |
xilinx: versal: Pass result count to pm_get_callbackdata()
pm_get_callbackdata() expect result count and not total bytes of
result. Correct it by passing result count to pm_get_callbackdata().
Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Jolly Shah <jolly.shah@xilinx.com>
Change-Id: I01ce0002f7a753e81ea9fe65edde8420a13ed51a
Diffstat (limited to 'plat/xilinx')
-rw-r--r-- | plat/xilinx/versal/pm_service/pm_svc_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/xilinx/versal/pm_service/pm_svc_main.c b/plat/xilinx/versal/pm_service/pm_svc_main.c index a3a9f4316..45b280370 100644 --- a/plat/xilinx/versal/pm_service/pm_svc_main.c +++ b/plat/xilinx/versal/pm_service/pm_svc_main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, Xilinx, Inc. All rights reserved. + * Copyright (c) 2019-2020, Xilinx, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -165,7 +165,7 @@ uint64_t pm_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3, { uint32_t result[4] = {0}; - pm_get_callbackdata(result, sizeof(result)); + pm_get_callbackdata(result, ARRAY_SIZE(result)); SMC_RET2(handle, (uint64_t)result[0] | ((uint64_t)result[1] << 32), (uint64_t)result[2] | ((uint64_t)result[3] << 32)); |