]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/AArch64/CpuBreakpoint.S
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / AArch64 / CpuBreakpoint.S
1 #------------------------------------------------------------------------------
2 #
3 # CpuBreakpoint() for AArch64
4 #
5 # Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
6 # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
7 # Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 #
10 #------------------------------------------------------------------------------
11
12 .text
13 .p2align 2
14 GCC_ASM_EXPORT(CpuBreakpoint)
15
16 #/**
17 # Generates a breakpoint on the CPU.
18 #
19 # Generates a breakpoint on the CPU. The breakpoint must be implemented such
20 # that code can resume normal execution after the breakpoint.
21 #
22 #**/
23 #VOID
24 #EFIAPI
25 #CpuBreakpoint (
26 # VOID
27 # );
28 #
29 ASM_PFX(CpuBreakpoint):
30 svc 0xdbdb // Superviser exception. Takes 16bit arg -> Armv7 had 'swi' here.
31 ret