aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/loader/arch/riscv/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'stand/efi/loader/arch/riscv/exec.c')
-rw-r--r--stand/efi/loader/arch/riscv/exec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/stand/efi/loader/arch/riscv/exec.c b/stand/efi/loader/arch/riscv/exec.c
index a53fbd9442b0..8d1a0bd03de0 100644
--- a/stand/efi/loader/arch/riscv/exec.c
+++ b/stand/efi/loader/arch/riscv/exec.c
@@ -41,10 +41,14 @@
#include "bootstrap.h"
#include "loader_efi.h"
+#include <Uefi.h>
+#include <Protocol/RiscVBootProtocol.h>
+
static void
riscv_set_boot_hart(struct preloaded_file *fp)
{
- EFI_GUID riscvboot = RISCV_EFI_BOOT_PROTOCOL_GUID;
+ // No #define in EDK2 for this
+ EFI_GUID riscvboot = { 0xccd15fec, 0x6f73, 0x4eec, { 0x83, 0x95, 0x3e, 0x69, 0xe4, 0xb9, 0x40, 0xbf }};
RISCV_EFI_BOOT_PROTOCOL *proto;
EFI_STATUS status = 0;
uint64_t boot_hartid = ULONG_MAX;