diff options
| author | Warner Losh <imp@FreeBSD.org> | 2025-11-16 22:09:34 -0700 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-11-16 22:58:03 -0700 |
| commit | c62eaf8af9054b9f370bdd396cae411848bc617b (patch) | |
| tree | 8193fe3af88ccb275dac1f2cafcf0991885e476d /stand | |
| parent | c570deb1cc3182b4643e56d7010a763cf6e0884d (diff) | |
stand: Update riscv efi booting to edk2 includes
Update to include the right includes for the riscv protocol to get the
hypervisor details.
Note: I expanded the GUID inline rather than using a #define because
there was none. This is only listed in UefiCpuPkg/UefiCpuPkg.dec, so
include it here inline until we can automate using those files.
Fixes: 43b8edb32051
Sponsored by: Netflix
Diffstat (limited to 'stand')
| -rw-r--r-- | stand/efi/loader/arch/riscv/exec.c | 6 |
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; |
