fbe5a8c
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
fbe5a8c
From: David Abdurachmanov <david.abdurachmanov@sifive.com>
fbe5a8c
Date: Thu, 16 Jan 2020 13:10:10 +0100
fbe5a8c
Subject: [PATCH] Also define GRUB_EFI_MAX_ALLOCATION_ADDRESS for RISC-V
fbe5a8c
fbe5a8c
The commit "Try to pick better locations for kernel and initrd" missed to
fbe5a8c
define this macro for the RISC-V (riscv64) architecture, so add it there.
fbe5a8c
fbe5a8c
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
fbe5a8c
---
fbe5a8c
 include/grub/riscv64/efi/memory.h | 1 +
fbe5a8c
 1 file changed, 1 insertion(+)
fbe5a8c
fbe5a8c
diff --git a/include/grub/riscv64/efi/memory.h b/include/grub/riscv64/efi/memory.h
fbe5a8c
index c6cb3241714..acb61dca44b 100644
fbe5a8c
--- a/include/grub/riscv64/efi/memory.h
fbe5a8c
+++ b/include/grub/riscv64/efi/memory.h
fbe5a8c
@@ -2,5 +2,6 @@
fbe5a8c
 #include <grub/efi/memory.h>
fbe5a8c
 
fbe5a8c
 #define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffffffffULL
fbe5a8c
+#define GRUB_EFI_MAX_ALLOCATION_ADDRESS GRUB_EFI_MAX_USABLE_ADDRESS
fbe5a8c
 
fbe5a8c
 #endif /* ! GRUB_MEMORY_CPU_HEADER */