1 //------------------------------------------------------------------------------
3 // RISC-V Supervisor Mode interrupt enable/disable
5 // Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
7 // SPDX-License-Identifier: BSD-2-Clause-Patent
9 //------------------------------------------------------------------------------
11 ASM_GLOBAL ASM_PFX(RiscVDisableSupervisorModeInterrupts)
12 ASM_GLOBAL ASM_PFX(RiscVEnableSupervisorModeInterrupt)
13 ASM_GLOBAL ASM_PFX(RiscVGetSupervisorModeInterrupts)
15 # define MSTATUS_SIE 0x00000002
16 # define CSR_SSTATUS 0x100
18 ASM_PFX(RiscVDisableSupervisorModeInterrupts):
23 ASM_PFX(RiscVEnableSupervisorModeInterrupt):
28 ASM_PFX(RiscVGetSupervisorModeInterrupts):
30 andi a0, a0, MSTATUS_SIE