diff --git a/plat/intel/soc/stratix10/soc/s10_memory_controller.c b/plat/intel/soc/stratix10/soc/s10_memory_controller.c index 851fc59..ed06f54 100644 --- a/plat/intel/soc/stratix10/soc/s10_memory_controller.c +++ b/plat/intel/soc/stratix10/soc/s10_memory_controller.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -403,7 +404,7 @@ INFO("Scrubbing ECC\n"); /* ECC Scrubbing */ - memset(DRAM_BASE, 0, DRAM_SIZE); + zeromem(DRAM_BASE, DRAM_SIZE); } else { INFO("ECC is disabled.\n"); }