summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-04 23:07:25 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-04 23:07:25 +0000
commit32a4d5cecf6a49a508080da0648eb2d74bd4bbc3 (patch)
treead915e058c2feb6b1653cf5f887a632dbc0631c5 /MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c
parentd8e5077483b39188d88a254e0164d19c706edb77 (diff)
downloadedk2-platforms-32a4d5cecf6a49a508080da0648eb2d74bd4bbc3.tar.xz
Use intrinsic
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1662 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.c11
1 files 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