diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-03 13:53:50 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-03 13:53:50 +0000 |
commit | aa274d2a3a6bd582c132fd754c4605734b5fa591 (patch) | |
tree | b038f868908bea7c91a1c6bfcfc8550644e4c5ab /EdkCompatibilityPkg/Foundation | |
parent | 81c56b8d1a6b6c51d6ec68eea2cb3a7055ba8611 (diff) | |
download | edk2-aa274d2a3a6bd582c132fd754c4605734b5fa591.zip edk2-aa274d2a3a6bd582c132fd754c4605734b5fa591.tar.gz edk2-aa274d2a3a6bd582c132fd754c4605734b5fa591.tar.bz2 |
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.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/Ipf/EfiBind.h index 7c289c1..823855e 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
//
|