summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Foundation/Include
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 08:10:49 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-18 08:10:49 +0000
commit0d37437d289b8ce1c57c884debf27f8fe0e2cd8e (patch)
tree91ee3e8fc80a58c3b82b431046866d582ec02b2a /EdkCompatibilityPkg/Foundation/Include
parentb8773e24c650c3613f759378c1724b9190e3adba (diff)
downloadedk2-platforms-0d37437d289b8ce1c57c884debf27f8fe0e2cd8e.tar.xz
GCC Cleanup: Define EFI_BREAKPOINT for GCC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6591 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Foundation/Include')
-rw-r--r--EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h
index 6b102c3043..cab1ea1e76 100644
--- a/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h
+++ b/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h
@@ -235,7 +235,12 @@ typedef int32_t intn_t;
// compiler will optimize away the rest of the function following, so that you run out in
// the weeds if you skip over it with a debugger.
//
+#ifdef _MSC_EXTENSIONS
#define EFI_BREAKPOINT() __asm { int 3 }
+#elif __GNUC__
+#define EFI_BREAKPOINT() asm(" int $3");
+#endif
+
#define EFI_DEADLOOP() { volatile UINTN __iii; __iii = 1; while (__iii); }
//