X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FRiscV64%2FEnableInterrupts.c;fp=MdePkg%2FLibrary%2FBaseLib%2FRiscV64%2FEnableInterrupts.c;h=22ef73067e7aa8f5f6f72b3021c7bb3fee7da5aa;hb=7601b251fd5cfd6cd70d40bc9c88b3b371143654;hp=0000000000000000000000000000000000000000;hpb=d3abb40d77e770e07708a31e757d8f11e513293c;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/RiscV64/EnableInterrupts.c b/MdePkg/Library/BaseLib/RiscV64/EnableInterrupts.c new file mode 100644 index 0000000000..22ef73067e --- /dev/null +++ b/MdePkg/Library/BaseLib/RiscV64/EnableInterrupts.c @@ -0,0 +1,25 @@ +/** @file + CPU enable interrupt function for RISC-V + + Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#include "BaseLibInternals.h" + +extern VOID RiscVEnableSupervisorModeInterrupt (VOID); + +/** + Enables CPU interrupts. + +**/ +VOID +EFIAPI +EnableInterrupts ( + VOID + ) +{ + RiscVEnableSupervisorModeInterrupt (); +} +