]>
Commit | Line | Data |
---|---|---|
cd24eb57 CL |
1 | #------------------------------------------------------------------------------\r |
2 | #\r | |
3 | # CpuBreakpoint for LoongArch\r | |
4 | #\r | |
5 | # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r | |
6 | #\r | |
7 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
8 | #\r | |
9 | #------------------------------------------------------------------------------\r | |
10 | \r | |
11 | ASM_GLOBAL ASM_PFX(CpuBreakpoint)\r | |
12 | \r | |
13 | #/**\r | |
14 | # Generates a breakpoint on the CPU.\r | |
15 | #\r | |
16 | # Generates a breakpoint on the CPU. The breakpoint must be implemented such\r | |
17 | # that code can resume normal execution after the breakpoint.\r | |
18 | #\r | |
19 | #**/\r | |
20 | \r | |
21 | ASM_PFX(CpuBreakpoint):\r | |
22 | break 3\r | |
23 | jirl $zero, $ra, 0\r | |
24 | .end\r |