]> git.proxmox.com Git - mirror_edk2.git/commitdiff
GCC Cleanup: Define EFI_BREAKPOINT for GCC build.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Nov 2008 08:10:49 +0000 (08:10 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Nov 2008 08:10:49 +0000 (08:10 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6591 6f19259b-4bc3-4df7-8a09-765794883524

EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h

index 6b102c30437c59428896bde2f0c57be8d28daf81..cab1ea1e76a9346fcff483782cd0892920ed52f2 100644 (file)
@@ -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\r
 // the weeds if you skip over it with a debugger.\r
 //\r
+#ifdef _MSC_EXTENSIONS\r
 #define EFI_BREAKPOINT()  __asm { int 3 }\r
+#elif __GNUC__\r
+#define EFI_BREAKPOINT() asm("   int $3");\r
+#endif\r
+\r
 #define EFI_DEADLOOP()    { volatile UINTN __iii; __iii = 1; while (__iii); }\r
 \r
 //\r