Use BaseMemoryLib ZeroMem replace memset function. Cc: Michael Kinney <michael.d.kin...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming....@intel.com> --- QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/meminit.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/meminit.c b/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/meminit.c index 50692fe..321163a 100644 --- a/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/meminit.c +++ b/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/meminit.c @@ -1,6 +1,6 @@ /************************************************************************ * - * Copyright (c) 2013-2015 Intel Corporation. + * Copyright (c) 2013-2016 Intel Corporation. * * This program and the accompanying materials * are licensed and made available under the terms and conditions of the BSD License @@ -40,6 +40,7 @@ #include "meminit_utils.h" #include "hte.h" #include "io.h" +#include "MemoryInit.h" // Override ODT to off state if requested #define DRMC_DEFAULT (mrc_params->rd_odt_value==0?BIT12:0) @@ -1108,7 +1109,7 @@ static void rcvn_cal( #ifdef R2R_SHARING // need to set "final_delay[][]" elements to "0" - memset((void *) (final_delay), 0x00, (size_t) sizeof(final_delay)); + ZeroMem((void *) (final_delay), (size_t) sizeof(final_delay)); #endif // R2R_SHARING // loop through each enabled channel @@ -1393,7 +1394,7 @@ static void wr_level( #ifdef R2R_SHARING // need to set "final_delay[][]" elements to "0" - memset((void *) (final_delay), 0x00, (size_t) sizeof(final_delay)); + ZeroMem((void *) (final_delay), (size_t) sizeof(final_delay)); #endif // R2R_SHARING // loop through each enabled channel for (channel_i = 0; channel_i < NUM_CHANNELS; channel_i++) @@ -1647,7 +1648,7 @@ static void rd_train( #ifdef R2R_SHARING // need to set "final_delay[][]" elements to "0" - memset((void *) (final_delay), 0x00, (size_t) sizeof(final_delay)); + ZeroMem((void *) (final_delay), (size_t) sizeof(final_delay)); #endif // R2R_SHARING // look for passing coordinates @@ -1969,7 +1970,7 @@ static void wr_train( #ifdef R2R_SHARING // need to set "final_delay[][]" elements to "0" - memset((void *) (final_delay), 0x00, (size_t) sizeof(final_delay)); + ZeroMem((void *) (final_delay), (size_t) sizeof(final_delay)); #endif // R2R_SHARING // start algorithm on the LEFT side and train each channel/bl until no failures are observed, then repeat for the RIGHT side. -- 2.8.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel