From 32a4d5cecf6a49a508080da0648eb2d74bd4bbc3 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Wed, 4 Oct 2006 23:07:25 +0000 Subject: [PATCH] Use intrinsic git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1662 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c index 99248321b5..e13f13f78b 100644 --- a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c +++ b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c @@ -14,15 +14,20 @@ #if _MSC_EXTENSIONS +// +// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics +// +void __debugbreak (); + +#pragma intrinsic(__debugbreak) + VOID EFIAPI CpuBreakpoint ( VOID ) { - _asm { - int 3 - } + __debugbreak (); } #endif