summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2007-11-27 02:48:59 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2007-11-27 02:48:59 +0000
commit24a7505cefd6dbb73bcdf2778f4e59095780aa50 (patch)
treef92f65cb99cbe387e0c38278f494b6e87082dec5 /MdePkg
parentb74350e9562f0ad4400afdbc2a157d66f55fb113 (diff)
downloadedk2-24a7505cefd6dbb73bcdf2778f4e59095780aa50.tar.gz
edk2-24a7505cefd6dbb73bcdf2778f4e59095780aa50.tar.bz2
edk2-24a7505cefd6dbb73bcdf2778f4e59095780aa50.zip
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
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Ebc/ProcessorBind.h2
-rw-r--r--MdePkg/Include/Ia32/ProcessorBind.h2
-rw-r--r--MdePkg/Include/Ipf/ProcessorBind.h2
-rw-r--r--MdePkg/Include/x64/ProcessorBind.h2
-rw-r--r--MdePkg/Library/DxeDebugLibSerialPort/DxeDebugLibSerialPort.inf2
5 files changed, 9 insertions, 1 deletions
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