From 705d3a7756079af808cc414544782f070443b887 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Wed, 4 Oct 2006 23:56:11 +0000 Subject: [PATCH] Use intrinsic git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1670 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/X64/CpuBreakpoint.c | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 MdePkg/Library/BaseLib/X64/CpuBreakpoint.c 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
+ 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 -- 2.39.2