summaryrefslogtreecommitdiff
path: root/MdePkg/Library/StackCheckLib/LoongArch64/StackCookieInterrupt.S
blob: 9fe9961e00fdb433cb1b23a288e77f9103e28da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#------------------------------------------------------------------------------
#
# LoongArch64/StackCookieInterrupt.S
#
# Copyright (c) 2026, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#------------------------------------------------------------------------------

#include <Library/BaseLib.h>
ASM_GLOBAL ASM_PFX(TriggerStackCookieInterrupt)

#/**
#  Calling `CpuBreakpoint` to create a breakpoint to the LoongArch64 exception handle and stop.
#**/

ASM_PFX(TriggerStackCookieInterrupt):
  bl    CpuBreakpoint
  jirl  $zero, $ra, 0
.end