blob: 3c34fb2cdddf0d4ce82e77132984913d72aff9eb [file] [log] [blame]
#------------------------------------------------------------------------------
#
# 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