]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/LoongArch64/CpuBreakpoint.S
MdePkg/BaseLib: BaseLib for LOONGARCH64 architecture.
[mirror_edk2.git] / MdePkg / Library / BaseLib / LoongArch64 / CpuBreakpoint.S
1 #------------------------------------------------------------------------------
2 #
3 # CpuBreakpoint for LoongArch
4 #
5 # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
6 #
7 # SPDX-License-Identifier: BSD-2-Clause-Patent
8 #
9 #------------------------------------------------------------------------------
10
11 ASM_GLOBAL ASM_PFX(CpuBreakpoint)
12
13 #/**
14 # Generates a breakpoint on the CPU.
15 #
16 # Generates a breakpoint on the CPU. The breakpoint must be implemented such
17 # that code can resume normal execution after the breakpoint.
18 #
19 #**/
20
21 ASM_PFX(CpuBreakpoint):
22 break 3
23 jirl $zero, $ra, 0
24 .end