Revision: 14649
http://sourceforge.net/p/edk2/code/14649
Author: vanjeff
Date: 2013-09-11 02:08:07 +0000 (Wed, 11 Sep 2013)
Log Message:
-----------
Sync patch of patch r14465 from main trunk.
Add defines for MAX values for UEFI data types.
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/14465
Modified Paths:
--------------
branches/UDK2010.SR1/MdePkg/Include/Arm/ProcessorBind.h
branches/UDK2010.SR1/MdePkg/Include/Base.h
branches/UDK2010.SR1/MdePkg/Include/Ia32/ProcessorBind.h
branches/UDK2010.SR1/MdePkg/Include/Ipf/ProcessorBind.h
branches/UDK2010.SR1/MdePkg/Include/X64/ProcessorBind.h
Modified: branches/UDK2010.SR1/MdePkg/Include/Arm/ProcessorBind.h
===================================================================
--- branches/UDK2010.SR1/MdePkg/Include/Arm/ProcessorBind.h 2013-09-10
21:53:28 UTC (rev 14648)
+++ branches/UDK2010.SR1/MdePkg/Include/Arm/ProcessorBind.h 2013-09-11
02:08:07 UTC (rev 14649)
@@ -1,7 +1,7 @@
/** @file
Processor or Compiler specific defines and types for ARM.
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD
License
@@ -93,6 +93,12 @@
#define MAX_ADDRESS 0xFFFFFFFF
///
+/// Maximum legal ARM INTN and UINTN values.
+///
+#define MAX_INTN ((INTN)0x7FFFFFFF)
+#define MAX_UINTN ((UINTN)0xFFFFFFFF)
+
+///
/// The stack alignment required for ARM
///
#define CPU_STACK_ALIGNMENT sizeof(UINT64)
Modified: branches/UDK2010.SR1/MdePkg/Include/Base.h
===================================================================
--- branches/UDK2010.SR1/MdePkg/Include/Base.h 2013-09-10 21:53:28 UTC (rev
14648)
+++ branches/UDK2010.SR1/MdePkg/Include/Base.h 2013-09-11 02:08:07 UTC (rev
14649)
@@ -6,7 +6,7 @@
environment. There are a set of base libraries in the Mde Package that can
be used to implement base modules.
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD
License
@@ -206,6 +206,17 @@
///
#define NULL ((VOID *) 0)
+///
+/// Maximum values for common UEFI Data Types
+///
+#define MAX_INT8 ((INT8)0x7F)
+#define MAX_UINT8 ((UINT8)0xFF)
+#define MAX_INT16 ((INT16)0x7FFF)
+#define MAX_UINT16 ((UINT16)0xFFFF)
+#define MAX_INT32 ((INT32)0x7FFFFFFF)
+#define MAX_UINT32 ((UINT32)0xFFFFFFFF)
+#define MAX_INT64 ((INT64)0x7FFFFFFFFFFFFFFFULL)
+#define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL)
#define BIT0 0x00000001
#define BIT1 0x00000002
Modified: branches/UDK2010.SR1/MdePkg/Include/Ia32/ProcessorBind.h
===================================================================
--- branches/UDK2010.SR1/MdePkg/Include/Ia32/ProcessorBind.h 2013-09-10
21:53:28 UTC (rev 14648)
+++ branches/UDK2010.SR1/MdePkg/Include/Ia32/ProcessorBind.h 2013-09-11
02:08:07 UTC (rev 14649)
@@ -1,7 +1,7 @@
/** @file
Processor or Compiler specific defines and types for IA-32 architecture.
-Copyright (c) 2006 - 2011, 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
@@ -227,6 +227,12 @@
#define MAX_ADDRESS 0xFFFFFFFF
///
+/// Maximum legal IA-32 INTN and UINTN values.
+///
+#define MAX_INTN ((INTN)0x7FFFFFFF)
+#define MAX_UINTN ((UINTN)0xFFFFFFFF)
+
+///
/// The stack alignment required for IA-32.
///
#define CPU_STACK_ALIGNMENT sizeof(UINTN)
Modified: branches/UDK2010.SR1/MdePkg/Include/Ipf/ProcessorBind.h
===================================================================
--- branches/UDK2010.SR1/MdePkg/Include/Ipf/ProcessorBind.h 2013-09-10
21:53:28 UTC (rev 14648)
+++ branches/UDK2010.SR1/MdePkg/Include/Ipf/ProcessorBind.h 2013-09-11
02:08:07 UTC (rev 14649)
@@ -1,7 +1,7 @@
/** @file
Processor or Compiler specific defines and types for Intel Itanium(TM)
processors.
-Copyright (c) 2006 - 2010, 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
@@ -237,6 +237,12 @@
#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL
///
+/// Maximum legal Itanium-based INTN and UINTN values.
+///
+#define MAX_INTN ((INTN)0x7FFFFFFFFFFFFFFFULL)
+#define MAX_UINTN ((UINTN)0xFFFFFFFFFFFFFFFFULL)
+
+///
/// Per the Itanium Software Conventions and Runtime Architecture Guide,
/// section 3.3.4, IPF stack must always be 16-byte aligned.
///
Modified: branches/UDK2010.SR1/MdePkg/Include/X64/ProcessorBind.h
===================================================================
--- branches/UDK2010.SR1/MdePkg/Include/X64/ProcessorBind.h 2013-09-10
21:53:28 UTC (rev 14648)
+++ branches/UDK2010.SR1/MdePkg/Include/X64/ProcessorBind.h 2013-09-11
02:08:07 UTC (rev 14649)
@@ -1,7 +1,7 @@
/** @file
Processor or Compiler specific defines and types x64 (Intel 64, AMD64).
- Copyright (c) 2006 - 2010, 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
@@ -228,6 +228,12 @@
#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL
///
+/// Maximum legal x64 INTN and UINTN values.
+///
+#define MAX_INTN ((INTN)0x7FFFFFFFFFFFFFFFULL)
+#define MAX_UINTN ((UINTN)0xFFFFFFFFFFFFFFFFULL)
+
+///
/// The stack alignment required for x64
///
#define CPU_STACK_ALIGNMENT 16
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits