Revision: 14610
http://sourceforge.net/p/edk2/code/14610
Author: oliviermartin
Date: 2013-08-29 09:00:13 +0000 (Thu, 29 Aug 2013)
Log Message:
-----------
MdePkg/AArch64: Fixed some definitions in ProcessorBind.h
- Fixed INT8 declaration
- Introduced MAX_INTN/MAX_UINTN
- Force the MAX_* to be 'unsigned long long' numbers
Change-Id: I1ad818559d051df9a880aa8e4ac090e76fdb27e0
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdePkg/Include/AArch64/ProcessorBind.h
Modified: trunk/edk2/MdePkg/Include/AArch64/ProcessorBind.h
===================================================================
--- trunk/edk2/MdePkg/Include/AArch64/ProcessorBind.h 2013-08-29 05:37:52 UTC
(rev 14609)
+++ trunk/edk2/MdePkg/Include/AArch64/ProcessorBind.h 2013-08-29 09:00:13 UTC
(rev 14610)
@@ -32,7 +32,7 @@
#if _MSC_EXTENSIONS
//
- // use Microsoft* C complier dependent interger width types
+ // use Microsoft* C complier dependent integer width types
//
typedef unsigned __int64 UINT64;
typedef __int64 INT64;
@@ -44,10 +44,11 @@
typedef unsigned char BOOLEAN;
typedef unsigned char UINT8;
typedef char CHAR8;
- typedef char INT8;
+ typedef signed char INT8;
#else
//
// Assume standard AARCH64 alignment.
+ //
typedef unsigned long long UINT64;
typedef long long INT64;
typedef unsigned int UINT32;
@@ -58,7 +59,7 @@
typedef unsigned char BOOLEAN;
typedef unsigned char UINT8;
typedef char CHAR8;
- typedef char INT8;
+ typedef signed char INT8;
#endif
///
@@ -80,19 +81,25 @@
///
/// A value of native width with the highest bit set.
///
-#define MAX_BIT 0x8000000000000000
+#define MAX_BIT 0x8000000000000000ULL
///
/// A value of native width with the two highest bits set.
///
-#define MAX_2_BITS 0xC000000000000000
+#define MAX_2_BITS 0xC000000000000000ULL
///
/// Maximum legal AARCH64 address
///
-#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFF
+#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL
///
+/// Maximum legal AArch64 INTN and UINTN values.
+///
+#define MAX_INTN ((INTN)0x7FFFFFFFFFFFFFFFULL)
+#define MAX_UINTN ((UINTN)0xFFFFFFFFFFFFFFFFULL)
+
+///
/// The stack alignment required for AARCH64
///
#define CPU_STACK_ALIGNMENT 16
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits