blob: 3c34fb2cdddf0d4ce82e77132984913d72aff9eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#------------------------------------------------------------------------------
#
# 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
|