mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
b8773e24c6
commit
0d37437d28
|
@ -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
|
// 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.
|
// the weeds if you skip over it with a debugger.
|
||||||
//
|
//
|
||||||
|
#ifdef _MSC_EXTENSIONS
|
||||||
#define EFI_BREAKPOINT() __asm { int 3 }
|
#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); }
|
#define EFI_DEADLOOP() { volatile UINTN __iii; __iii = 1; while (__iii); }
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue