]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/X64/ProcessorBind.h
1. Add defines for MAX values for UEFI data types.
[mirror_edk2.git] / MdePkg / Include / X64 / ProcessorBind.h
index 974545a2c5ca65acf79a36fa4f61c4d4c2432d65..df324340d1932b8ce87ce750ab3ae145e7783ded 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Processor or Compiler specific defines and types x64 (Intel 64, AMD64).\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2013, 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
   ///\r
   /// 1-byte signed value\r
   ///\r
-  typedef char                INT8;\r
+  typedef signed char         INT8;\r
 #else\r
   ///\r
   /// 8-byte unsigned value\r
   ///\r
   /// 1-byte signed value\r
   ///\r
-  typedef char                INT8;\r
+  typedef signed char         INT8;\r
 #endif\r
 \r
 ///\r
@@ -227,6 +227,12 @@ typedef INT64   INTN;
 ///\r
 #define MAX_ADDRESS   0xFFFFFFFFFFFFFFFFULL\r
 \r
+///\r
+/// Maximum legal x64 INTN and UINTN values.\r
+///\r
+#define MAX_INTN   ((INTN)0x7FFFFFFFFFFFFFFFULL)\r
+#define MAX_UINTN  ((UINTN)0xFFFFFFFFFFFFFFFFULL)\r
+\r
 ///\r
 /// The stack alignment required for x64\r
 ///\r