]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/Sec/WinNtThunk.c
MdePkg/BasePeCoffLib: remove PE/COFF header workaround for ELILO on IPF
[mirror_edk2.git] / Nt32Pkg / Sec / WinNtThunk.c
index 2832e13fdde236f2685cc9f1d5e17c4eaf79ba72..3159ef483bb63f5ef895fee167e07837d8a3bbaa 100644 (file)
@@ -1,7 +1,7 @@
-/*++\r
+/**@file\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006 - 2011, 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
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -32,7 +32,7 @@ Abstract:
   gWinNt is a a public exported global that contains the initialized\r
   data.\r
 \r
---*/\r
+**/\r
 \r
 #include "SecMain.h"\r
 \r
@@ -42,11 +42,15 @@ Abstract:
 //  point could be modified dynamically. The SEC does not do that, so we must\r
 //  disable the warning so we can compile the SEC. The previous method was to\r
 //  asign each element in code. The disadvantage to that approach is it's harder\r
-//  to tell if all the elements have been initailized properly.\r
+//  to tell if all the elements have been initialized properly.\r
 //\r
 #pragma warning(disable : 4232)\r
 #pragma warning(disable : 4996)\r
 \r
+#if __INTEL_COMPILER\r
+#pragma warning ( disable : 144 )  \r
+#endif\r
+\r
 EFI_WIN_NT_THUNK_PROTOCOL mWinNtThunkTable = {\r
   EFI_WIN_NT_THUNK_PROTOCOL_SIGNATURE,\r
   GetProcAddress,\r
@@ -120,6 +124,7 @@ EFI_WIN_NT_THUNK_PROTOCOL mWinNtThunkTable = {
   MoveFile,\r
   SetFileTime,\r
   SystemTimeToFileTime,\r
+  LocalFileTimeToFileTime,\r
   FileTimeToLocalFileTime,\r
   FileTimeToSystemTime,\r
   GetSystemTime,\r
@@ -171,7 +176,9 @@ EFI_WIN_NT_THUNK_PROTOCOL mWinNtThunkTable = {
   DispatchMessage,\r
   GetProcessHeap,\r
   HeapAlloc,\r
-  HeapFree\r
+  HeapFree,\r
+  QueryPerformanceCounter,\r
+  QueryPerformanceFrequency\r
 };\r
 \r
 #pragma warning(default : 4996)\r