From fd800dfb466a8e9a41a915eea98f7c2f96957eb7 Mon Sep 17 00:00:00 2001 From: Sarat Chand Savitala Date: Tue, 9 Jun 2015 19:12:18 +0530 Subject: [PATCH] sw_apps:zynqmp_fsbl: Removed redundant calls to Xil_DCacheFlush() Xil_DCacheDisable() function internally has call to Xil_DCacheFlush(). Hence removing redundant calls to Xil_DCacheFlush from FSBL. Signed-off-by: Sarat Chand Savitala --- lib/sw_apps/zynqmp_fsbl/src/xfsbl_handoff.c | 19 ++----------------- .../zynqmp_fsbl/src/xfsbl_partition_load.c | 1 - 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/lib/sw_apps/zynqmp_fsbl/src/xfsbl_handoff.c b/lib/sw_apps/zynqmp_fsbl/src/xfsbl_handoff.c index c2f7c1ff..2c5dcc71 100644 --- a/lib/sw_apps/zynqmp_fsbl/src/xfsbl_handoff.c +++ b/lib/sw_apps/zynqmp_fsbl/src/xfsbl_handoff.c @@ -462,12 +462,7 @@ void XFsbl_HandoffExit(u64 HandoffAddress, u32 Flags) { /** - * Flush the L1 data cache and L2 cache - */ - Xil_DCacheFlush(); - - /** - * Disable Data Cache + * Flush the L1 data cache and L2 cache, Disable Data Cache */ Xil_DCacheDisable(); @@ -677,12 +672,7 @@ u32 XFsbl_Handoff (XFsblPs * FsblInstancePtr) if (XFSBL_PLATFORM == XFSBL_PLATFORM_VELOCE) { /** - * Flush the L1 data cache and L2 cache - */ - Xil_DCacheFlush(); - - /** - * Disable Data Cache + * Flush the L1 data cache and L2 cache, Disable Data Cache */ Xil_DCacheDisable(); XFsbl_Printf(DEBUG_GENERAL,"VeloceExit from FSBL \n\r"); @@ -740,11 +730,6 @@ u32 XFsbl_Handoff (XFsblPs * FsblInstancePtr) } - /** - * Flush the L1 data cache and L2 cache - */ - Xil_DCacheFlush(); - /** * Disable Data Cache to have smooth data * transfer between the processors. diff --git a/lib/sw_apps/zynqmp_fsbl/src/xfsbl_partition_load.c b/lib/sw_apps/zynqmp_fsbl/src/xfsbl_partition_load.c index dbcdef94..041ca503 100644 --- a/lib/sw_apps/zynqmp_fsbl/src/xfsbl_partition_load.c +++ b/lib/sw_apps/zynqmp_fsbl/src/xfsbl_partition_load.c @@ -1008,7 +1008,6 @@ static u32 XFsbl_PartitionValidation(XFsblPs * FsblInstancePtr, /** * cache disbale can be removed */ - Xil_DCacheFlush(); Xil_DCacheDisable(); /**