## @file\r
# This is the Memory Initialization Driver for Quark\r
#\r
-# Copyright (c) 2013-2015 Intel Corporation.\r
+# Copyright (c) 2013-2017 Intel Corporation.\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
[Depex]\r
TRUE\r
-\r
-[BuildOptions]\r
- # /Oi option to use the intrinsic memset function in source code.\r
- MSFT:*_*_*_CC_FLAGS = /Oi\r
/************************************************************************\r
*\r
- * Copyright (c) 2013-2015 Intel Corporation.\r
+ * Copyright (c) 2013-2017 Intel Corporation.\r
*\r
* This program and the accompanying materials\r
* are licensed and made available under the terms and conditions of the BSD License\r
void default_timings(MRCParams_t *mrc_params);\r
\r
#ifndef SIM\r
-void *memset(void *d, int c, size_t n);\r
-void *memcpy(void *d, const void *s, size_t n);\r
+//\r
+// Map memset() and memcpy() to BaseMemoryLib functions\r
+//\r
+#include <Library/BaseMemoryLib.h>\r
+#define memset(d,c,n) ((c) == 0) ? ZeroMem ((d), (n)) : SetMem ((d), (n), (c))\r
+#define memcpy(d,s,n) CopyMem ((d), (s), (n))\r
#endif\r
\r
#endif // _MEMINIT_UTILS_H_\r