sw_apps:zynqmp_fsbl: disable cache during ECC initialization
Disabling cache ensures proper initialization of ECC Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
This commit is contained in:
parent
659a5ebfc2
commit
e3aad72bc2
1 changed files with 4 additions and 0 deletions
|
@ -438,11 +438,15 @@ void XFsbl_EccInitialize(u32 Address, u32 Length)
|
|||
{
|
||||
u32 Index=0U;
|
||||
|
||||
/* Disable cache to ensure proper ECC initialization */
|
||||
Xil_DCacheDisable();
|
||||
while (Index<Length)
|
||||
{
|
||||
XFsbl_Out32(Address+Index, 1U) ;
|
||||
Index += 4U;
|
||||
}
|
||||
Xil_DCacheEnable();
|
||||
|
||||
XFsbl_Printf(DEBUG_INFO,
|
||||
"Address 0x%0lx, Length %0lx, ECC initialized \r\n",
|
||||
Address, Length);
|
||||
|
|
Loading…
Add table
Reference in a new issue