summaryrefslogtreecommitdiffstats
path: root/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h
diff options
context:
space:
mode:
Diffstat (limited to 'EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h')
-rw-r--r--EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h
index 75ccf10511..c0180e72b2 100644
--- a/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h
+++ b/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h
@@ -189,7 +189,11 @@ typedef int64_t intn_t;
// Inject a break point in the code to assist debugging.
//
#define EFI_DEADLOOP() { volatile int __iii; __iii = 1; while (__iii); }
-#define EFI_BREAKPOINT() __debugbreak()
+#if _MSC_EXTENSIONS
+ #define EFI_BREAKPOINT() __debugbreak()
+#elif __GNUC__
+ #define EFI_BREAKPOINT() asm(" int $3");
+#endif
//
// Memory Fence forces serialization, and is needed to support out of order