summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Ebc
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2013-08-13 08:45:45 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2013-08-13 08:45:45 +0000
commit39899436d3c60a0b4f0a945413d9beb814eb444a (patch)
tree4c7b31bfac83a35b1364ec899fdaa8fb2cc0919e /MdePkg/Include/Ebc
parent1847ed0bfdc7bec8a7d9eec56185f8964500f63c (diff)
downloadedk2-39899436d3c60a0b4f0a945413d9beb814eb444a.tar.gz
edk2-39899436d3c60a0b4f0a945413d9beb814eb444a.tar.bz2
edk2-39899436d3c60a0b4f0a945413d9beb814eb444a.zip
Add defines for MAX values for EBC arch.
Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: michael.d.kinney@intel.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14547 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Ebc')
-rw-r--r--MdePkg/Include/Ebc/ProcessorBind.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/MdePkg/Include/Ebc/ProcessorBind.h b/MdePkg/Include/Ebc/ProcessorBind.h
index 0a76ce9889..4e1a67fb4e 100644
--- a/MdePkg/Include/Ebc/ProcessorBind.h
+++ b/MdePkg/Include/Ebc/ProcessorBind.h
@@ -4,7 +4,7 @@
We currently only have one EBC compiler so there may be some Intel compiler
specific functions in this file.
-Copyright (c) 2006 - 2012, 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 that accompanies this distribution.
The full text of the license may be found at
@@ -104,6 +104,12 @@ typedef unsigned long UINTN;
#define MAX_ADDRESS ((UINTN) ~0)
///
+/// Maximum legal EBC INTN and UINTN values.
+///
+#define MAX_UINTN ((UINTN) ~0)
+#define MAX_INTN ((INTN)~MAX_BIT)
+
+///
/// The stack alignment required for EBC
///
#define CPU_STACK_ALIGNMENT sizeof(UINTN)