audk/MdePkg/Library/BaseLib/LoongArch64/EnableInterrupts.S

22 lines
531 B
ArmAsm

#------------------------------------------------------------------------------
#
# LoongArch interrupt enable
#
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#------------------------------------------------------------------------------
ASM_GLOBAL ASM_PFX(EnableInterrupts)
#/**
# Enables CPU interrupts.
#**/
ASM_PFX(EnableInterrupts):
li.w $t0, 0x4
csrxchg $t0, $t0, 0x0
jirl $zero, $ra, 0
.end