From 24a7505cefd6dbb73bcdf2778f4e59095780aa50 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Tue, 27 Nov 2007 02:48:59 +0000 Subject: [PATCH] Add FUNCTION_ENTRY_POINT macro Update DxeDebugLibSerialPort to have a module type of BASE git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4328 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Ebc/ProcessorBind.h | 2 ++ MdePkg/Include/Ia32/ProcessorBind.h | 2 ++ MdePkg/Include/Ipf/ProcessorBind.h | 2 ++ MdePkg/Include/x64/ProcessorBind.h | 2 ++ MdePkg/Library/DxeDebugLibSerialPort/DxeDebugLibSerialPort.inf | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Ebc/ProcessorBind.h b/MdePkg/Include/Ebc/ProcessorBind.h index 433336347c..a550f42bd3 100644 --- a/MdePkg/Include/Ebc/ProcessorBind.h +++ b/MdePkg/Include/Ebc/ProcessorBind.h @@ -79,5 +79,7 @@ typedef unsigned long UINTN; // #define GLOBAL_REMOVE_IF_UNREFERENCED +#define FUNCTION_ENTRY_POINT(p) (p) + #endif diff --git a/MdePkg/Include/Ia32/ProcessorBind.h b/MdePkg/Include/Ia32/ProcessorBind.h index 5fdb55077b..b23b7a86f8 100644 --- a/MdePkg/Include/Ia32/ProcessorBind.h +++ b/MdePkg/Include/Ia32/ProcessorBind.h @@ -200,5 +200,7 @@ typedef INT32 INTN; #define ASM_PFX(name) _##name #endif +#define FUNCTION_ENTRY_POINT(p) (p) + #endif diff --git a/MdePkg/Include/Ipf/ProcessorBind.h b/MdePkg/Include/Ipf/ProcessorBind.h index 6faddab555..9bce825cbe 100644 --- a/MdePkg/Include/Ipf/ProcessorBind.h +++ b/MdePkg/Include/Ipf/ProcessorBind.h @@ -235,5 +235,7 @@ typedef struct { UINT64 r11; } PAL_CALL_RETURN; +#define FUNCTION_ENTRY_POINT(p) (((EFI_PLABEL *)(p))->EntryPoint) + #endif diff --git a/MdePkg/Include/x64/ProcessorBind.h b/MdePkg/Include/x64/ProcessorBind.h index a401d23f26..bc240000a4 100644 --- a/MdePkg/Include/x64/ProcessorBind.h +++ b/MdePkg/Include/x64/ProcessorBind.h @@ -232,5 +232,7 @@ typedef INT64 INTN; #define ASM_PFX(name) _##name #endif +#define FUNCTION_ENTRY_POINT(p) (p) + #endif diff --git a/MdePkg/Library/DxeDebugLibSerialPort/DxeDebugLibSerialPort.inf b/MdePkg/Library/DxeDebugLibSerialPort/DxeDebugLibSerialPort.inf index a4d6f2b23a..be9f1b91ce 100644 --- a/MdePkg/Library/DxeDebugLibSerialPort/DxeDebugLibSerialPort.inf +++ b/MdePkg/Library/DxeDebugLibSerialPort/DxeDebugLibSerialPort.inf @@ -18,7 +18,7 @@ INF_VERSION = 0x00010005 BASE_NAME = DxeDebugLibSerialPort FILE_GUID = BB83F95F-EDBC-4884-A520-CD42AF388FAE - MODULE_TYPE = DXE_DRIVER + MODULE_TYPE = BASE VERSION_STRING = 1.0 LIBRARY_CLASS = DebugLib EDK_RELEASE_VERSION = 0x00020000 -- 2.39.2