From 39899436d3c60a0b4f0a945413d9beb814eb444a Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Tue, 13 Aug 2013 08:45:45 +0000 Subject: [PATCH] Add defines for MAX values for EBC arch. Signed-off-by: Liming Gao 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 --- MdePkg/Include/Ebc/ProcessorBind.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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.
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
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 @@ -103,6 +103,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 /// -- 2.39.2