2. Remove the #defines and add the extern declarations for gEfiDebugPortVariableGuid and gEfiDebugPortDevicePathGuid.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: michael.d.kinney@intel.com
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14465
6f19259b-4bc3-4df7-8a09-
765794883524
/** @file\r
Processor or Compiler specific defines and types for ARM.\r
\r
/** @file\r
Processor or Compiler specific defines and types for ARM.\r
\r
- Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
Portions copyright (c) 2008 - 2009, Apple Inc. 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
Portions copyright (c) 2008 - 2009, Apple Inc. 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
///\r
#define MAX_ADDRESS 0xFFFFFFFF\r
\r
///\r
#define MAX_ADDRESS 0xFFFFFFFF\r
\r
+///\r
+/// Maximum legal ARM INTN and UINTN values.\r
+///\r
+#define MAX_INTN ((INTN)0x7FFFFFFF)\r
+#define MAX_UINTN ((UINTN)0xFFFFFFFF)\r
+\r
///\r
/// The stack alignment required for ARM\r
///\r
///\r
/// The stack alignment required for ARM\r
///\r
environment. There are a set of base libraries in the Mde Package that can\r
be used to implement base modules.\r
\r
environment. There are a set of base libraries in the Mde Package that can\r
be used to implement base modules.\r
\r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
Portions copyright (c) 2008 - 2009, Apple Inc. 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
Portions copyright (c) 2008 - 2009, Apple Inc. 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
///\r
#define NULL ((VOID *) 0)\r
\r
///\r
#define NULL ((VOID *) 0)\r
\r
+///\r
+/// Maximum values for common UEFI Data Types\r
+///\r
+#define MAX_INT8 ((INT8)0x7F)\r
+#define MAX_UINT8 ((UINT8)0xFF)\r
+#define MAX_INT16 ((INT16)0x7FFF)\r
+#define MAX_UINT16 ((UINT16)0xFFFF)\r
+#define MAX_INT32 ((INT32)0x7FFFFFFF)\r
+#define MAX_UINT32 ((UINT32)0xFFFFFFFF)\r
+#define MAX_INT64 ((INT64)0x7FFFFFFFFFFFFFFFULL)\r
+#define MAX_UINT64 ((UINT64)0xFFFFFFFFFFFFFFFFULL)\r
\r
#define BIT0 0x00000001\r
#define BIT1 0x00000002\r
\r
#define BIT0 0x00000001\r
#define BIT1 0x00000002\r
/** @file\r
Processor or Compiler specific defines and types for IA-32 architecture.\r
\r
/** @file\r
Processor or Compiler specific defines and types for IA-32 architecture.\r
\r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available under \r
the terms and conditions of the BSD License that accompanies this distribution. \r
The full text of the license may be found at\r
This program and the accompanying materials are licensed and made available under \r
the terms and conditions of the BSD License that accompanies this distribution. \r
The full text of the license may be found at\r
///\r
#define MAX_ADDRESS 0xFFFFFFFF\r
\r
///\r
#define MAX_ADDRESS 0xFFFFFFFF\r
\r
+///\r
+/// Maximum legal IA-32 INTN and UINTN values.\r
+///\r
+#define MAX_INTN ((INTN)0x7FFFFFFF)\r
+#define MAX_UINTN ((UINTN)0xFFFFFFFF)\r
+\r
///\r
/// The stack alignment required for IA-32.\r
///\r
///\r
/// The stack alignment required for IA-32.\r
///\r
/** @file\r
Processor or Compiler specific defines and types for Intel Itanium(TM) processors.\r
\r
/** @file\r
Processor or Compiler specific defines and types for Intel Itanium(TM) processors.\r
\r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available \r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
This program and the accompanying materials are licensed and made available \r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
///\r
#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL\r
\r
///\r
#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL\r
\r
+///\r
+/// Maximum legal Itanium-based INTN and UINTN values.\r
+///\r
+#define MAX_INTN ((INTN)0x7FFFFFFFFFFFFFFFULL)\r
+#define MAX_UINTN ((UINTN)0xFFFFFFFFFFFFFFFFULL)\r
+\r
///\r
/// Per the Itanium Software Conventions and Runtime Architecture Guide,\r
/// section 3.3.4, IPF stack must always be 16-byte aligned.\r
///\r
/// Per the Itanium Software Conventions and Runtime Architecture Guide,\r
/// section 3.3.4, IPF stack must always be 16-byte aligned.\r
This protocol is used by debug agent to communicate with the\r
remote debug host.\r
\r
This protocol is used by debug agent to communicate with the\r
remote debug host.\r
\r
- Copyright (c) 2006 - 2008, 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
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
#define EFI_DEBUGPORT_VARIABLE_NAME L"DEBUGPORT"\r
#define EFI_DEBUGPORT_VARIABLE_GUID EFI_DEBUGPORT_PROTOCOL_GUID\r
//\r
#define EFI_DEBUGPORT_VARIABLE_NAME L"DEBUGPORT"\r
#define EFI_DEBUGPORT_VARIABLE_GUID EFI_DEBUGPORT_PROTOCOL_GUID\r
-#define gEfiDebugPortVariableGuid gEfiDebugPortProtocolGuid\r
+\r
+extern EFI_GUID gEfiDebugPortVariableGuid;\r
\r
//\r
// DebugPort device path definitions...\r
//\r
#define DEVICE_PATH_MESSAGING_DEBUGPORT EFI_DEBUGPORT_PROTOCOL_GUID\r
\r
//\r
// DebugPort device path definitions...\r
//\r
#define DEVICE_PATH_MESSAGING_DEBUGPORT EFI_DEBUGPORT_PROTOCOL_GUID\r
-#define gEfiDebugPortDevicePathGuid gEfiDebugPortProtocolGuid\r
+\r
+extern EFI_GUID gEfiDebugPortDevicePathGuid;\r
\r
typedef struct {\r
EFI_DEVICE_PATH_PROTOCOL Header;\r
\r
typedef struct {\r
EFI_DEVICE_PATH_PROTOCOL Header;\r
/** @file\r
Processor or Compiler specific defines and types x64 (Intel 64, AMD64).\r
\r
/** @file\r
Processor or Compiler specific defines and types x64 (Intel 64, AMD64).\r
\r
- Copyright (c) 2006 - 2012, 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
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
#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL\r
\r
///\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
///\r
/// The stack alignment required for x64\r
///\r