diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-04 23:56:11 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-04 23:56:11 +0000 |
commit | 705d3a7756079af808cc414544782f070443b887 (patch) | |
tree | ad29929b867263ee52addeedbde836d453fa0421 /MdePkg/Library/BaseLib/X64/CpuBreakpoint.c | |
parent | 9730cac8a1f5d205b1e7472bfc692a7f8f2aff7b (diff) | |
download | edk2-platforms-705d3a7756079af808cc414544782f070443b887.tar.xz |
Use intrinsic
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1670 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/X64/CpuBreakpoint.c')
-rw-r--r-- | MdePkg/Library/BaseLib/X64/CpuBreakpoint.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c b/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c new file mode 100644 index 0000000000..e13f13f78b --- /dev/null +++ b/MdePkg/Library/BaseLib/X64/CpuBreakpoint.c @@ -0,0 +1,33 @@ +/** @file
+ CpuBreakpoint function.
+
+ Copyright (c) 2006, Intel Corporation<BR>
+ All rights reserved. This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which accompanies this distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#if _MSC_EXTENSIONS
+
+//
+// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics
+//
+void __debugbreak ();
+
+#pragma intrinsic(__debugbreak)
+
+VOID
+EFIAPI
+CpuBreakpoint (
+ VOID
+ )
+{
+ __debugbreak ();
+}
+
+#endif
|