]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/RiscV64/GetInterruptState.c
2 CPU get interrupt state function for RISC-V
4 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "BaseLibInternals.h"
12 RiscVGetSupervisorModeInterrupts (
17 Retrieves the current CPU interrupt state.
19 Returns TRUE is interrupts are currently enabled. Otherwise
22 @retval TRUE CPU interrupts are enabled.
23 @retval FALSE CPU interrupts are disabled.
32 unsigned long RetValue
;
34 RetValue
= RiscVGetSupervisorModeInterrupts ();
35 return RetValue
? TRUE
: FALSE
;