summaryrefslogtreecommitdiffstats
path: root/Nt32Pkg/Include
diff options
context:
space:
mode:
authorJiamin Ma <mjmthy@gmail.com>2013-10-12 06:31:55 +0000
committerjyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524>2013-10-12 06:31:55 +0000
commitf66a43b26e6e0f4c1e5871dd3a88f2970b3abf87 (patch)
treef381d6fe0136f2949e4afa2367ec9b31a2e6e367 /Nt32Pkg/Include
parent09acdc0b24ac50f8623609d67ccc52a785b4fe57 (diff)
downloadedk2-f66a43b26e6e0f4c1e5871dd3a88f2970b3abf87.tar.gz
edk2-f66a43b26e6e0f4c1e5871dd3a88f2970b3abf87.tar.bz2
edk2-f66a43b26e6e0f4c1e5871dd3a88f2970b3abf87.zip
We enabled X64 native version NT32, and made it works on Windows 7 X64 OS.
Signed-off-by: Jiamin Ma <mjmthy@gmail.com> Reviewed by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed by: Liming Gao <liming.gao@intel.com> Reviewed by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14766 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/Include')
-rw-r--r--Nt32Pkg/Include/Common/WinNTInclude.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Nt32Pkg/Include/Common/WinNTInclude.h b/Nt32Pkg/Include/Common/WinNTInclude.h
index 7d62c9d551..3f4fb23732 100644
--- a/Nt32Pkg/Include/Common/WinNTInclude.h
+++ b/Nt32Pkg/Include/Common/WinNTInclude.h
@@ -1,6 +1,6 @@
/**@file
-Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -34,9 +34,11 @@ Abstract:
#define GUID _WINNT_DUP_GUID_____
#define _LIST_ENTRY _WINNT_DUP_LIST_ENTRY_FORWARD
#define LIST_ENTRY _WINNT_DUP_LIST_ENTRY
+#if defined (MDE_CPU_IA32)
#define InterlockedIncrement _WINNT_DUP_InterlockedIncrement
#define InterlockedDecrement _WINNT_DUP_InterlockedDecrement
#define InterlockedCompareExchange64 _WINNT_DUP_InterlockedCompareExchange64
+#endif
#undef UNALIGNED
#undef CONST
#undef VOID
@@ -45,7 +47,9 @@ Abstract:
// WQBugBug: This typedef is to make "windows.h" buildable.
// It should be removed after the root cause why
// size_t is undefined when go into the line below is found.
+#if defined (MDE_CPU_IA32)
typedef UINT32 size_t ;
+#endif
#include "windows.h"