summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Foundation
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-03 13:53:50 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-03 13:53:50 +0000
commitaa274d2a3a6bd582c132fd754c4605734b5fa591 (patch)
treeb038f868908bea7c91a1c6bfcfc8550644e4c5ab /EdkCompatibilityPkg/Foundation
parent81c56b8d1a6b6c51d6ec68eea2cb3a7055ba8611 (diff)
downloadedk2-platforms-aa274d2a3a6bd582c132fd754c4605734b5fa591.tar.xz
1) Add in EcpEfiBreakPoint and EcpMemoryFence which will be defined as EFI_BREAKPOINT and MEMORY_FENCE.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6820 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Foundation')
-rw-r--r--EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h
index 7c289c1dbe..823855e14c 100644
--- a/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h
+++ b/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h
@@ -31,7 +31,7 @@ Abstract:
#define EFI_APPLICATION_ENTRY_POINT EFI_DRIVER_ENTRY_POINT
-
+#define ECP_CPU_IPF
//
@@ -216,6 +216,12 @@ typedef int64_t intn_t;
#define EFI_BAD_POINTER 0xAFAFAFAFAFAFAFAF
#define EFI_BAD_POINTER_AS_BYTE 0xAF
+#define EFI_DEADLOOP() while(TRUE)
+
+#ifdef __GNUC__
+#define EFI_BREAKPOINT EcpEfiBreakPoint
+#define MEMORY_FENCE EcpMemoryFence
+#else
//
// Inject a break point in the code to assist debugging.
//
@@ -233,6 +239,7 @@ typedef int64_t intn_t;
void __mfa (void);
#pragma intrinsic (__mfa)
#define MEMORY_FENCE() __mfa()
+#endif
//