]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c
CryptoPkg:SmmCryptLib: Add real Pkcs5Pbkdf2.c.
[mirror_edk2.git] / CryptoPkg / Library / IntrinsicLib / MemoryIntrinsics.c
index afaa0b74ee26b904e556564f59b45bd706b552cd..9d6867ebce2675df600b6ef5a4152769387f32eb 100644 (file)
@@ -2,7 +2,7 @@
   Intrinsic Memory Routines Wrapper Implementation for OpenSSL-based\r
   Cryptographic Library.\r
 \r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -23,6 +23,13 @@ int _fltused = 1;
 /* Sets buffers to a specified character */\r
 void * memset (void *dest, char ch, unsigned int count)\r
 {\r
+  //\r
+  // NOTE: Here we use one base implementation for memset, instead of the direct\r
+  //       optimized SetMem() wrapper. Because the IntrinsicLib has to be built \r
+  //       without whole program optimization option, and there will be some \r
+  //       potential register usage errors when calling other optimized codes.\r
+  //\r
+\r
   //\r
   // Declare the local variables that actually move the data elements as\r
   // volatile to prevent the optimizer from replacing this function with\r